How to translate¶
You can (but you don’t have to) use Transifex to manage/coordinate your translations: http://www.transifex.net/projects/p/imdbpy/
imdb.locale package contains some scripts that are useful
for building your own internationalization files:
generatepot.pyscript should be used only when the DTD is changed; it’s used to create the
imdbpy.potfile (the one that gets shipped is always up-to-date).
- You can copy the
imdbpy.potfile as your language’s
.pofile (for example
imdbpy-fr.pofor French) and modify it according to your language.
- Then you have to run the
rebuildmo.pyscript (which is automatically executed at install time) to create the
If you need to upgrade an existing translation, after changes to the
file (usually because the DTD was changed), you can use the
utility which is part of the GNU gettext suite:
msgmerge -N imdbpy-fr.po imdbpy.pot > new-imdbpy-fr.po
If you create a new translation or update an existing one, you can send it to the <email@example.com> mailing list, for inclusion in upcoming releases.