6 Replies Latest reply on Nov 27, 2007 9:08 AM by jvence

    IdentityUserPortlet not picking up localized resource file

    jvence

      I've added the following to the correct section defining IdentityUserPortlet in portlet.xml:

      <supported-locale>en</supported-locale>
      <supported-locale>fr</supported-locale>
      <resource-bundle>Identity</resource-bundle>

      When I click on IdentityUserPortlet in the Portlet Definition section, I can see that it supports both en and fr...

      but when I log in with a user that has set his locale to 'fr' everything is translated (tabs, etc) except the IdentityUserPortlet.

      Is this a bug?

      Thanks
      Jean

        • 1. Re: IdentityUserPortlet not picking up localized resource fi
          emuckenhuber

          Basically not all portlets are translated in every language. And only adding <supported-locale>fr</supported-locale> does not help much if no French translation is present ;)

          Anyway - as far as i can remember someone from the community provided some translations for the IdentityPortlets and therefore a French translation will be available in the next release of JBoss Portal.

          Emanuel

          • 2. Re: IdentityUserPortlet not picking up localized resource fi
            jvence

             

            "emuckenhuber" wrote:
            Basically not all portlets are translated in every language. And only adding <supported-locale>fr</supported-locale> does not help much if no French translation is present ;)

            Anyway - as far as i can remember someone from the community provided some translations for the IdentityPortlets and therefore a French translation will be available in the next release of JBoss Portal.

            Emanuel


            Thanks for your answer but I failed to mention that I did create an Identity_fr.properties files containing all necessary translations... The portlet is just not showing any of the translated strings (instead it it defaulting to English). It's a rather strange problem.

            • 3. Re: IdentityUserPortlet not picking up localized resource fi
              theute

              Next time, please think about contributing, it would have save Luc some time to do the translation as well, he could have work on another portlet and everybody could have benefit from that.

              Anyway, Luc's contribution is already integrated and will be part of 2.6.3

              • 4. Re: IdentityUserPortlet not picking up localized resource fi
                jvence

                 

                "thomas.heute@jboss.com" wrote:
                Next time, please think about contributing, it would have save Luc some time to do the translation as well, he could have work on another portlet and everybody could have benefit from that.

                Anyway, Luc's contribution is already integrated and will be part of 2.6.3


                You're not addressing the issue here. Firstly, this was just done and secondly the issue is about IdentityUserPortlet not loading the appropriate resource file.

                • 5. Re: IdentityUserPortlet not picking up localized resource fi
                  emuckenhuber

                  I tried that again, but unfortunately could not reproduce your problem.

                  All i did was creating the new bundle file, re-deployed the core-identity.sar, changed the users Locale, Logout, Log in again and it was working as expected.

                  • 6. Re: IdentityUserPortlet not picking up localized resource fi
                    jvence

                     

                    "emuckenhuber" wrote:
                    I tried that again, but unfortunately could not reproduce your problem.

                    All i did was creating the new bundle file, re-deployed the core-identity.sar, changed the users Locale, Logout, Log in again and it was working as expected.


                    I got it working with french but for some reason Arabic doesn't work. It simply doesn't pick up the resource file. If you copy the Identity.properties to Identity_ar.properties, modify a few pairs (to make sure it's picking up the right properties file), make the necessary config changes and redeploy. It won't pick it up.

                    I have feeling it has to do with the country list not available in Arabic; perhaps it is not supported by the JVM? Any ideas?