Skip to content

Instantly share code, notes, and snippets.

@teemow
Created January 2, 2012 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teemow/1550791 to your computer and use it in GitHub Desktop.
Save teemow/1550791 to your computer and use it in GitHub Desktop.
#!/bin/bash
FOLDER=/home/teemow/Projekte/globalguest/www/trunk/app
LANGUAGES=( deu eng )
# update the template (pot)
cake i18n extract -path $FOLDER -output $FOLDER/locale/
for language in ${LANGUAGES[@]}
do
echo -e "\n${language}:"
msgmerge --update $FOLDER/locale/${language}/LC_MESSAGES/default.po $FOLDER/locale/default.pot
msgfmt --output-file=$FOLDER/locale/$language/LC_MESSAGES/default.mo $FOLDER/locale/$language/LC_MESSAGES/default.po
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment