po2sub(1)

πŸ“¦ version 3.12.1, in opensuse-leap 16.0

✨ 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 in po, pot formats. 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 in ass, srt, ssa, sub formats. four formats, one legend πŸŽ€
  • -t/--template β€” read from TEMPLATE in ass, srt, ssa, sub formats. 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: --fuzzy and --nofuzzy are opposites, and --nofuzzy is 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