php2po(1)
π 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 fromINPUTinhtml,phpformats. feed her the good stuff. π-x,--excludeβ exclude names matchingEXCLUDEfrom input paths. boundaries, slay. β¨-o,--outputβ write toOUTPUTinpo,potformats. put it somewhere cute. π-t,--templateβ read fromTEMPLATEinhtml,phpformats. 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
- opensuse-leap 16.0: python313-translate-toolkit 3.12.1-bp160.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms