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 in ts format 🌸
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths, get them outta here πŸ™ˆ
  • -o/--output β€” write to OUTPUT in po, pot formats
  • -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 --duplicates default β€” 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