po2txt(1)
π 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 inpo,pot,xlf,xliffformats. four formats, one slay π-x/--excludeβ excludes names matching EXCLUDE from input paths. boundaries, bestie, we love them π«-o/--outputβ writes to OUTPUT intxtformat. the whole point of the party π-t/--templateβ reads from TEMPLATE intxtformat. 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,--fuzzyand--nofuzzyare literally opposites and--nofuzzyis 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
- opensuse-leap 16.0: python313-translate-toolkit 3.12.1-bp160.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms