php2po(1)

πŸ’– php2po β€” the manual, but make it cute πŸ’–

okay so bestie, welcome to php2po from the Translate Toolkit (that's version 3.19.5, write it down πŸŽ€). she's a little command-line icon who converts PHP localization files into Gettext PO localization files. that's it. that's the whole job. and she does it flawlessly, no cap. πŸ’…


✨ NAME ✨

php2po β€” convert PHP localization files to Gettext PO localization files. yes literally that's what the name means, she's not mysterious, she's an open book 🫢


✨ 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]

look at her go. so many little flags and every single one of them is valid and important. 🌸


✨ DESCRIPTION ✨

See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/php2po.html for examples and usage instructions.

that link has the examples and the usage instructions, so if you want the full tour, go click it. i'm just here for the vibes and the flags. πŸ’–

✨ OPTIONS ✨

  • --version β€” show the program's version number and exit. quick little flex, then she's out. πŸ‘‘
  • -h/--help β€” show this help message and exit. your girl explains herself. 🌈
  • --manpage β€” output a manpage based on the help. meta? lowkey iconic. πŸ“œ
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick your fave aesthetic for watching it work ✨
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. how much chaos do you want to see when things go wrong πŸ’€
  • -i/--input β€” read from INPUT in html, php formats. hand her the files, bestie πŸ“‚
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not those ones. πŸ™ˆ
  • -o/--output β€” write to OUTPUT in po, pot formats. the glow-up destination πŸ’…
  • -t/--template β€” read from TEMPLATE in html, php formats. a lil reference sheet to compare against πŸŽ€
  • -S/--timestamp β€” skip conversion if the output file has newer timestamp. if it's already fresher than you, she's not redoing the work, periodt ⏰
  • -P/--pot β€” output PO Templates (.pot) rather than PO files (.po). template era, not translation era πŸ¦‹
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt'). so like, if two strings are literally the same source text, decide how to handle them. the default is msgctxt, remember that 🌟

and that's the whole page, no skipped sections, no missing flags, every value and default intact because i would never do you dirty like that 🫢

tiny honest note from your girl: this whole thing is from the Translate Toolkit version 3.19.5, dated php2po(1) β€” the manpage source and version, respectfully and affectionately mentioned, as promised. πŸ’œ

stay slaying with your localization pipeline, bestie. mwah. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from