po2ts(1)
β¨ NAME β¨
okay so bestie, meet po2ts β she's a little converter queen π and what she does is literally take your Gettext PO localization files and turn them into Qt Linguist (.ts) files. that's it, that's the job, and she eats every time π
πΈ SYNOPSIS πΈ
po2ts [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[-c|--context]
like, that's the whole glow-up routine right there. arguments in, .ts out, no notes π
π¦ DESCRIPTION π¦
okay so real talk β if you want the full lore, the examples, and the actual usage instructions, the manpage says go look here:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ts2po.html
that's the vibe. go read it, iykyk π
π OPTIONS π
--versionβ shows the program's version number and then dips out, exit stage left β¨-h/--helpβ shows this help message and then also dips out. iconic behaviour, no notes π«Ά--manpageβ spits out a manpage based on the help. very meta of her π--progressβ lets you pick how the progress looks. your options are:dots,none,bar,names,verbose. pick your aesthetic bestie π--errorlevelβ controls how much drama you get when things go wrong. choices are:none,message,exception,traceback. for the record,tracebackis the full main-character meltdown π-i/--inputβ this is where you read from, and INPUT should be inpo,potformats π-x/--excludeβ yeets any names matching EXCLUDE out of the input paths. not me, not today π-o/--outputβ where the finished product goes. you write to OUTPUT intsformat π-t/--templateβ reads from TEMPLATE intsformat. yes you can start from a template, she contains multitudes β-S/--timestampβ if the output file already has a newer timestamp, she just skips the whole conversion. no point redoing work that's already slayed π₯-c/--contextβ uses the context you supply instead of the one sitting in the.pofile comment π
β οΈ quick vibe check: -S/--timestamp means your conversion gets skipped entirely if the output is newer β so if you're confused why nothing happened, that's your girl, not a bug.
and that's the whole thing, bestie β po2ts from the Translate Toolkit 3.19.5 era, converting PO β TS like the absolute legend she is. go forth and localize πβ¨ππ¦πΈ
π¦ 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