Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to handle po and pot files
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