po2txt(1)

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

πŸ’… po2txt(1) β€” the glow-up from PO to plain text ✨

okay bestie, gather round 🫢 this is po2txt, a little icon from the Translate Toolkit 3.12.1 era, and her whole job is turning Gettext PO localization files into plain text (.txt) files. that's it, that's the gig, and she ATE. πŸŽ€


✨ NAME ✨

po2txt β€” converts Gettext PO localization files into plain text (.txt) files. lowkey the most straightforward queen in the toolkit πŸ‘‘


🌸 SYNOPSIS 🌸

po2txt [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[--encoding] [-w|--wrap WRAP] [--threshold PERCENT] [--fuzzy]
[--nofuzzy]

like, that's a lot of flags but she's worth it, i promise πŸ˜­πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so if you want examples and actual usage instructions, the docs are serving here:

http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/txt2po.html

(and yes, the link says txt2po β€” that's literally what it says up there, i'm just the messenger 🫑)


πŸŽ€ OPTIONS πŸŽ€

here's the full lineup, no skips, no cuts, we respect every single flag in this house πŸ’…

  • --version β€” shows the program's version number and dips out. main character exit. πŸ‘‹
  • -h/--help β€” shows this help message and exit. the classic "what does anything do" button, we've all been there πŸ™ˆ
  • --manpage β€” outputs a manpage based on the help. manpage-ception, iconic πŸ’€
  • --progress β€” shows progress as: dots, none, bar, names, verbose. pick your vibe check for how much you wanna watch it work ✨
  • --errorlevel β€” shows errorlevel as: none, message, exception, traceback. how spicy do you want the error tea πŸ“
  • -i/--input β€” reads from INPUT in po, pot, xlf, xliff formats. four formats, one slay 🌈
  • -x/--exclude β€” excludes names matching EXCLUDE from input paths. boundaries, bestie, we love them 🚫
  • -o/--output β€” writes to OUTPUT in txt format. the whole point of the party πŸŽ‰
  • -t/--template β€” reads from TEMPLATE in txt format. the blueprint era 🧚
  • -S/--timestamp β€” skips conversion if the output file has a newer timestamp. she's efficient, she's not doing work twice πŸ’…
  • --encoding β€” the encoding of the template file (default: UTF-8). note: this one has no argument shown in the synopsis β€” just how it is, no cap πŸ‘‘
  • -w/--wrap β€” sets number of columns to wrap text at. cozy line lengths only 🌸
  • --threshold β€” only converts files where the translation completion is above PERCENT. picky and i respect it πŸ”₯
  • --fuzzy β€” uses translations marked fuzzy. ride or die with the unsure ones 🫢
  • --nofuzzy β€” doesn't use translations marked fuzzy (default). strict queen behavior, and honestly fair ⭐
ngl bestie, --fuzzy and --nofuzzy are literally opposites and --nofuzzy is the default β€” so if you want the fuzzy ones, you gotta say it out loud πŸ’–

🌟 SEE ALSO 🌟

so the only cross-reference in this whole page is that txt2po docs URL up in DESCRIPTION β€” go read it, it's giving "the actual instructions" energy 😌


okay that's the whole page, hope it slayed for you πŸ’œ this adorable little manual is from Translate Toolkit 3.12.1 and it's dated po2txt(1) β€” signed, sealed, delivered, and absolutely iconic πŸ¦‹βœ¨πŸŽ€

πŸ“¦ where this page comes from