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, traceback is the full main-character meltdown 😭
  • -i/--input β€” this is where you read from, and INPUT should be in po, pot formats πŸ“
  • -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 in ts format πŸ’–
  • -t/--template β€” reads from TEMPLATE in ts format. 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 .po file 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