Mathieu Roy wrote:

Le Mardi 26 Septembre 2006 10:45, Sergi Domènech a écrit :
No, catalan is catalan and spanish is spanish. They are two different
languages.
But this is the only way we found to see the content translated in catalan.
We tried "ca" => "ca_ES.UTF-8" but we couldn't see the translation.
Maybe we miss something or there is some configuration wrong at some point.
Can you suggest the right way to solve it?

Is you web browser configured to ask for ca_ES ? If not, you must add in the languages prefs ca_ES.
No, my browser (firefox) for catalan uses "ca" and this is sent in the http header. This is preconfigured and it seems not unchangeable.

If we set ca => "ES.UTF-8", it will means that people asking for spanish will get catalan. I'm not sure whether it is acceptable.
Of course, this is not acceptable, but this is not true.
We have test it with this configuration:
                           "ca"        => "ES.UTF-8",
                           "es"        => "ES.UTF-8",
and if you choose catalan you get catalan and if you choose spanish you get spanish. In fact, as I can understand,the way you define languages in "frontend/php/include/i18n.php" is concatenating "ca" with "ES.UTF-8" (we have activated debug in line 86 print "[".$locale.",".setlocale(LC_ALL,0)."]"; //debug)

We tryed
   "ca" =>  "ca_ES.UTF-8",
then the result is ca_ca_ES.UTF-8 and this not exists and fail.
It seems that it will happen with all languages without state and if the browser sends the language tag without country information.

Maybe there are other solutions like filtering it inside the script...what do you think?

Regards,

Thanks !
Sergi

_______________________________________________
Savane-dev-i18n mailing list
[email protected]
https://mail.gna.org/listinfo/savane-dev-i18n

Reply via email to