blob: 5aa69ea30d38aee07ab25c8f91d737856cadab0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|