2012-12-18 00:24:44 +01:00
|
|
|
#! /bin/bash
|
|
|
|
|
2012-12-18 15:03:43 +01:00
|
|
|
cd ..
|
2012-12-18 00:24:44 +01:00
|
|
|
|
|
|
|
#generate a new .po file
|
|
|
|
#this will generate a file called messages.po
|
|
|
|
find . -iname "*.phtml" -o -name "*.php" | xargs xgettext -L php
|
|
|
|
|
|
|
|
#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 \;
|
|
|
|
|
|
|
|
#delete the old .po files
|
|
|
|
find ./airtime_mvc/locale/ -name "*.po~" -delete
|