pyi18n-izer Extract all your html text content and replace by localization strings Setup virtualenv env source env/bin/activate python setup.py install Usage python i18nizer [input_html_file] [output_po_file]