Updated i18n to use multiple domains

This commit is contained in:
Duncan Sommerville 2014-11-04 16:57:40 -05:00
parent 057993eeeb
commit 5275669211
5 changed files with 23 additions and 7 deletions

View file

@ -5,10 +5,15 @@ cd ..
#generate a new .po file
#this will generate a file called messages.po
find . -iname "*.phtml" -o -name "*.php" | xargs xgettext -L php --from-code=UTF-8
find . -iname "*.phtml" -o -name "*.php" | xargs xgettext -L php --from-code=UTF-8 -k --keyword=_pro:1 -d pro --force-po
#merge the new messages from messages.po into each existing .po file
#this will generate new .po files
find ./airtime_mvc/locale/ -name "*.po" -exec msgmerge -N -U --no-wrap "{}" messages.po \;
find ./airtime_mvc/locale/ -name "airtime.po" -exec msgmerge -N -U --no-wrap "{}" messages.po \;
find ./airtime_mvc/locale/ -name "pro.po" -exec msgmerge -N -U --no-wrap "{}" pro.po \;
#delete the old .po files
find ./airtime_mvc/locale/ -name "*.po~" -delete
#delete the temporary po files we create in the root directory
rm ./*.po