flatxml2po(1)
π flatxml2po(1) β bestie edition β¨
okay so. flatxml2po is the girlie from the Translate Toolkit family (version 3.19.5, for the record π) and she does exactly one thing and she does it immaculately: she takes your flat XML files and turns them into Gettext PO localization files. that's it. that's the whole vibe. π¦
β¨ NAME β¨
flatxml2po β Convert flat XML files to Gettext PO localization files. no cap. π
πΈ SYNOPSIS πΈ
flatxml2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-S|--timestamp] [-r|--root] [-v|--value]
[-k|--key] [-n|--namespace]
like yes it's a lot of brackets bestie but every single one of them is doing something i promise π
π DESCRIPTION π
so the actual lore, the how-to, the examples, the whole usage situation? it lives here:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/flatxml2po.html
go read it, it's giving documentation. πβ¨
π OPTIONS π
here's the full roster, no skips, no cuts, we respect all of them equally π
--versionβ shows the program's version number and dips. that's it, that's the whole job.-h/--helpβ prints this help message and exits. your bestie when you forget everything.--manpageβ spits out a manpage built from the help output. manpage inception, iconic honestly.--progressβ how much progress tea do you want spilled? options are:dots,none,bar,names,verbose.--errorlevelβ how dramatic should the errors be? choices:none,message,exception,traceback. pick your chaos level π-i/--inputβ read fromINPUTin xml format. this is where your files come in π«Ά-x/--excludeβ exclude names matchingEXCLUDEfrom the input paths. not today, bestie π«-o/--outputβ write toOUTPUTinpo,potformats. this is the glow-up destination β¨-S/--timestampβ skip the conversion entirely if the output file already has a newer timestamp. she's efficient, she's not doing work twice π-r/--rootβ name of the XML root element (default:"root"). yes literally just the word root, she's not subtle.-v/--valueβ name of the XML value element (default:"str").-k/--keyβ name of the XML key attribute (default:"key"). love a naming convention that ate π₯-n/--namespaceβ XML namespace uri (default:None). as in, there isn't one unless you bring one π§
heads up bestie: the defaults are"root","str","key", andNoneβ if your XML doesn't match those, you're gonna have to tell her. she's not psychic (she's just very good at her job). π
and that's the whole page, fr fr. π
Translate Toolkit 3.19.5 β mwah, go localize something gorgeous, you main character ππβ¨
π¦ 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