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 in po, pot formats πŸ“₯
  • -x/--exclude β€” exclude names matching EXCLUDE from the input paths. bye felicia πŸ‘‹
  • -o/--output β€” write to OUTPUT in xml format πŸ“€
  • -t/--template β€” read from TEMPLATE in xml format πŸŽ€
  • -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, and 0 means 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 -w flags 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