Padraig,
Import for gettext looks ok, should we have translated messages on lines 55 and 58?

Michal

Padraig O'Briain wrote:
I have respun the webrev, http://cr.opensolaris.org/~padraig/ips-11350-v2/.

Padraig

On 09/15/09 18:24, Shawn Walker wrote:
Padraig O'Briain wrote:
The webrev, http://cr.opensolaris.org/~padraig/ips-11350-v1/, fixes
11350 update-refresh.sh fails to find '_' (gettext)

There is no reason for the messages referrexd to in the bnug to be translated as they are output only in debug mode. The fix is to not attempt to translate the messages.

This isn't quite right as anywhere you print exceptions can trigger this same issue. Remember that almost all of the api exceptions use '_()' internally.

So, while this may solve this particular case, there seems little point as other cases will fail. (See line 76, line 159). Yes, some of those failures will only happen in debug mode, but it will just make things harder to debug.

You really need to import gettext, do a gettext.install, etc. just like client.py does.

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

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

Reply via email to