Sunday, January 3, 2016

Re: how to deploy i18n translations ?

In what language are the messages inside __('...') ?

On Tuesday, December 29, 2015 at 11:46:31 AM UTC+1, Alysson Azevedo wrote:
In my development environment the I18n works fine, i can set the locale with both ini_set('intl.default_locale', 'pt_BR') and I18n::locale('pt_BR').

But on my server nothing seems to work.
Permissions are fine, cakephp can read the src/Locale files and write cache files on tmp/cache/persistent.
In fact cakephp do write the translated cache file
$ cat tmp/cache/persistent/app_cake_core_translations_default_pt_br
1450793103
O:20:"Aura\Intl\Translator":4:{s:11:"*fallback";N;s:12:"*formatter";O:32:"Cake\I18n\Formatter\IcuFormatter":0:{}s:9:"*locale";s:5:"pt_br";s:11:"*messages";a:0:{}}

I my environment the *messages has all the translations while server none.

What else could be the problem? I don't know what else can i do.

Thanks.

Alysson Gonçalves de Azevedo

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: