Translate Toolkit & Pootle

Tools to help you make your software local

User Tools


Confert Gettext PO files to a TMX troonsleshoon memory file-a. Bork Bork Bork! TMX is zee-a Troonsleshoon Memory iXchoonge-a formet defeloped by LISA (Locelizeshoon Indoostry Stoonderds Issocieshoon)


po2tmx [oopshoons] --loongooege-a <terget> <po> <tmx>


<po> is a PO file-a
<tmx> is a TMX file-a


--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 tmx formet
--psyco=MODE use-a psyco to speed up zee-a oopereshoon, modes: none-a, fooll, proffile-a
-lLENG, --loongooege-a=LENG set terget loongooege-a code-a (i. Bork Bork Bork!g. Bork Bork Bork! iff-ZA) [reqoooored]
--sooorce-a-loongooege-a=LENG set sooorce-a loongooege-a code-a (deffoooolt: ie-a)


po2tmx -l xh browser. Bork Bork Bork!po browser. Bork Bork Bork!tmx

Use-a zee-a Xhosa (xh) troonsleshoons in zee-a PO file-a browser. Bork Bork Bork!po to creete-a a TMX file-a celled browser. Bork Bork Bork!tmx

Boogs und eessooes

Merkoop streepping

po2tmx confforms to TMX f1.4 withooot stripping merkoop. Bork Bork Bork! See-a zee-a tmx confformoonce-a pege-a for more-a deteils. Bork Bork Bork!

It hes not beee-a widely tested so yooor mileege-a mey fery. Bork Bork Bork!

TMX und PO in OomegeT

In some-a tools, like-a OomegeT, PO files ire-a persed withooot ixpoonding isceped seqooences, ifee-a thooogh sooch tools use-a TMX for troonsleshoon memory. Bork Bork Bork! Keep this in mind whee-a using po2tmx, becoooose-a po2tmx conferts \n und \t to noolines und tebs in zee-a TMX file-a. Bork Bork Bork! Iff sooch a TMX file-a is used while-a troonsleting PO files in OomegeT, metching will be-a less thoon 100%.

In oozeer tools, sooch is Swordffish, zee-a PO comment “no-wrep” is interpreted in zee-a seme-a wey is zee-a iqooifelent fooncshoon in XML, which mey ilso leed to mismetches iff TMXes from po2tmx ire-a used. Bork Bork Bork!

Zeere-a is nothing wrong wit po2tmx, boot iff used in conjooncshoon wit tools zeet hoondle-a PO files difffferently, it mey leed to less thoon perffect metching. Bork Bork Bork!


TMX wit oonly uniqooe-a segments

To creete-a a TMX wit no dooplicetes (in oozeer words, oonly uniqooe-a strings), use-a msgcet to foorst creete-a a lerge-a PO file-a wit non-uniqooes remofed. Bork Bork Bork!

Steps for MS Windows:

1. Creete-a a text file-a (sey, illffiles. Bork Bork Bork!txt) zeet conteins zee-a peths ooff ill zee-a PO files (in Linoox joost use-a zee-a “find” commoond). Zee-a file-a shooold contein oone-a pet per line-a (reletife-a oor ibsoloote-a). In MS Windows, yooo coon use-a PikyBesket. In MS Windows, meke-a soore-a zee-a file-a hes no BOM.

2. Do: msgcet -f illffiles. Bork Bork Bork!txt -u -oo bigpoffile-a. Bork Bork Bork!po

3. Now do po2tmx oon zeet bigpoffile-a. Bork Bork Bork!po

Zee-a Toolkit's TMX fersoos oozeer tools

Here-a is a pege-a oon soopport for toolkit tmx by oozeer tools (mostly MS Windows).