web2py2po(1)
π web2py2po β the glow-up page π
okay bestie, sit DOWN, because we're about to turn your web2py translation dictionaries into GNU/gettext PO files and honestly?? it's giving main character energy. this lil legend lives in the Translate Toolkit fam (version 3.19.5, no cap) and it's here to convert .py translation dicts into proper PO/POT files like the icon it is. π¦
β¨ 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]
that's the whole vibe right there π
πΈ DESCRIPTION πΈ
so like, what even is this? it converts your web2py translation dictionaries in .py format into GNU/gettext PO files β fr fr. π«Ά
and if you want the real tea (examples + usage instructions, the works), peek at:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/web2py2po.html
that's the official docs, go sip β
π OPTIONS π
every. single. one. no skipping, we don't gatekeep here π
--versionβ shows the program's version number and dips. βοΈ-h/--helpβ shows this help message and dips. π«‘--manpageβ outputs a whole manpage built from the help. iconic, honestly.--progressβ shows progress as:dots,none,bar,names,verbose. pick your vibe check. β¨--errorlevelβ shows errorlevel as:none,message,exception,traceback. so you know exactly how loudly it's gonna scream. π-i/--inputβ reads from INPUT inpyformat. π₯-x/--excludeβ excludes names matching EXCLUDE from the input paths. not on my watch, bestie. π-o/--outputβ writes to OUTPUT inpo,potformats. π€-S/--timestampβ skips the conversion if the output file already has a newer timestamp. it knows when it's not needed, lowkey self-aware. π§-P/--potβ outputs PO Templates (.pot) rather than PO files (.po). template era π--duplicatesβ what to do with duplicate strings (identical source text):merge,msgctxt(default:'msgctxt'). yep,msgctxtis the default, that's canon.
heads up bestie:--duplicatesis literally about identical source text, so if you've got repeat strings in there, this is the setting that decides their fate βmergeormsgctxt. the default is'msgctxt', periodt. π
and that's the whole page, angel π go forth and convert responsibly, and remember: every single flag above stays exactly as written, because accuracy is the actual slay. π
β courtesy of your girl, running Translate Toolkit 3.19.5 π (that's the source/version energy, and yeah, this page is dated, same as the original footer said). mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: translate-toolkit 3.19.5-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms