sub2po(1)
πΈ sub2po(1) β the translate-toolkit glow-up for your subtitles
okay bestie, gather round π this is sub2po, part of the Translate Toolkit (we're on version 3.19.5, if you were wondering, and you were).
β¨ NAME β¨
sub2po β the way you turn subtitle files into Gettext PO localization files. literally that's the whole job and she does it flawlessly π
π SYNOPSIS π
mkay here's the shape of the whole thing, copied exactly so you can't mess it up:
sub2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[-P|--pot] [--duplicates DUPLICATESTYLE]
π¦ DESCRIPTION π¦
so basically, like, there's a whole page of examples and usage instructions waiting for you over here:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/sub2po.html
go look, fr fr, it's giving documentation π
π OPTIONS π
here's every single one, no gatekeeping, periodt:
--versionβ shows you the program's version number and then dips out. bye! π-h,--helpβ prints this help message and exits. the classic "hello, what is this" move π--manpageβ spits out a manpage based on the help. meta, iconic, we love her β--progressβ shows progress as one of:dots,none,bar,names,verbose. pick your vibe π₯--errorlevelβ shows errorlevel as one of:none,message,exception,traceback. how loud do you want the drama, bestie π-i,--inputβ reads from INPUT, and INPUT can be inass,srt,ssa,subformats π-x,--excludeβ excludes names matching EXCLUDE from the input paths. not today, thank you π-o,--outputβ writes to OUTPUT inpo,potformats β¨-t,--templateβ reads from TEMPLATE inass,srt,ssa,subformats. yes same formats, she's consistent πΈ-S,--timestampβ skips the conversion if the output file already has a newer timestamp. she knows when to mind her business π«Ά-P,--potβ outputs PO Templates (.pot) rather than PO files (.po). template girlies rise π--duplicatesβ what to do with duplicate strings (identical source text):merge,msgctxt(default:'msgctxt') π§
lowkey important: that--duplicatesdefault is'msgctxt', so if you don't say anything she's already picked for you π
okay that's the whole page, you're so welcome π this was sub2po from Translate Toolkit 3.19.5 β go convert something and slay β¨π
π¦ 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