internationalizationcakephp-4.x

CakePhp 4: I configured I18n internationalization but the site is still in english


Good night's community,

I trying to use localization tools of cakephp 4 without success.

First, I have my pot and mo files in cake_root/resources/locales/es_AR. enter image description here

In my app.php file I have: enter image description here

Finally, in my AppController I have... enter image description here

Everything looks OK but site is still in english. Can you help me to find my error?

Thanks,

EDIT I have no idea what's going on. I checked my default.po file (under my locale/es_AR folder) and it looks OK. enter image description here

But mi app is showing messages in english. enter image description here

Does anyone have a lead to follow?

EDIT 2 I'm grapping string in __() as you say @Greg Schmidt. enter image description here


Solution

  • Well, in the end it worked. It was a cache problem. Manually deleting the /tmp/cache folder fixed the problem.