po2flatxml(1)

πŸ“¦ version 3.12.1, in opensuse-leap 16.0

πŸ¦‹ 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 in po, pot formats. 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 in xml format. the glow-up destination πŸ“€
  • -t/--template β€” read from TEMPLATE in xml format. 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, 0 for 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, and 2. 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