Fix paths after legacy rename
This commit is contained in:
parent
ca21225fb9
commit
c4c89eae19
23 changed files with 47 additions and 47 deletions
|
@ -7,7 +7,7 @@ SCRIPT=$(readlink -f "$0")
|
|||
# Absolute directory this script is in
|
||||
SCRIPTPATH=$(dirname "$SCRIPT")
|
||||
|
||||
cd "$SCRIPTPATH/../airtime_mvc/" || (echo "could not cd in $SCRIPTPATH/../airtime_mvc/" && exit 1)
|
||||
cd "$SCRIPTPATH/../legacy/" || (echo "could not cd in $SCRIPTPATH/../legacy/" && exit 1)
|
||||
path=$(pwd)
|
||||
cd build
|
||||
sed -i "s|\"project\.home =.*$\"|\"project.home = $path\"|g" build.properties
|
||||
|
|
|
@ -4,16 +4,16 @@ cd ..
|
|||
|
||||
#generate a new .po file
|
||||
#this will generate a file called messages.po
|
||||
find airtime_mvc -print0 -iname "*.phtml" -o -name "*.php" | xargs xgettext -L php --from-code=UTF-8
|
||||
find airtime_mvc -print0 -iname "*.phtml" -o -name "*.php" | xargs xgettext -L php --from-code=UTF-8 -k --keyword=_pro:1 -d pro --force-po
|
||||
find legacy -print0 -iname "*.phtml" -o -name "*.php" | xargs xgettext -L php --from-code=UTF-8
|
||||
find legacy -print0 -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 "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 \;
|
||||
find ./legacy/locale/ -name "airtime.po" -exec msgmerge -N -U --no-wrap "{}" messages.po \;
|
||||
find ./legacy/locale/ -name "pro.po" -exec msgmerge -N -U --no-wrap "{}" pro.po \;
|
||||
|
||||
#delete the old .po files
|
||||
find ./airtime_mvc/locale/ -name "*.po~" -delete
|
||||
find ./legacy/locale/ -name "*.po~" -delete
|
||||
|
||||
#delete the temporary po files we create in the root directory
|
||||
rm ./*.po
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue