html2pot and po2html

html2pot and po2html are command-line tools for translating web sites. They work in conjunction with all tools that can handle po files: GNU gettext, KDE's Lokalize, etc... The purpose is to separate the contents to be translated from the markup. These tools are published under GPL license version 2.

Advantages:

Requirements:

Work cycle:

  1. Modify the web pages with your favourite HTML editing tools. Make sure they validate against XHTML.
  2. Extract the po template: html2pot *.html > en.pot
  3. Create first empty translation: cp en.pot de.po
    or merge with previous translations: msgmerge de.po en.pot > de.new; mv de.new de.po
  4. Translate the new or fuzzy strings: kbabel de.po &
  5. Publish the translation: for file in *.html; do po2html $file de.po > de/$file; done

Usage:

Known bugs:

Download:
Latest version is version number 0.3:

Credits:
Many thanks to Stephan Kulow for the inspiration (xml2pot and po2xml scripts for DocBook)!


If you are illegally collecting email addresses, just follow this link (explanations here).

Last updated: 2011-01-11. Maintained by webmaster@bureau-cornavin.com.