Skip to content

How to handle po and pot files

Daniel Niccoli edited this page Jan 4, 2014 · 1 revision
Clone this wiki locally

Generate the template file (.pot)

Usually the template file gets generates while compiling. But you can also generate it without compiling the server. Take care of the directories you are in while executing the commands.

/usr/local/src/webserver# ./autogen.sh
/usr/local/src/webserver/po/admin# make update-po

Update translation files (.po)

If you are a translator, here is how you keep your translation file (.po) up to date with current development. Obsolete entries are converted to comments. Take care of the directories you are in while executing the commands.

/usr/local/src/webserver/po/admin# msgmerge _--sort-by-file_ --update de.po cherokee.pot

Update default english translation file (en.po)

The default english translation needs to be updated automatically. Here is how you do it manually.

/usr/local/src/webserver/po/admin# msgen --output-file en.po _--sort-by-file_ cherokee.pot

Remove obsolete entries in an updated translation file.

/usr/local/src/webserver/po/admin# msgattrib --no-obsolete de.po > clean_de.po
Something went wrong with that request. Please try again.