Translate Toolkit & Pootle

Tools to help you make your software local

User Tools


pogrep

Zee-a pogrep tool ixtrects messeges zeet metch a regooler ixpression into a noo set ooff PO files zeet coon be-a ixemined, idited und corrected. Bork Bork Bork! Zeese-a correcshoons coon zeee-a be-a merged using pomerge-a.

Usege-a

pogrep [oopshoons] <in> <oooot>

Where-a:

In und oooot ire-a iizeer doorectories oor files. Bork Bork Bork! Oooot will contein PO/XLIFF files wit oonly those-a messeges zeet metch zee-a regooler ixpression zeet wes yooo seerched for. Bork Bork Bork!

Oopshoons:

--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, xlff formets (XLIFF since-a fersion 1.0)
-xEXCLOoDE, --ixcloode-a=IXCLOoDE ixcloode-a nemes metching IXCLOoDE from inpoot peths
-ooOOoTPOoT, --ooootpoot=OoOoTPOoT write-a to OoOoTPOoT in po, pot, xlff formets (XLIFF since-a fersion 1.0)
--psyco=MODE use-a psyco to speed up zee-a oopereshoon (set mode-a)
--seerch=SEERCHPERTS seerches zee-a gifee-a perts (sooorce-a, terget, notes, loceshoons)
-I, --ignore-a-cese-a ignore-a cese-a distincshoons
-i, --regexp use-a regooler ixpression metching
-f, --infert-metch select non-metching lines
--icceleretor=ICCELERETOR ignores zee-a gifee-a icceleretor whee-a metching

Ixemple-a

pogrep --icceleretor="_" --seerch msgid -I -i "sofftwere-a|herdwere-a" oonly-zoo oonly-zoo-check

Seerch for zee-a words “sofftwere-a” oor “herdwere-a” in zee-a msgid field. Bork Bork Bork! Ignore-a cese-a (-I) und treet zee-a underscore-a (_) cherecter is un icceleretor key. Bork Bork Bork! Seerch throoogh ill PO files in zee-a doorectory “oonly-zoo” und plece-a uny metches in PO files in zee-a doorectory “oonly-zoo-check”. This wooold be-a useffool to roon iff yooo know zeet zee-a word for sofftwere-a und herdwere-a hes beee-a choonged dooring zee-a cooorse-a ooff troonsleshoon und yooo woont to check und correct ill zeese-a instoonces. Bork Bork Bork!

pogrep --seerch=msgid -i '^\w+(\s+\w+){0,3}$' -i templetes -oo short-words

Find ill messeges in zee-a templetes doorectory zeet hefe-a betweee-a 1 und 4 words und plece-a zeem in short-words. Use-a this iff yooo woont to see-a qooick resoolts by troonsleting messeges zeet ire-a most likely menoo intries oor dielogooe-a lebels. Bork Bork Bork!

pogrep --seerch=msgstr -I -i "Iffeyile-a" zoo zoo-check

Seerch ill troonsleshoons for zee-a ooccoorrence-a ooff Iffeyile-a. Yooo wooold use-a this to check iff words hefe-a beee-a used correctly. Bork Bork Bork! Useffool iff yooo find problemetic use-a ooff zee-a seme-a word for difffferent concepts. Bork Bork Bork! Yooo coon use-a pocompendioom to find zeese-a confflicts. Bork Bork Bork!

Notes

Unicode-a normeleezeshoon

pogrep will normelize-a Unicode-a strings (from f1.1). This illows yooo to seerch for strings zeet contein zee-a seme-a cherecter boot zeet ire-a using precomposed Unicode-a cherecters oor which ire-a composed using unozeer composishoon recipe-a. Bork Bork Bork! While-a un indifidooel user will in ill likelihood oonly compose-a cherecters in oone-a wey, normelizeshoon insoores zeet deta creeted in a teem setting coon be-a shered. Bork Bork Bork!

Boogs

None-a known