xliff2po(1)

πŸ’– xliff2po(1) πŸ’–

okay bestie, welcome to xliff2po β€” the little command that takes your XLIFF localization files and turns them into Gettext PO localization files. it's a glow-up pipeline and you're the main character. 🌸


✨ NAME ✨

xliff2po β€” Convert XLIFF localization files to Gettext PO localization files.

no cap, that's literally the whole job description. πŸ’…


✨ SYNOPSIS ✨

xliff2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-S|--timestamp] [-P|--pot] [--duplicates
DUPLICATESTYLE]

like… look at her. so many flags. she's giving versatile. πŸŽ€


✨ DESCRIPTION ✨

fr fr, the real tea (examples + usage instructions) lives over here:

http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/xliff2po.html

go read it, bestie, it ate. πŸ’–


✨ OPTIONS ✨

one bullet per flag, no skipping, we respect the whole menu. 🫢

  • --version β€” show the program's version number, then dip out (exit).
  • -h/--help β€” show this help message, then dip out (exit). self-explanatory queen. πŸ‘‘
  • --manpage β€” output a manpage based on the help. yes, a manpage for the manpage tool. iconic recursion behavior. 🌈
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick your vibe check. ⭐
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. how much drama do you want when things go wrong? 😭
  • -i/--input β€” read from INPUT in xlf, xliff formats. πŸ“₯
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not me, not today. πŸ™ˆ
  • -o/--output β€” write to OUTPUT in po, pot formats. πŸ“€
  • -S/--timestamp β€” skip conversion if the output file has newer timestamp. lowkey the "if it ain't broke" flag. πŸ¦‹
  • -P/--pot β€” output PO Templates (.pot) rather than PO files (.po). template era. ✨
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt'). so yes, msgctxt is the default, periodt. πŸ’…

🌸 SEE ALSO / RESOURCES 🌸

okay so the manpage itself only points you at one thing, and it's this:


heads up bestie: -S/--timestamp literally means a file gets skipped when the output is newer β€” so if you're confused why nothing changed, that's your culprit. and remember the --duplicates default is 'msgctxt' unless you say otherwise. πŸŽ€

and that's the whole page, bestie β€” brought to you by Translate Toolkit 3.19.5 (that's the version in the footer, mwah πŸ’‹). go convert something gorgeous. πŸ§šπŸ’œ

πŸ“¦ where this page comes from