Reputation: 35337
# head -n2 src/Locale/de/default.po
msgid "route_shop"
msgstr "shop"
In my controller, I just have exit(__('route_shop'));
but it is returning route_shop.
ini_get('intl.default_locale'); // returns de (as set in config/bootstrap.php)
'locales' => [APP . 'Locale' . DS] // paths setting in config/app.php
Apache/PHP have permissions to the default.po file. Can't really see anything else that would be wrong.
Does anyone have any suggestions?
Have tried different translations, locales, full locale name (de_DE for the folder name/intl.default_locale setting). No errors reported, nothing in debug.log
Upvotes: 2
Views: 1034
Reputation: 9398
I guess the problem is in the number of spaces between msgid
and the string.
I don't find any reference but it does not work if there are more than one white space
remove the extra space and remember clearing the cache
Upvotes: 3