po2flatxml(1)
π po2flatxml β the girlies are converting PO files to flat XML π
okay so bestie, welcome to po2flatxml from the Translate Toolkit fam. It's a little command that takes your Gettext PO localization files and turns them into flat XML files. That's it, that's the whole vibe. π¦
β¨ NAME β¨
po2flatxml β Convert Gettext PO localization files to flat XML files.
periodt. that's literally the whole job description. π
πΈ SYNOPSIS πΈ
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]
like, that's a LOT of flags bestie, but every single one of them is serving a purpose I promise π
π DESCRIPTION π
There's a whole page of examples and usage instructions waiting for you right here:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/flatxml2po.html
go read it, it's giving tutorial energy β¨
π OPTIONS π
--versionβ shows the program's version number and then dips out π«Ά-h/--helpβ shows this help message and then dips out. iconic behaviour honestly π--manpageβ spits out a manpage built from the help output. manpage inception fr fr π--progressβ how do you want your progress shown? your choices are:dots,none,bar,names,verbose. pick your aesthetic β¨--errorlevelβ how dramatic should the errors be? options are:none,message,exception,traceback. choose your chaos level π-i/--inputβ read from INPUT inpo,potformats π₯-x/--excludeβ exclude names matching EXCLUDE from the input paths. bye felicia π-o/--outputβ write to OUTPUT inxmlformat π€-t/--templateβ read from TEMPLATE inxmlformat π-S/--timestampβ skip the conversion entirely if the output file already has a newer timestamp. it's like "already knew that, no notes" π-r/--rootβ the name of the XML root element (default:"root"). it's the main character of your XML tree π-v/--valueβ the name of the XML value element (default:"str") π-k/--keyβ the name of the XML key attribute (default:"key") π-n/--namespaceβ the XML namespace uri (default:None). ngl she's optional, she's mysterious π¦-w/--indentβ indent width in spaces, and0means no indent at all (default:2). space it out or don't, we're not judging πΈ
quick lil reminder bestie: the-r,-v,-k,-n, and-wflags are all about shaping that flat XML output exactly how you want it. defaults exist so you don't have to think about it, but the moment you want control, she's there π«Ά
π SEE YA π
this whole page came to you courtesy of Translate Toolkit 3.19.5 β version 3.19.5, dated the same, because that's just how they do the footer around here π
stay slay, go convert something, and remember: your PO files could never be flat XML on their own. that's what I'M here for πβ¨π
π¦ 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