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 inoo,sdfformats. 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 inpo,potformats. 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 (defaulten-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,topleveloronefile). one file? many files? you decide, bestie. π
β οΈ quick vibe check: those defaults are defaults for a reason β--duplicatesdefaults to'msgctxt', and--source-languagedefaults toen-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
- ubuntu stonking: translate-toolkit 3.19.5-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms