aboutsummaryrefslogtreecommitdiffstats
path: root/script/catdap_i18n.sh
diff options
context:
space:
mode:
authorBuchan Milne <buchan@mageia.org>2010-10-26 14:51:48 +0000
committerBuchan Milne <buchan@mageia.org>2010-10-26 14:51:48 +0000
commit601b41083cf7c2186ecce70ec07aebdb9310edd6 (patch)
tree23d14b17ec560316d94f0d840f47a4ae48e9d7b3 /script/catdap_i18n.sh
parent195308dcc10a015aaae5fd1f1bd0be817c2127bd (diff)
downloadidentity-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-xscript/catdap_i18n.sh16
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