JavierGG I have two different languages in my Pawtucket. I have configured ui_locales and locale_default in app.conf in my theme. I have translated messages.po and compiled as messages.mo for both languages. I also have cloned the en_US.lang and edited to es_ES.lang and eo_EO.lang in app/lib/Parsers/TimeExpressionParsers. Messages work fine, but the dates remain in English format. Any changes in en_US.lang reflects immediately, so the program reads that file and no es_ES.lang or eo_EO.lang even if in the adress bar of the browser appears the language code after the object number, for instance: /index.php/Detail/objects/2336/lang/es_ES
darrigan Did you set like this? ui_locales = [en_US,es_ES,eo_EO] In setup.php, did you try to change it? if (!defined("__CA_DEFAULT_LOCALE__")) { define("__CA_DEFAULT_LOCALE__", "es_ES"); } May be a cache problem? Did you try to flush the /app/tmp directory?
JavierGG With this setup, the dates appear only in the language defined in the setup.php as CA_DEFAULT_LOCALE I can switch between the languages that appear in the ui_locales in app.conf of the theme. All messages, menus, etc show up without problem in every language, but not the dates. I can display the date in any of the languages by changing CA_DEFAULT_LOCALE but all dates appear only in in that language. I flushed the caches in /app/tmp directory and in the browser with every test.
JavierGG I have find a solution, but it's a little weird for me. I have put two languages in CA_DEFAULT_LOCALE in setup.php. ui_locales = [es_ES,eo_EO, en_US] if (!defined("__CA_DEFAULT_LOCALE__")) { define("__CA_DEFAULT_LOCALE__", "[es_ES, eo_EO"); }
JavierGG Sorry, I miss the "]" only in my message. The question is: Is it OK to put two values in the CA_DEFAULT_LOCALE variable? It works fine, if I change the setup.php file. I can switch from one locale to the other and dates show up in the corresponding language, BUT if I flush the browser cache the error message "Could not load language 'es_ES, eo_EO'" appears.
JavierGG Thanks, Darrigan and Seth. So, is there any way to have the dates in more than one locale format?