summaryrefslogtreecommitdiff
path: root/intl/synclang
diff options
context:
space:
mode:
Diffstat (limited to 'intl/synclang')
-rwxr-xr-xintl/synclang19
1 files changed, 19 insertions, 0 deletions
diff --git a/intl/synclang b/intl/synclang
new file mode 100755
index 0000000..e46dce2
--- /dev/null
+++ b/intl/synclang
@@ -0,0 +1,19 @@
+#!/bin/sh
+echo
+echo Syncing other languages.
+mkdir ../intl-bak 2>/dev/null
+languages=`cat index.txt|sed 's/ //g'`
+if [ -n "$languages" ]; then
+ for i in $languages; do
+ if [ "$i" != english ]; then
+ echo -n $i" " 1>&2
+ awk -f synclang.awk <$i.lng | sed 's/ //g' >_sync.tmp
+ mv $i.lng ../intl-bak/$i.lng.bak
+ mv _sync.tmp $i.lng
+ fi
+ done
+ echo
+ echo Done.
+fi
+echo
+./gen-intl