2 Replies Latest reply on Sep 25, 2013 1:57 PM by kenfinni

    Default locale problem




      in my portlet I have two localisations: en, cs. But I have got problem with default locale.








      My resouce bundle's name is "text" and default file should be "text.properties". But when I have this file and then "text_cs.properties" English does not work!



      When my filenames are "text_en.properties" and "text_cs.properties" both languages work!


      Next problem is that when I change language to language without localisation default language is Czech and not English. Do you know why? It must be connected with 1st problem that english works after renaming file  "text.properties" to "text_en.properties".


      Here is example I used:



      Thank you for every answer!





        • 1. Re: Default locale problem

          I also have the same issue in jBoss4.

          Two struts web application runs on one jboss node in my hosted machine (system local is en_US). But, changing local from sv_SE to en_GB does not reflect in the UI.

          My default properties file also in English.


          waitting for a answer.



          • 2. Re: Default locale problem



            Apologies for the time it took me to respond!


            From a quick test I did, changing the language in GateIn correctly updates the internationalized parts of the JSF portlet, when the "en" properties file does not include the locale portion.


            Basically I built the GateIn Quickstart for JSF2 and tried it.


            Once difference I can see is that the quickstart doesn't set the supported locales in portlet.xml, so not sure if that is causing an issue or not.