sub2po(1)
π sub2po(1) β the girlies' guide to turning subtitles into PO files π
okay so bestie, welcome to sub2po from the Translate Toolkit (vibes: 3.12.1 β¨), a li'l command that literally takes your subtitle files and turns them into Gettext PO localization files. it's giving pipeline, it's giving localization era, iykyk π¦
β¨ NAME β¨
sub2po β convert subtitle files into Gettext PO localization files. that's the whole job. she's focused, she's iconic, she does one thing and she ate π
πΈ SYNOPSIS πΈ
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]
like, look at her go. so many little flags, all of them important, no cap π₯
π¦ DESCRIPTION π¦
for examples and usage instructions, go peek at:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/sub2po.html
real talk: that link is the original's own pointer β it's where the examples live, so don't come for me if you want more deets, the manpage said see the docs and I'm just relaying the message π«Ά
π OPTIONS π
--versionβ shows the program's version number and dips. cute, quick, to the point β¨-h/--helpβ shows this help message and exits. your girl is here to help π--manpageβ outputs a manpage based on the help. meta? very. iconic? also very π--progressβ show progress as:dots,none,bar,names,verbose. pick your vibe, bestie π--errorlevelβ show errorlevel as:none,message,exception,traceback. how much drama do you want when things go sideways π-i/--inputβ read from INPUT inass,srt,ssa,subformats. all the subtitle girls are welcome here π-x/--excludeβ exclude names matching EXCLUDE from input paths. boundaries, we love to see them π-o/--outputβ write to OUTPUT inpo,potformats. this is where the magic lands β¨-t/--templateβ read from TEMPLATE inass,srt,ssa,subformats. a blueprint, a vision board, a slay π-S/--timestampβ skip conversion if the output file has a newer timestamp. if she's already fresher than the source, we simply don't touch her π-P/--potβ output PO Templates (.pot) rather than PO files (.po). template era πΈ--duplicatesβ what to do with duplicate strings (identical source text):merge,msgctxt(default:'msgctxt'). twins? we handle them π
β οΈ heads up bestie:--duplicatesdefaults to'msgctxt', so if you don't say anything, that's what you're getting. no surprises, no cap.
π sign-off π
that's the page!! go localize those subtitles, main character π« this whole thing is brought to you by Translate Toolkit 3.12.1, dated right there in the sub2po(1) header and footer of the original β mwah, periodt π«Άπ
π¦ 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