po2sub(1)
β¨ po2sub(1) β the girlies' guide to converting PO files into subtitles β¨
okay so bestie, welcome to po2sub π
this is the po2sub(1) manual page, part of Translate Toolkit 3.12.1, and it's literally the tool that takes your Gettext PO localization files and turns them into subtitle files. yes. subtitles. for film and tv. we love a crossover episode π¬β¨
πΈ NAME πΈ
po2sub β convert Gettext PO localization files to subtitle files π«Ά
Like, that's the whole vibe. PO in, subs out. no cap.
π¦ SYNOPSIS π¦
po2sub [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[--threshold PERCENT] [--fuzzy] [--nofuzzy]
copy that exactly, okay? character for character. the terminal is not a vibe-check-optional zone π
π DESCRIPTION π
So the manpage itself lowkey just points you elsewhere β and honestly, that's main character energy. It says:
See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/sub2po.html for examples and usage instructions.
yep, that's the sub2po page, not po2sub β that's what the original says, and I'm not about to gaslight you and pretend otherwise π go read it, the examples are iconic. β
π OPTIONS π
okay this is the part you actually came for. every single flag, no skips, no "you'll figure it out" energy. let's go π₯
--versionβ show program's version number and exit. one line, in and out, like a queen π-h/--helpβ show this help message and exit. the classic. the icon. always there for you π«Ά--manpageβ output a manpage based on the help. yes it prints a manpage. meta? maybe. slay? absolutely π--progressβ show progress as:dots,none,bar,names,verbose. pick your aesthetic, bestie β¨--errorlevelβ show errorlevel as:none,message,exception,traceback. how much do you want to know when things go sideways? your call π-i/--inputβ read from INPUT inpo,potformats. this is the source material, the origin story π±-x/--excludeβ exclude names matching EXCLUDE from input paths. not me filtering out the files I don't want π-o/--outputβ write to OUTPUT inass,srt,ssa,subformats. four formats, one legend π-t/--templateβ read from TEMPLATE inass,srt,ssa,subformats. same four formats, now on the read side π¦-S/--timestampβ skip conversion if the output file has newer timestamp. it checks the vibes (and the mtime) before doing work π efficient queen behavior--thresholdβ only convert files where the translation completion is above PERCENT. like a bouncer at the club, but for half-finished translations πͺβ¨--fuzzyβ use translations marked fuzzy. yes, the fuzzy ones. bring them in, they're trying their best π₯Ί--nofuzzyβ don't use translations marked fuzzy (default). this is the default, so if you don't say anything, fuzzy gets left outside. sorry bestie π
quick vibe check:--fuzzyand--nofuzzyare opposites, and--nofuzzyis the one that's on unless you say otherwise. don't let anyone tell you different π
π that's the whole page, bestie π
every option, every format (po, pot on the way in β ass, srt, ssa, sub on the way out), every default, every word. no details were harmed in the making of this rewrite π
this has been po2sub(1) from Translate Toolkit 3.12.1 β mwah, go convert some subtitles, you're gonna eat ππ
π¦ where this page comes from
- opensuse-leap 16.0: python313-translate-toolkit 3.12.1-bp160.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms