po2flatxml(1)
π¦ po2flatxml β like, the manual page, but make it make sense β¨
okay so bestie, welcome to the po2flatxml(1) page from Translate Toolkit 3.12.1 β yes, the whole manual, and yes I'm gonna walk you through it like we're texting at 1am π
β¨ NAME β¨
po2flatxml β the little icon that converts Gettext PO localization files into flat XML files. that's it, that's the job, and she does it flawlessly π
π SYNOPSIS π
like, here's how you actually call her:
po2flatxml [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[-r|--root] [-v|--value] [-k|--key] [-n|--namespace] [-w|--indent]
no notes, she ate π
πΈ DESCRIPTION πΈ
okay so the page is very chill about this and just points you at the docs, so I'm passing the pointer straight to you, no cap:
See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/flatxml2po.html for examples and usage instructions.
that's where the actual examples and usage instructions live β go look, she's iconic π
π OPTIONS π
every single one, in order, nothing skipped, because I would never π
--versionβ show program's version number and exit. the "who even am I" flag πββοΈ-h/--helpβ show this help message and exit. use it, bestie, it's free--manpageβ output a manpage based on the help. manpage-ception, we love to see it π--progressβ show progress as:dots,none,bar,names,verbose. pick your vibe check for how much you wanna watch it work β¨--errorlevelβ show errorlevel as:none,message,exception,traceback. how much detail you want when things go sideways π-i/--inputβ read from INPUT inpo,potformats. the source material, the moment, the main character π₯-x/--excludeβ exclude names matching EXCLUDE from input paths. not you, girl, sit down π«-o/--outputβ write to OUTPUT inxmlformat. the glow-up destination π€-t/--templateβ read from TEMPLATE inxmlformat. giving it a blueprint to follow π§-S/--timestampβ skip conversion if the output file has newer timestamp. lowkey efficient, highkey lazy, we stan β°-r/--rootβ name of the XML root element (default:"root"). the foundation, the parent, the one who holds it all together π³-v/--valueβ name of the XML value element (default:"str"). where the actual words go π¬-k/--keyβ name of the XML key attribute (default:"key"). the label on the tin π·οΈ-n/--namespaceβ XML namespace uri (default:None). no namespace unless you say so, and honestly respect π«Ά-w/--indentβ indent width in spaces,0for no indent (default:2). two spaces is the correct answer and I will not be taking questions π
ngl, defaults are doing a lot of heavy lifting here β"root","str","key",None, and2. if you don't pass them, that's what you get, fr fr π
π that's the whole page, bestie π
this was po2flatxml(1) from Translate Toolkit 3.12.1, and that's the version and everything you need to quote at people when they ask where the docs came from. go convert some PO files into flat XML, you absolute legend ππβ¨
π¦ 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