2 Replies Latest reply on Jan 12, 2005 3:12 PM by zgibek

    internationalization in CoreModule

    zgibek

      Hi,
      I tried to work with another language than english. I found that no matter which language user set in its account, because it should be taken from a request (from browser). I tried this but with no results :-(.
      I made a little investigation and found that only english language is accepted. The reason is (I think so) the constructor CoreModule(boolean persistent). The only one locale which is used there is Locale.US.
      When I changed the constructor to:

       public CoreModule(boolean persistent) {
       super(persistent);
       Locale locale = Locale.US;
       locales.add(locale);
       bundles.put(locale, new ResourceBundleAggregator(locale));
       // french
       locale = Locale.FRANCE;
       locales.add(locale);
       bundles.put(locale, new ResourceBundleAggregator(locale));
       }
      

      it started and seems to be good. The french language is used.
      But I found also some other problems:
      1. I must use language fr_FR (french/France). "french" don't works.
      2. When some texts are not translated (I think so) the code like this
      ${search.ADVANCED_HELP} is used.

      Anyway I will try to use polish language and I hope it is going to work fine.

        • 1. Re: internationalization in CoreModule
          theute

          Yes for french it is hardcoded, you can do the same for polish if you need to, just add the Polish locale as i did for France.
          The internationalization of Nukes 1 is not good.

          It is much better handled in JBoss Portal.
          If you start a new project, i would recommend to take a look at JBoss portal, the alpha release is due really soon.

          Thomas.

          • 2. Re: internationalization in CoreModule
            zgibek

             

            "thomas.heute@jboss.com" wrote:
            If you start a new project, i would recommend to take a look at JBoss portal, the alpha release is due really soon.


            Yes, I have new project(s).
            I looked at JBoss portal, but I am reflecting on the time it would be stable to make it productional :-(
            . The roadmap says it should be ready in the April.

            Anyway, when JBoss portal come would you still maintaine nukes 1.x?