6 Replies Latest reply on Feb 21, 2008 9:42 PM by Jean Vence

    Localization bug in 2.6.x?

    Jean Vence Newbie

      I've been trying everything to localize Jboss portal in different languages but have come across a weird problems where some language are not supported properly. I have posted and reported the bug with no success...

      I tried looking at http://portal.demo.jboss.com/ (which is running 2.6.4), selected Portuguese Brazilian for the 'user' locale but everything appears in English (the source code indicates that a localized Resource_pt_BR resource file does exist and that it has been declared as a supported language).

      As I said some languages work but others (like arabic) do not. And yes I did add <supported-locale>ar</supported-locale> to the correct section within the portlet.xml file.

      Has anyone else have problems with localization?

      Thanks

      Jean

        • 1. Re: Localization bug in 2.6.x?
          Thomas Heute Master

          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?
            Jean Vence Newbie

            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?
              Thomas Heute Master

              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?
                Thomas Heute Master

                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?
                  Thomas Heute Master

                  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?
                    Jean Vence Newbie

                    That solved it. Thank you for looking into this and solving the issue. You guys have done a tremendous job providing a great product.