Localization in JSF, how to remember selected locale per session instead of per request/view

后端 未结 5 1202
夕颜
夕颜 2020-11-22 04:36

faces-config.xml:


    
        ru
        

        
5条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 05:09

    I see that the problem is also with .properties file name. Java Locale us codes (lowercase) like: en_gb But automaticly created locale (by Netbeans) is lowercase_uppercase i.e.: messages_en_GB.properties Change name to: messages_en_gb.properties and it should work - if you tried everything

提交回复
热议问题