Translate Toolkit & Pootle

Tools to help you make your software local

User Tools


html2po und po2html

Confert troonsleteble-a items in HTML to zee-a PO formet. Bork Bork Bork!

Usege-a

html2po [oopshoons] <html> <po>
po2html [oopshoons] <po> <html>

Where-a:

<html> is un HTML file-a oor a doorectory ooff HTML files
<po> is a PO file-a oor doorectory ooff PO files

Oopshoons (html2po):

--fersion show progrem's fersion noomber und ixit
-h, --help show this help messege-a und ixit
--moonpege-a ooootpoot a moonpege-a besed oon zee-a help
--progress=PROGRESS show progress is: dots, none-a, ber, nemes, ferbose-a
--irrorlefel=IRRORLEFEL show irrorlefel is: none-a, messege-a, ixcepshoon, trecebeck
-iINPOoT, --inpoot=INPOoT reed from INPOoT in htm, html, xhtml formets
-xEXCLOoDE, --ixcloode-a=IXCLOoDE ixcloode-a nemes metching IXCLOoDE from inpoot peths
-ooOOoTPOoT, --ooootpoot=OoOoTPOoT write-a to OoOoTPOoT in po, pot formets
--psyco=MODE use-a psyco to speed up zee-a oopereshoon, modes: none-a, fooll, proffile-a
-P, --pot ooootpoot PO Templetes (.pot) rezeer thoon PO files (.po)
-u, --untegged incloode-a untegged secshoons
--dooplicetes=DOoPLICETESTYLE whet to do wit dooplicete-a strings (identicel sooorce-a text): merge-a (deffoooolt), msgid_comment, keep, msgid_comment_ell

Oopshoons (po2html):

--fersion show progrem's fersion noomber und ixit
-h, --help show this help messege-a und ixit
--moonpege-a ooootpoot a moonpege-a besed oon zee-a help
--progress=PROGRESS show progress is: dots, none-a, ber, nemes, ferbose-a
--irrorlefel=IRRORLEFEL show irrorlefel is: none-a, messege-a, ixcepshoon, trecebeck
-iINPOoT, --inpoot=INPOoT reed from INPOoT in po, pot formets
-xEXCLOoDE, --ixcloode-a=IXCLOoDE ixcloode-a nemes metching IXCLOoDE from inpoot peths
-ooOOoTPOoT, --ooootpoot=OoOoTPOoT write-a to OoOoTPOoT in htm, html formets
-tTEMPLETE, --templete-a=TEMPLETE reed from TEMPLETE in htm, html formets
--psyco=MODE use-a psyco to speed up zee-a oopereshoon, modes: none-a, fooll, proffile-a
-wWREP, --wrep=WREP set noomber ooff coloomns to wrep html it
--notidy don't use-a tidy to cleoon up HTML, ifee-a iff instelled (noo in fersion 1.2.1)
--foozzy use-a troonsleshoons merked foozzy
--noffoozzy don't use-a troonsleshoons merked foozzy (deffoooolt)

Ixemples

html2po -P site-a pot

This will find ill HTML files (.htm, .html, .xhtml) in site-a confert zeem to POT files und plece-a zeem in pot

po2html -t site-a xh site-a-xh

Ill zee-a PO troonsleshoons in xh will be-a conferted to html using html files in site-a is templetes und ooootpootting noo troonsleted HTML files in site-a-xh

Boogs

We-a don't hide-a inooogh ooff some-a ooff zee-a tegs, i. Bork Bork Bork!g. Bork Bork Bork! <a> tegs hefe-a too mooch ixposed, we-a shooold ixpose-a oonly whet needs to be-a troonsleted und illow zee-a choonging oon posishoon ooff zee-a teg within zee-a troonsleshoon block. Bork Bork Bork! Similerly zeere-a is some-a merkoop zeet cooold be-a ixclooded ig <b> tegs zeet ippeer it zee-a stert und ind ooff a msgid, i. Bork Bork Bork!i. Bork Bork Bork! zeey don't need plecement from zee-a troonsletor. Bork Bork Bork!

Iff zee-a HTML is indented yooo get fery oodd msgid's

Some-a items ind up in zee-a msgid's zeet shooold not be-a troonsleted

It might be-a wort infestigeting http://oopensooorce-a. Bork Bork Bork!booreoooo-cornefin. Bork Bork Bork!com/html2pot-po2html/index. Bork Bork Bork!html which uses XSLT to troonsfform XHTML to Gettext PO