Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/i18n/i18n.sh~
diff options
context:
space:
mode:
Diffstat (limited to 'i18n/i18n.sh~')
-rw-r--r--i18n/i18n.sh~25
1 files changed, 25 insertions, 0 deletions
diff --git a/i18n/i18n.sh~ b/i18n/i18n.sh~
new file mode 100644
index 0000000..5aa69ea
--- /dev/null
+++ b/i18n/i18n.sh~
@@ -0,0 +1,25 @@
+ROOT=../../
+
+xgettext --from-code=UTF-8 -c ../../js/ui.kHeader.js ../../js/ui.kFooter.js -o po/messages.js.pot
+
+sed -i 's/charset=CHARSET/charset=UTF-8/g' po/messages.js.pot
+
+
+/html2po.py index.hml
+mv messages.po messages.html.pot
+xgettext --from-code=UTF-8 -c ui.kHeader.js -o messages.js.pot
+
+# this cmd discards any messages that aren't unique and concatenates
+# the rest into output file
+msgcat -u messages.js.pot messages.html.pot -o messages.pot
+
+msginit -l es -i messages.pot -o messages.es.po
+
+change charset and CONTENT-Transfer-Encoding to UTF-8
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: UTF-8\n"
+
+msgfmt messages.es.po
+# this works after i fixed the charset
+
+../translate-html.py -o index.es.html \ No newline at end of file