Comment 6 for bug 587123

Revision history for this message
Michal Hruby (mhr3) wrote :

I agree with Gabor, it's fine (but not necessary) to regenerate the pot file, but please don't regenerate the po files, it makes merging translations from LP non-trivial. Also I don't like the extra i18n file that Gabor introduced, it should be defined in some of the .py files, otherwise people will only forget to update the file in the future.

Please use what is suggested on http://docs.python.org/library/gettext.html:

def N_(message): return message

animals = [N_('mollusk'),
           N_('albatross'),
           N_('rat'),
           N_('penguin'),
           N_('python'), ]

# ...
for a in animals:
    print _(a)