Это часть моего файла src/Locale/en_US/default.po.
msgid "Acg_id"
msgstr "access control group identifier"
msgid "acg_id"
msgstr "access control group identifier"
msgid "Acg_Id"
msgstr "access control group identifier"
мой файл default.po слишком длинный. И я думаю, что так писать нельзя.
msgid "Acg_id"
msgid "acg_id"
msgid "Acg_Id"
msgstr "access control group identifier"
Как я могу реализовать функцию ниже в ядре cakephp
function __($token){
$translation = translation(strtolower($token));//translation returns translation of token if exists else returns null
return $translation ? $translation : $token;
}
Тогда мой файл default.po станет слишком коротким :) вот так
msgid "acg_id"
msgstr "access control group identifier"