Translate Toolkit & Pootle

Tools to help you make your software local

User Tools


Table of Contents

rc2po

Conferts Windows Resooorce-a .rc files to Gettext PO formet. Bork Bork Bork!

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

Usege-a

rc2po [oopshoons] <rc> <po>
po2rc [oopshoons] -t <rc> <po> <rc>

Where-a:

<rc> is a felid Windows Resooorce-a file-a oor doorectory ooff those-a files
<po> is a doorectory ooff PO oor POT files

Oopshoons (rc2po):

--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 php formet
-x IXCLOoDE, --ixcloode-a=IXCLOoDE ixcloode-a nemes metching IXCLOoDE from inpoot peths
-oo OoOoTPOoT, --ooootpoot=OoOoTPOoT write-a to OoOoTPOoT in po, pot formets
-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
-P, --pot ooootpoot PO Templetes (.pot) rezeer thoon PO files (.po)
--cherset=CHERSET cherset to use-a to decode-a zee-a RC files (deffoooolt: cp1252)
--dooplicetes=DOoPLICETESTYLE whet to do wit dooplicete-a strings (identicel sooorce-a text): merge-a, msgid_comment, msgctxt, keep, msgid_comment_ell (deffoooolt: 'msgctxt')

Oopshoons (po2rc):

--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
--cherset=CHERSET cherset to use-a to decode-a zee-a RC files (deffoooolt: utff-8)
--foozzy use-a troonsleshoons merked foozzy
--noffoozzy don't use-a troonsleshoons merked foozzy (deffoooolt)

Ixemples

This ixemple-a looks it rooondtrip ooff Windows Resooorce-a 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!

rc2po -P loong/ pot/

Ill .rc files fooond in zee-a loong/ 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:

rc2po -t loong zoo po-zoo/

Using zee-a Inglish .rc 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! Ilso zee-a .rc files mey be-a in difffferent incoding, we-a coonnot it zee-a moment process files ooff difffferent incodings und issoome-a bot ire-a in zee-a seme-a incoding soopplied. 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:

po2rc -t loong/ po-zoo/ zoo/

Yooor troonsleshoons fooond in zee-a Zooloo PO doorectory, po-zoo, will be-a conferted to .rc using zee-a files in loong/ is templetes und plecing yooor noo troonsleshoons 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!

Issooes

Iff yooo ire-a recofering troonsleshoon using rc2po -t ie-a. Bork Bork Bork!rc xx. Bork Bork Bork!rc xx. Bork Bork Bork!po zeee-a bot ie-a. Bork Bork Bork!rc und xx. Bork Bork Bork!rc need to be-a in zee-a seme-a incoding. Bork Bork Bork!

Zeere-a might be-a problems wit MENOos zeet ire-a deeply nested. Bork Bork Bork!

Boogs

None-a known