po2php(1)
π po2php β the manual page, but make it a group chat π
okay bestie, pull up a chair, we're doing po2php from the Translate Toolkit, version 3.19.5, section 1 of the manual. she converts Gettext PO localization files into PHP localization files and she does it flawlessly. no cap. π
β¨ NAME β¨
po2php β convert Gettext PO localization files to PHP localization files. that's it, that's the whole job description, and she eats every time π
πΈ SYNOPSIS πΈ
po2php [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[--threshold PERCENT] [--fuzzy] [--nofuzzy]
look at that lineup. seventeen-ish little flags all holding hands. iconic behavior honestly π«Ά
π¦ DESCRIPTION π¦
fr fr, the docs live over here and they have examples and usage instructions and everything:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/php2po.html
like. go read them. i'll wait. π
π OPTIONS π
--versionβ shows the program's version number and then dips. bye bestie π-h/--helpβ prints this help message and exits. the classic. the main character. π--manpageβ spits out a manpage built from the help text. meta much?--progressβ how to show progress, and your choices are:dots,none,bar,names,verbose. pick your vibe π--errorlevelβ how to show errors, choices are:none,message,exception,traceback. choose your level of drama π-i/--inputβ read from INPUT, inpo,potformats. the source material, the moment, the muse β¨-x/--excludeβ exclude names matching EXCLUDE from the input paths. not you, girly π-o/--outputβ write to OUTPUT inhtml,phpformats. the glow-up destination π¦-t/--templateβ read from TEMPLATE inhtml,phpformats. a little blueprint, a little mood board π-S/--timestampβ skip the conversion if the output file already has a newer timestamp. she said "been there, done that, moving on" βοΈ--thresholdβ only convert files where translation completion is above PERCENT. no half-finished energy allowed π«--fuzzyβ use translations marked fuzzy. she's a little blurry but she's trying π₯Ί--nofuzzyβ don't use translations marked fuzzy. this is the default, so if you don't say anything, fuzzy stays out. boundaries! π§
π heads up bestie:--fuzzyand--nofuzzyare literally opposites and--nofuzzyis the one that's on by default. don't come for me when the fuzzy strings don't show up.
π a lil sign-off π
that's the whole page, and it came to you courtesy of Translate Toolkit 3.19.5 β same energy at the top of the page and the bottom of the page, because symmetry is everything. now go convert some localization files, you absolute legend. periodt. π β¨ππ¦π
π¦ 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