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, in po, pot formats. 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 in html, php formats. the glow-up destination πŸ¦‹
  • -t/--template β€” read from TEMPLATE in html, php formats. 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: --fuzzy and --nofuzzy are literally opposites and --nofuzzy is 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