txt2po(1)

πŸ“¦ version 3.12.1, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

Okay bestie, meet txt2po(1) from the Translate Toolkit 3.12.1 era β€” she converts plain text (.txt) files into Gettext PO localization files. It’s giving β€œglow-up for your plain text,” fr fr. πŸ’…βœ¨

🌈 SYNOPSIS 🌈

txt2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-S|--timestamp] [-P|--pot] [--encoding] [--flavour
FLAVOUR] [--no-segmentation] [--duplicates DUPLICATESTYLE]

πŸ¦‹ DESCRIPTION πŸ¦‹

The manpage literally says: see http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/txt2po.html for examples and usage instructions. That’s the whole description vibe β€” no extra lore, no cap. 🫢

✨ OPTIONS ✨

  • --version β€” show the program’s version number and exit. Iconic little exit, ngl. πŸ‘‘
  • -h/--help β€” show this help message and exit. Your built-in bestie when you’re lost. πŸŽ€
  • --manpage β€” output a manpage based on the help. Yes, she can generate her own manual-page energy. ✨
  • --progress β€” show progress as: dots, none, bar, names, verbose. Pick your progress aesthetic, bestie. 🌈
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. Choose how much error drama you can handle. πŸ’€
  • -i/--input β€” read from INPUT in *, txt formats. That’s the source-text main character. πŸ“₯
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. Not me filtering out the irrelevant files. πŸ™ˆ
  • -o/--output β€” write to OUTPUT in po, pot formats. This is where the translated magic lands. πŸ’–
  • -S/--timestamp β€” skip conversion if the output file has newer timestamp. Lowkey the β€œif it’s already fresher, leave it alone” option. ⭐
  • -P/--pot β€” output PO Templates (.pot) rather than PO files (.po). Templates girlies, rise. 🧚
  • --encoding β€” the encoding of the input file (default: UTF-8). Keep those characters from having a whole crisis. 🌸
  • --flavour β€” the flavour of text file: plain (default), dokuwiki, mediawiki. Choose your text-file cuisine. πŸ“
  • --no-segmentation β€” don’t segment the file, treat it like a single message. One big text blob, one big vibe. πŸ¦‹
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt'). Duplicate drama, handled. πŸ’…

That’s the txt2po(1) page, brought to you by Translate Toolkit 3.12.1 β€” footer date tea was not listed, so I’m not inventing any, bestie. πŸ’œβœ¨

πŸ“¦ where this page comes from