po2txt(1)

✨ po2txt(1) β€” the glow-up page ✨

okay bestie, listen up πŸ’– this is po2txt, one of the little legends from the Translate Toolkit crew (we're on 3.19.5 today, keep up 🫢).


🌸 NAME 🌸

po2txt β€” she takes Gettext PO localization files and turns them into plain text (.txt) files. translation go in, boring-but-beautiful text come out. slay. πŸ’…


πŸŽ€ 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] [--flavour FLAVOUR] [--no-segmentation]
[--threshold PERCENT] [--fuzzy] [--nofuzzy]

look at her. little command, big main character energy. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

want the ✨lore✨? want examples and actual usage instructions so you're not just guessing like it's a group chat?

See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/txt2po.html for examples and usage instructions.

that's the assignment. go read it, it's giving homework but make it cute πŸ“šβœ¨


πŸ’œ OPTIONS πŸ’œ

every single one, no gatekeeping, periodt:

  • --version β€” show the program's version number and then dip (exit).
  • -h/--help β€” show this help message and exit. the classic. iconic. never not useful.
  • --manpage β€” spit out a whole manpage based on the help. meta, lowkey.
  • --progress β€” show progress as one of: dots, none, bar, names, verbose. pick your vibe for the lil loading moment 🌈
  • --errorlevel β€” show errorlevel as one of: none, message, exception, traceback. choose how much you wanna hear about problems, fr fr 😭
  • -i/--input β€” read from INPUT in po, pot, xlf, xliff formats. that's the source material bestie.
  • -x/--exclude β€” exclude names matching EXCLUDE from the input paths. not today, satan πŸ’€
  • -o/--output β€” write to OUTPUT in txt format. the glow-up destination ✨
  • -t/--template β€” read from TEMPLATE in txt format. the blueprint, the inspo πŸŽ€
  • -S/--timestamp β€” skip conversion if the output file has a newer timestamp. she's efficient, she's not doing unnecessary work πŸ’…
  • --encoding β€” the encoding of the template file (default: UTF-8). UTF-8 girlies, we stay winning 🫢
  • -w/--wrap β€” set the number of columns to wrap text at. aesthetics matter!! 🌸
  • --flavour β€” the flavour of the text file: plain (default), dokuwiki, mediawiki. yes she said flavour, taste it πŸ‘‘
  • --no-segmentation β€” don't segment the file, treat it like a single message. one big paragraph, one big mood πŸ’–
  • --threshold β€” only convert files where the translation completion is above PERCENT. no incomplete energy in this house 🚫
  • --fuzzy β€” use translations marked fuzzy. risky but cute πŸ™ˆ
  • --nofuzzy β€” don't use translations marked fuzzy. this is actually the default, so she's the sensible queen here πŸ‘‘
⚠️ heads up bestie: --fuzzy and --nofuzzy are opposites and --nofuzzy is what you get if you say nothing. so like, know which one you want before you commit, okay? no cap.

🌟 SEE ALSO 🌟

ngl there isn't a SEE ALSO section in this page β€” but the DESCRIPTION literally points you to http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/txt2po.html for examples and usage, so that's your reading list. iykyk πŸ“–βœ¨


and that's the whole page, bestie πŸ₯°

this little masterpiece lives in Translate Toolkit 3.19.5 β€” shoutout to the entire Translate Toolkit era, mwah πŸ’‹ now go convert some files and be the main character of your terminal. bye slay πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from