New webrev:

http://cr.opensolaris.org/~jmr/pm_4126_v9_Oct31/

Moved the gettext.install() in client.py back into main_func()

Tried experimenting with dropping the gettext.install from installupdate 
and setting _ = gettext.gettext in beadm.py, this did not help when I 
tried to do an update all and I get an error from libbe about _ not 
being a global name. So put it back.

In the end we might just have to settle on adding gettext.install() for 
any underlying python module support in the GUI which cannot use the 
self._ setup in the PM or UM, as well as the textdomain for the glade 
support. If we did that then we could drop the _ = gettext.gettext in 
misc.py and the gettext.install() in installupdate.py as well.

Let me know what you want us to do.

JR


                gettext.install("pkg", "/usr/share/locale")  <-- placing 
_() in the python global namespace
                locale.setlocale(locale.LC_ALL, '')
                for module in (gettext, gtk.glade):   <-- set things up 
for libglade
                        module.bindtextdomain("pkg", 
self.application_dir + \
                            "/usr/share/locale")
                        module.textdomain("pkg")
                self._ = gettext.gettext  

jmr wrote:
> Yep - I also wanted to generate a new one but am not able to as I've 
> exceed my disc quota and cannot move any old webrevs to the .trash 
> folder as per instructions on cr.opensolaris.org. Michal has the same 
> problem so assume this is a problem with the machine.
>
> I've attached rev8.
>
> JR
>
>

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to