Roundup Tracker - Issues

Message4962

Author ber
Recipients antmail, ber
Date 2013-12-13.09:12:58
Message-id <1386925980.06.0.703706153832.issue2550825@psf.upfronthosting.co.za>
In-reply-to
Hi Anthony,
the i18n module only loads .mo files it can find (or create from .po files it 
found). Reading the code it seems that in the default case it only 
searches in some places, depending on where roundup is installed.

You can see the place it searches with the following test:

python
>>> import roundup.i18n as i
>>> i.LOCALE_DIRS
['/usr/share/locale', '../../../share/locale']

Place your ..mo or .po files there or temporarily patch 
the beginning of i18n.py.

To get a German "de" translation for demo.py I did something like
added ".locale" to LOCALE_DIRS in the top of i18n.py
and then copied the .po files to the right place (roundup compiles it then).
  mkdir -p ./locale/de/LC_MESSAGES
  cp ./locale/de.po ./locale/de/LC_MESSAGES/
  python demo.py

Let me know if this solves your case.
And please also suggest a hint for improvement of the documentation.
History
Date User Action Args
2013-12-13 09:13:00bersetmessageid: <1386925980.06.0.703706153832.issue2550825@psf.upfronthosting.co.za>
2013-12-13 09:13:00bersetrecipients: + ber, antmail
2013-12-13 09:12:59berlinkissue2550825 messages
2013-12-13 09:12:59bercreate