web2py2po(1)
π web2py2po(1) β bestie's guide to converting web2py dictionaries
okay so real talk, this is web2py2po, and it lives in the Translate Toolkit 3.12.1 era. It's the little icon that takes your web2py translation dictionaries (the .py ones) and turns them into GNU/gettext PO files. no cap, that's the whole gig. π¦
β¨ SYNOPSIS β¨
web2py2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-S|--timestamp] [-P|--pot] [--duplicates
DUPLICATESTYLE]
like, that's the whole vibe check right there. everything below is just the receipts. π§Ύ
πΈ DESCRIPTION πΈ
so the manpage itself is kinda shy here β it just points you at the docs, and honestly? valid. it says, and i quote the energy: see
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/web2py2po.html
for examples and usage instructions. that's the link for all the how-do-i-actually-do-this tea. go sip. π
π OPTIONS π
--versionβ show the program's version number and then dip. exit stage left. π-h/--helpβ show this help message and bail out. your classic cry-for-help-but-make-it-friendly.--manpageβ output a manpage based on the help. yes, a manpage generating a manpage, it's giving meta main character energy. πͺ--progressβ show progress as:dots,none,bar,names,verbose. pick your lil progress aesthetic. β¨--errorlevelβ show errorlevel as:none,message,exception,traceback. how much do you wanna know when things go sideways? π-i/--inputβ read fromINPUTinpyformat. this is your web2py source-of-truth, bestie.-x/--excludeβ exclude names matchingEXCLUDEfrom input paths. not today, satan. π«-o/--outputβ write toOUTPUTinpo,potformats. the glow-up destination. π-S/--timestampβ skip conversion if the output file has newer timestamp. if it's fresher than you, leave it alone, periodt. βοΈ-P/--potβ output PO Templates (.pot) rather than PO files (.po). template era, not translation era. π§--duplicatesβ what to do with duplicate strings (identical source text):merge,msgctxt. default ismsgctxtβ don't forget that, iykyk. π₯
heads up bestie: duplicates are literally "identical source text", so this flag decides whether those twins getmerged together or kept apart withmsgctxt. the default βmsgctxtβ is doing the keeping-apart. that's canon. no guessing required. π
π a lil sign-off π
and that's the whole page! Translate Toolkit 3.12.1, web2py2po(1) β converted, annotated, and served with a bow π. take your .py files, make them .po, and go be iconic. mwah. ππ«Ά
π¦ where this page comes from
- opensuse-leap 16.0: python313-translate-toolkit 3.12.1-bp160.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms