CC-4748: Write script to update all .po files with new msgids
This commit is contained in:
parent
274b1f7562
commit
e2885da71c
1 changed files with 14 additions and 0 deletions
14
dev_tools/update_po_files.sh
Executable file
14
dev_tools/update_po_files.sh
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue