[08:13] alkisg u around? [08:13] Heya nubae, what's up? [08:13] * alkisg is trying google apps for my domain...:) [08:14] in my python code i'm running into ¡a reocurring peoblwm when using gettext (the internationalisation module) [08:15] i keeo getting back global variabke "_" not defned [08:15] Urm, I haven't done any internationalized apps in python, but feel free to describe the problem... [08:16] * alkisg also thinks nubae needs to change his keyboard layout :) [08:16] stgraber has put this to italc-launcher: [08:16] # gettext [08:16] gettext.textdomain('italc') [08:16] _ = gettext.gettext [08:16] yeah this keyboard sukcs quite badly [08:17] Doesn't that mean that "_" needs to be assigned to gettext.gettext? [08:18] the problem I get is everything launches fine, but after -iget udeclared _ which is the translation delimiter [08:18] gonna see if itsnot just a suse thing [08:20] nubae: see here: http://docs.python.org/library/gettext.html [08:20] It says that you have to ***define*** "_" yourself, like stgraber did [08:20] Here’s an example of typical usage for this API: [08:20] import gettext [08:20] gettext.bindtextdomain('myapplication', '/path/to/my/language/directory') [08:20] gettext.textdomain('myapplication') [08:20] _ = gettext.gettext [08:20] # ... [08:20] print _('This is a translatable string.') [08:21] So if you didn't do: _=gettext.gettext, you need to do it. [08:21] yep mine is done exactly like that [08:22] i fear there is a missing tool somewjere [08:24] That only applies to the current module, so if you have a lot of modules, you need to do it for each one of them [08:24] yeah I know... that part is done right [08:25] whats not done right is this globall declaration thing... I wasnt getting htat always b4 [08:25] Want to send me the code to see if it runs OK in my ubuntu? [08:26] oh sre [08:27] im making a vifgial macine anwyway though [08:27] virtual even [13:09] umm any idea how to get to efnet from here pls?? === ogra__ is now known as ogra [14:59] Morning all [15:06] its night in India dear [15:07] but gud morning to everybody there