Skip to content

Translation template

zerocrates edited this page Dec 20, 2011 · 8 revisions

This process is outdated. Use ant build-mo instead.

The template for translators to use when making or updating a translation of Omeka is currently called Omeka.pot, and lives in the application/libraries folder.

To regenerate this file and pick up the latest strings and locations, you need the GNU gettext package, specifically the xgettext program.

rm application/languages/Omeka.pot
cp application/languages/Omeka.base.pot application/languages/Omeka.pot
find . -iname "*.php" -print0 -o -iname "*.phtml" -print0 | xargs -0 xgettext -L php \
--from-code=utf-8 -k__ --flag=__:1:pass-php-format --omit-header -j -o application/languages/Omeka.pot -F
Clone this wiki locally