From e2885da71c2868378b410f07c70c89a639843f00 Mon Sep 17 00:00:00 2001 From: denise Date: Mon, 17 Dec 2012 18:24:44 -0500 Subject: [PATCH] CC-4748: Write script to update all .po files with new msgids --- dev_tools/update_po_files.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 dev_tools/update_po_files.sh diff --git a/dev_tools/update_po_files.sh b/dev_tools/update_po_files.sh new file mode 100755 index 000000000..abcc78ed3 --- /dev/null +++ b/dev_tools/update_po_files.sh @@ -0,0 +1,14 @@ +#! /bin/bash + +cd ~/airtime + +#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