Kuba M
Kuba M

Reputation: 139

CakePHP Locale not updating

I have an issue with locale cakephp translations. I had to update some texts, which are not showing up on my page. Previously added texts are being displayed correctly. I tried deleting all cache folders (models, views, persistent). I have also tried setting debug level to 3. Any ideas will be greatly appreciated.

Upvotes: 0

Views: 455

Answers (2)

tomwoods
tomwoods

Reputation: 1135

I finally found the answer in my case here:

http://www.quindev.com/blog/2010/01/cakephp-i18n-problem-of-updating-po-files-with-a-text-editor/

It turns out I had edited the translations with PoEditor, which created .mo files in addition to the .po files. It turns out CakePHP prefers the .mo files and ignores the .po files when present.

Just removing the .mo files from the translation folder fixed the issue.

Upvotes: 1

JohnWayne
JohnWayne

Reputation: 663

You have to delete files from

/tmp/persistant/
/tmp/models/
/tmp/views/

And in web browser press CTRL+F5 to refresh page

Upvotes: 0

Related Questions