cakephp / localized

I18n and L10n related CakePHP code
Other
213 stars 179 forks source link

I18N not working #124

Closed soelen closed 8 years ago

soelen commented 8 years ago

hello, I am sure I am having an issue somewhere, yet I am not able to find it.

https://gist.github.com/Soelen/63fdae258a01776358d936b986f9f50d

I hope I didnt accidentally found an issue with the localized feature!

elboletaire commented 8 years ago

The intl locale for spanish is es_ES. Here's my configuration, which is slightly different from yours, but it works without a problem.

Basically, I've my files located under Locale/es_ES/ and I've this on my bootstrap file:

// in bootstrap.php
ini_set('intl.default_locale', 'es_ES');

I'm using CakePHP 3.2.8 but have not updated the app file, so I don't have the 'defaultLocale' => env('APP_DEFAULT_LOCALE', 'es'), but it's still working.

visonforcoding commented 8 years ago

put your cake.po in src/Locale/{your local}/ ,then change config defaultLocale to your locale

cake17 commented 8 years ago

@Soelen ping, did the answers solve your problem ?

dereuromark commented 8 years ago

Closing as stale.