[gnome3-web] [i18n] minimalistic build script to create translated pages



commit a0c93235334175eb24eff1c030c63d856666e22a
Author: Frédéric Péters <fpeters 0d be>
Date:   Tue Feb 8 14:40:11 2011 +0100

    [i18n] minimalistic build script to create translated pages

 build.sh |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..0fed894
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,13 @@
+#! /bin/bash -e
+
+xml2po -e -m xhtml -o gnome3.pot *.html
+for POFILE in po/*.po
+do
+    LANG=$(basename $POFILE .po)
+    for HTMLFILE in *.html
+    do
+      echo "Writing $HTMLFILE.$LANG"
+      xml2po -p $POFILE -m xhtml -o $HTMLFILE.$LANG $HTMLFILE
+    done
+done
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]