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 from INPUT in xml format. this is where your files come in 🫢
  • -x/--exclude β€” exclude names matching EXCLUDE from the input paths. not today, bestie 🚫
  • -o/--output β€” write to OUTPUT in po, pot formats. 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", and None β€” 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