HTML2POT and PO2HTML tools
- From: "liu jack" <jackliu9999 msn com>
- To: gnome-i18n gnome org
- Subject: HTML2POT and PO2HTML tools
- Date: Sat, 06 Mar 2004 00:45:04 +0800
Many documents are writen in HTML format. So it's very hard to translate
those documents. Because we have no antitheses between english and other
language in one file. Furthermore, we can not inherit any translation from
the old file easily. Now i18n-zh_CN team has invented a tool named "getpo"
to accomplish the task. It's under the term of GPL v2. Download it from
You also need perl>5.1 / gettext>=0.11.2 / tidy (only tested on Ver. 1st
September 2003, but I guess it will work well on other versions)
Note: all po/html files should be in UTF-8 code set!
1. Turn one file from HTML to PO:
cat foo.html | ./html2pot.pl > foo.html.pot
2. Turn more files from HTML to POT:
cp *.html *.htm ./html
You will get all POT files in pot directory.
3. Turn one file from PO to HTML:
cat foo.html.po | ./po2html.pl > foo.html
4. Turn more files from PO to HTML:
cp *.htm.po *.html.po ./po
You will get all HTML files in html.new directory.
Do not use the tool "combine". It's buggy now. We will fix it in following
editions. See the screenshot.
与联机的朋友进行交流，请使用 MSN Messenger: http://messenger.msn.com/cn
] [Thread Prev