ts2po(1)
β¨ NAME β¨
okay so bestie, gather round π this is ts2po β and what she does is convert Qt Linguist (.ts) files to Gettext PO localization files. that's it, that's the whole job, and she does it flawlessly no cap π
πΈ SYNOPSIS πΈ
ts2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-S|--timestamp] [-P|--pot] [--duplicates
DUPLICATESTYLE]
π¦ DESCRIPTION π¦
so like, there's a whole page of examples and usage instructions waiting for you at http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ts2po.html β go read it, it's giving documentation main character energy π«Ά
π OPTIONS π
--versionβ show the program's version number and then dip βοΈ-h/--helpβ show this help message and exit, the classic "idk what's happening" move π--manpageβ output a manpage based on the help (yes, truly inception-coded, a manpage about making manpages π)--progressβ show progress as one of:dots,none,bar,names,verboseβ¨--errorlevelβ show errorlevel as one of:none,message,exception,traceback-i/--inputβ read from INPUT intsformat πΈ-x/--excludeβ exclude names matching EXCLUDE from input paths, get them outta here π-o/--outputβ write to OUTPUT inpo,potformats-S/--timestampβ skip conversion if the output file has a newer timestamp, she said "been there, done that" π-P/--potβ output PO Templates (.pot) rather than PO files (.po)--duplicatesβ what to do with duplicate strings (identical source text):merge,msgctxt(default:'msgctxt') π
lowkey important: peep that--duplicatesdefault β it's'msgctxt', so if you do nothing, that's the vibe you're getting. no surprises, bestie π
and that's the whole page, fr fr π this was Translate Toolkit 3.19.5 doing her little ts2po(1) moment, periodt β¨ go convert some files, you're gonna 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