Some of you may have observed that the number of entries of each locale
are quite different. The reason is that po files in some locales and/or
modules are not kept up to date with the corresponding pot file. To
ensure po files stay up2date, it is a good idea to run the following
command before you start working on a file and before you commit the
file:
msgmerge po-file pot-file > tmp-file (this is to merge with the latest
pot file)
mv tmp-file po-file
msgfmt -cvo /dev/null po-file (this is view translation stat as well as
to do basic format check)
If you are the coordinator for the entire locale, and want to do this
regularly for all modules in this locale, you can use the attached
simple script to do so:
automerge.sh <lang-code>
Note:
1) put the script into a directory in your command path
2) chmod 755
3) be aware of potential file conflicts
Cheers,
Sarah
Show replies by date