php2po(1)

πŸ“¦ version 3.12.1, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay so bestie, meet php2po(1) β€” the icon whose whole job is to Convert PHP localization files to Gettext PO localization files. That's the name-section tea, no cap. ✨

✨ SYNOPSIS ✨

php2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[-P|--pot] [--duplicates DUPLICATESTYLE]

🌸 DESCRIPTION 🌸

For examples and usage instructions, see: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/php2po.html β€” that link is literally the place for examples and usage instructions, iykyk. πŸ¦‹

πŸ’… OPTIONS πŸ’…

  • --version β€” show the program's version number and exit. cute and efficient. πŸ‘‘
  • -h, --help β€” show this help message and exit. bestie behavior, honestly. 🫢
  • --manpage β€” output a manpage based on the help. yes, manpage-ception. πŸ’€
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick your vibe. 🌈
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. choose your drama level. 😭
  • -i, --input β€” read from INPUT in html, php formats. feed her the good stuff. πŸ’–
  • -x, --exclude β€” exclude names matching EXCLUDE from input paths. boundaries, slay. ✨
  • -o, --output β€” write to OUTPUT in po, pot formats. put it somewhere cute. πŸŽ€
  • -t, --template β€” read from TEMPLATE in html, php formats. template moment. 🌸
  • -S, --timestamp β€” skip conversion if the output file has newer timestamp. she checks timestamps first, as she should. ⭐
  • -P, --pot β€” output PO Templates (.pot) rather than PO files (.po). template era. 🧚
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt'). default is giving 'msgctxt', periodt. πŸ’…

Signed off with Translate Toolkit 3.12.1 energy β€” and the footer didn’t give us a date, so we’re keeping it timeless and mysterious. πŸ’–βœ¨

πŸ“¦ where this page comes from