Search code examples
translationcakephp-3.0po

Is it possible to write shorthand in cakephp 3 translation files?


My src\Locale\pr_IR file is like

msgid "Mobile"
msgstr "موبایل"

msgid "mobile"
msgstr "موبایل"

msgid "MoBiLe"
msgstr "موبایل"

Is it possible to convert this to something like

msgid "Mobile"
msgid "mobile"
msgid "MoBiLe"
msgstr "موبایل"

Solution

  • No it's not, at least not without creating your own PO file parser that would handle such an invalid/non-standard PO format.

    See also