-
1. Re: Localization bug in 2.6.x?
theute Feb 21, 2008 10:39 AM (in response to jvence)I don't think we provide pt_BR localization for some parts, the most translated parts are in french and Italian thanks to contributors.
For pt_BR we have the previous UserPortlet which is translated partly, but that's about it.
All the localization is the same mechanism for all languages. There is just no translations for every languages and every parts. -
2. Re: Localization bug in 2.6.x?
jvence Feb 21, 2008 11:52 AM (in response to jvence)I have spent hours trying to figure this out and there really seem to be a problem. Is there a guide somewhere?
If you have 5 minutes, look at http://jira.jboss.com/jira/browse/JBPORTAL-1895
and try to reproduce it. You will see that something is wrong.
It's very simple to reproduce:
1. Add <supported-locale>ar</supported-locale> to portlet.xml
2. Identity_fr.properties to Identity_ar.properties (use fr just to test obviously)
3. Recompile and deploy
You will see that if you select Arabic, the UserIdentityPortlet is displayed in English rather then French. Is it possible that this has to do with the JVM not supporting ALL languages. I noticed that UserIdentityPortlet displays a list of all languages in the user's specified locale.
I'm at a complete loss. Any help would be greatly appreciated...
Jean"thomas.heute@jboss.com" wrote:
I don't think we provide pt_BR localization for some parts, the most translated parts are in french and Italian thanks to contributors.
For pt_BR we have the previous UserPortlet which is translated partly, but that's about it.
All the localization is the same mechanism for all languages. There is just no translations for every languages and every parts. -
3. Re: Localization bug in 2.6.x?
theute Feb 21, 2008 2:33 PM (in response to jvence)I tried again, the exact same scenario you mention here, it's just working fine without any extra configuration.
The identity portlets tabs are using Identity_ar.properties as expected. -
4. Re: Localization bug in 2.6.x?
theute Feb 21, 2008 3:45 PM (in response to jvence)Ok, i was finally able to reproduce.
It works fine if you change the language on your profile (what i initially did). It seems to fail when selecting the language in firefox preferences -
5. Re: Localization bug in 2.6.x?
theute Feb 21, 2008 3:51 PM (in response to jvence)Can you try to add:
<application> <locale-config> <default-locale>en</default-locale> <supported-locale>en</supported-locale> <supported-locale>ar</supported-locale> <supported-locale>fr</supported-locale> <supported-locale>it</supported-locale> </locale-config> ... </application>
In faces-config.xml of core-identity.
My wild guess is that it has to do with the JSF nature of the application more than the portal itself -
6. Re: Localization bug in 2.6.x?
jvence Feb 21, 2008 9:42 PM (in response to jvence)That solved it. Thank you for looking into this and solving the issue. You guys have done a tremendous job providing a great product.