Thursday, November 4, 2010

Weird problem with languages

Hi,

I have a weird problem with L10n.

I've just created the .po files, tested in the development machine and all works fine.

When uploaded to production the localization doesn't work unless I change language codes to the two character code (i.e.: Configure::write('language', 'es') ). But if I change this, i18n stops to work as intended with existing content (Translate behavior uses this code to find translations, and they was saved in DB with the "es-es" format).

How to set the default language so both i18n and l10n work as expected? Could it be a server configuration issue?

(Weird solution: change i18n table locale codes to the two digit format, but i think there should be a better way).

---
Fran Iglesias <cakephpilia@gmail.com>
http://cakephpilia.blogspot.com

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: