oo2po(1)

πŸ’… oo2po(1) β€” the translate-toolkit glow-up page

okay so bestie, welcome to oo2po, a lil command from the Translate Toolkit (we're on version 3.19.5, icon era) that takes your OpenOffice.org localization file and turns it into Gettext PO localization files. it's giving ✨conversion✨, it's giving πŸ¦‹glow-upπŸ¦‹, and honestly? it eats.


πŸ“– NAME

oo2po β€” Convert an OpenOffice.org (SDF) localization file to Gettext PO localization files.

periodt. that's literally the whole job. πŸ’–


πŸš€ SYNOPSIS

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

copy it, paste it, slay it. no cap. πŸŽ€


🌸 DESCRIPTION

okay so fr fr, there's a whole wiki-worth of lore waiting for you here:

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

that link? it's got examples and usage instructions, and it's literally the main character of this section. go read it bestie, i'm not gatekeeping. πŸ‘‘


✨ OPTIONS ✨

  • --version β€” show program's version number and exit. (yes, the classic. bye.) πŸ‘‹
  • -h/--help β€” show this help message and exit. your emotional support flag. 🫢
  • --manpage β€” output a manpage based on the help. manpage-ception, lowkey iconic. πŸ“œ
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick your vibe. 🌈
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. choose how much you wanna know when things go sideways. 😭
  • -i/--input β€” read from INPUT in oo, sdf formats. this is where your file comes from, bestie. πŸ“₯
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not today, bestie. πŸ™ˆ
  • -o/--output β€” write to OUTPUT in po, pot formats. the after-glow-up destination. πŸ’…
  • -S/--timestamp β€” skip conversion if the output file has newer timestamp. if the output's fresher than the input, we don't touch it. respect the calendar. ⏰
  • -P/--pot β€” output PO Templates (.pot) rather than PO files (.po). templates girlies rise. πŸŽ€
  • -l/--language β€” set target language to extract from oo file (e.g. af-ZA). 🌍
  • --source-language β€” set source language code (default en-US). the og, the blueprint. ⭐
  • --nonrecursiveinput β€” don't treat the input oo as a recursive store. keep it shallow, keep it simple. 🧚
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt'). yes that's really the default, i'm not making it up. πŸ’€
  • --multifile β€” how to split po/pot files (single, toplevel or onefile). one file? many files? you decide, bestie. πŸ“

⚠️ quick vibe check: those defaults are defaults for a reason β€” --duplicates defaults to 'msgctxt', and --source-language defaults to en-US. don't come for me when they behave exactly like the docs said they would. πŸ”₯

πŸ’œ that's the whole page, bestie

proudly brought to you by Translate Toolkit 3.19.5 β€” the source of this whole page, and the version tag living in that footer. mwah. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from