plone.app.discussion/plone/app/discussion/i18n.sh
Luca Fabbri 569cd0f33b Added the locales support.
Also refactored interfaces string to cleanup the default i18n messages default.

svn path=/plone.app.discussion/branches/localization-enabled/; revision=33352
2010-01-24 11:25:22 +00:00

14 lines
404 B
Bash
Executable File

#!/bin/sh
DOMAIN='plone.app.discussion'
i18ndude rebuild-pot --pot locales/${DOMAIN}.pot --create ${DOMAIN} .
i18ndude sync --pot locales/${DOMAIN}.pot locales/*/LC_MESSAGES/${DOMAIN}.po
# Compile po files
for lang in $(find locales -mindepth 1 -maxdepth 1 -type d); do
if test -d $lang/LC_MESSAGES; then
msgfmt -o $lang/LC_MESSAGES/${DOMAIN}.mo $lang/LC_MESSAGES/${DOMAIN}.po
fi
done