oo2xliff(1)

πŸ’– oo2xliff β€” bestie edition πŸ’–

ok so like, oo2xliff is a Translate Toolkit command (we're on version 3.19.5 btw, iconic) and what it does is convert an OpenOffice.org (SDF) localization file into XLIFF localization files. no cap. it's giving translator-girlboss. πŸ’…


✨ SYNOPSIS ✨

oo2xliff [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-S|--timestamp] [-l|--language LANG] [--source-
language LANG] [--nonrecursiveinput] [--duplicates DUPLICATESTYLE]
[--multifile MULTIFILESTYLE]

like… that's the whole vibe. one command, a million little flags, and every single one of them matters bestie, don't skip any of them 🧚


🌸 DESCRIPTION 🌸

okay so the docs said, and I quote: go look at

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

for examples and usage instructions. that's where the receipts live, bestie β€” examples AND usage instructions, both of them, at that exact URL. 🫢


πŸŽ€ OPTIONS πŸŽ€

here's the full lineup, no skips, no summaries, we stan completeness:

  • --version β€” show the program's version number and then exit. bye bestie πŸ‘‹
  • -h/--help β€” show this help message and then exit. the classic.
  • --manpage β€” outputs a manpage based on the help. meta af. πŸ’€
  • --progress β€” shows progress as one of: dots, none, bar, names, verbose. pick your aesthetic ✨
  • --errorlevel β€” shows errorlevel as one of: none, message, exception, traceback. more words = more 🫣
  • -i/--input β€” read from INPUT in oo, sdf formats
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not in my house πŸ™ˆ
  • -o/--output β€” write to OUTPUT in xlf, xliff formats
  • -S/--timestamp β€” skip conversion if the output file has a newer timestamp. skip it, she's already up to date πŸ’…
  • -l/--language β€” set target language to extract from the oo file (e.g. af-ZA) πŸ‘‘
  • --source-language β€” set source language code (default en-US)
  • --nonrecursiveinput β€” don't treat the input oo as a recursive store
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt')
  • --multifile β€” how to split po/pot files (single, toplevel or onefile)
side note bestie: --duplicates defaults to 'msgctxt', and that default is literally quoted like that in the OG manpage. keep it exact, she's sensitive. also --multifile gives you three choices and yes, onefile is two words, don't fight it. 😭

πŸ’œ that's the whole thing, slay

every flag, every value, every default, preserved. periodt. βœ¨πŸ¦‹

shoutout to the Translate Toolkit, version 3.19.5 β€” she wrote this manpage, she's the main character, and this page is dated right there with her alongside oo2xliff(1). mwah, tysm for reading, ily, go translate something gorgeous πŸ’–πŸŒˆβ­

πŸ“¦ where this page comes from