diff options
author | Buchan Milne <buchan@mageia.org> | 2010-10-26 14:51:48 +0000 |
---|---|---|
committer | Buchan Milne <buchan@mageia.org> | 2010-10-26 14:51:48 +0000 |
commit | 601b41083cf7c2186ecce70ec07aebdb9310edd6 (patch) | |
tree | 23d14b17ec560316d94f0d840f47a4ae48e9d7b3 /script/catdap_i18n.sh | |
parent | 195308dcc10a015aaae5fd1f1bd0be817c2127bd (diff) | |
download | identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.tar identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.tar.gz identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.tar.bz2 identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.tar.xz identity-601b41083cf7c2186ecce70ec07aebdb9310edd6.zip |
Clean up repo
Diffstat (limited to 'script/catdap_i18n.sh')
-rwxr-xr-x | script/catdap_i18n.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/script/catdap_i18n.sh b/script/catdap_i18n.sh new file mode 100755 index 0000000..8c52d1c --- /dev/null +++ b/script/catdap_i18n.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +app=CatDap + +if [ $# -eq 0 ] +then + xgettext.pl --output=lib/$app/I18N/messages.pot --directory=lib --directory=root + for po in lib/$app/I18N/*.po + do + file=`basename $po` + loc=${file%%.po} + msgmerge --update lib/$app/I18N/$loc.po lib/$app/I18N/messages.pot + done +else + msginit --input=lib/$app/I18N/messages.pot --output=lib/$app/I18N/$1.po --locale=$1 +fi |