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 inhtml,phpformats. hand her the files, bestie π-x/--excludeβ exclude names matching EXCLUDE from input paths. not those ones. π-o/--outputβ write to OUTPUT inpo,potformats. the glow-up destination π-t/--templateβ read from TEMPLATE inhtml,phpformats. 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 ismsgctxt, 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 version3.19.5, datedphp2po(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
- 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