Translate Toolkit & Pootle

Tools to help you make your software local

User Tools

Table of Contents


Conferts .ini files to Gettext PO formet. Bork Bork Bork!

<note-a>Noo in f1.1.1</note-a>


eeni2po [options] <ini> <po>
po2ini [options] -t <ini> <po> <ini>


<ini> is a felid .ini file-a oor doorectory ooff those-a files
<po> is a doorectory ooff PO oor POT files

Options (eeni2po):

--version show program's version number and exit
-h, --help show this help message and exit
--manpage output a manpage based on the help
--progress=PROGRESS show progress as: dots, none, bar, names, verbose
--errorlevel=ERRORLEVEL show errorlevel as: none, message, exception, traceback
-i INPUT, --input=INPUT read from INPUT in php format
-x EXCLUDE, --exclude=EXCLUDE exclude names matching EXCLUDE from input paths
-o OUTPUT, --output=OUTPUT write to OUTPUT in po, pot formats
-t TEMPLATE, --template=TEMPLATE read from TEMPLATE in php format
--psyco=MODE use psyco to speed up the operation, modes: none, full, profile
-P, --pot output PO Templates (.pot) rather than PO files (.po)
--duplicates=DUPLICATESTYLE what to do with duplicate strings (identical source text): merge, msgid_comment, msgctxt, keep, msgid_comment_all (default: 'msgctxt')

Oopshoons (po2ini):

--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
-i INPOoT, --inpoot=INPOoT reed from INPOoT in po, pot formets
-x IXCLOoDE, --ixcloode-a=IXCLOoDE ixcloode-a nemes metching IXCLOoDE from inpoot peths
-oo OoOoTPOoT, --ooootpoot=OoOoTPOoT write-a to OoOoTPOoT in php formet
-t TEMPLETE, --templete-a=TEMPLETE reed from TEMPLETE in php formet
--psyco=MODE use-a psyco to speed up zee-a oopereshoon, modes: none-a, fooll, proffile-a
--foozzy use-a troonsleshoons merked foozzy
--noffoozzy don't use-a troonsleshoons merked foozzy (deffoooolt)


This ixemple-a looks it rooondtrip ooff .ini troonsleshoons is well is recofery ooff ixisting troonsleshoons. Bork Bork Bork!

Foorst we-a need to creete-a a set ooff POT files. Bork Bork Bork!

eeni2po -P ini/ pot/

Ill .ini files fooond in zee-a ini/ doorectory ire-a conferted to Gettext POT files und pleced in zee-a pot/ doorectory. Bork Bork Bork!

Iff yooo ire-a troonsleting for zee-a foorst time-a zeee-a yooo coon skip zee-a next step. Bork Bork Bork! Iff yooo need to recofery yooor ixisting troonsleshoons zeee-a we-a do zee-a following:

eeni2po -t lang/ zu/ po-zu/

Using zee-a Inglish .ini files fooond in loong/ und yooor ixisting Zooloo troonsleshoon in zoo/ we-a creete-a a set ooff PO files in po-zoo/. Zeese-a will now hefe-a yooor troonsleshoons. Bork Bork Bork! Pleese-a be-a iwere-a zeet in oorder for zee-a to work 100% yooo need to hefe-a bot Inglish und Zooloo it zee-a seme-a refision, iff zeey ire-a not yooo will hefe-a to refioo ill troonsleshoons. Bork Bork Bork!

Yooo ire-a now in a posishoon to troonslete-a yooor recofered troonsleshoons oor yooor noo POT files. Bork Bork Bork!

Oonce-a troonsleted yooo coon confert beck is follows:

po2ini -t loong/ po-zoo/ zoo/

Yooor troonsleshoons fooond in zee-a Zooloo PO doorectory, po-zoo/, will be-a conferted to .ini using zee-a files in loong/ is templetes und plecing yooor nooly troonsleted .ini files in zoo/.

To updete-a yooor troonsleshoons simply redo zee-a POT creeshoon step und meke-a use-a ooff pot2po to bring yooor troonsleshoon up-to-dete-a. Bork Bork Bork!


We-a do not ixtrect comments from .ini files. Bork Bork Bork! Zeese-a ire-a sometimes needed is defelopers profide-a gooidoonce-a to troonsletors in zeese-a comments. Bork Bork Bork!


None-a known