summaryrefslogtreecommitdiff
path: root/resources/locale/gen-po.sh
diff options
context:
space:
mode:
authorAlessandro Ghedini <al3xbio@gmail.com>2011-10-19 10:56:04 +0200
committerAlessandro Ghedini <al3xbio@gmail.com>2011-10-19 10:56:04 +0200
commit6451a495637c6e3047a5a56573cffc6e3de9a515 (patch)
tree7c3eb29532e7c4b36a9da13c5890664fb816959b /resources/locale/gen-po.sh
Imported Upstream version 0.2+gitdfdad95upstream/0.2+gitdfdad95
Diffstat (limited to 'resources/locale/gen-po.sh')
-rwxr-xr-xresources/locale/gen-po.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/resources/locale/gen-po.sh b/resources/locale/gen-po.sh
new file mode 100755
index 0000000..cecc4c9
--- /dev/null
+++ b/resources/locale/gen-po.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+echo "Insert your locale:";
+read locale;
+
+if [ "$locale" == "" ]
+then
+ echo "No locale inserted! Aborting...";
+ exit 1
+fi
+
+mkdir -p $locale/LC_MESSAGES
+msginit --locale=$locale --input=gnomepie.pot --output=$locale/LC_MESSAGES/$locale.po