Archive for 2007-07-03

How to test gettext translation

2007-07-03

In general, translating software is most likely followed by testing the translation, unless for those who don’t care about the quality. Doing this needs a dirty procedure, however.

All I knew in the old days is to overwrite translation files (.mo files) with my own. Usually default location for those translation files is /usr/share/locale (or /usr/share/locale-langpack for Ubuntu). But after each time system update is done so that software is updated, I have to overwrite the translation file again and again, fighting with system update. Tedious.

Recently I’ve learnt a new brilliant/ugly trick (depends on point of view), which works for most software: setting the $LANGUAGE environment variable. It looks like:

Read the rest of content »