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 inpo,pot,xlf,xliffformats. that's the source material bestie.-x/--excludeβ exclude names matching EXCLUDE from the input paths. not today, satan π-o/--outputβ write to OUTPUT intxtformat. the glow-up destination β¨-t/--templateβ read from TEMPLATE intxtformat. 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 thedefault, so she's the sensible queen here π
β οΈ heads up bestie:--fuzzyand--nofuzzyare opposites and--nofuzzyis 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
- ubuntu stonking: translate-toolkit 3.19.5-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms