开发者

why struts resources bundle having myresource.properties and myresource_en.properties files

开发者 https://www.devze.com 2023-02-21 21:53 出处:网络
struts having default resource properties \"myresource.properties\" and language resource properties \"myresource_en.properties\" but in real time in my project I have all English non-adaptation co开发

struts having default resource properties "myresource.properties" and language resource properties "myresource_en.properties" but in real time in my project I have all English non-adaptation co开发者_如何学Gontent in "myresource.properties" file then why we need to use "myresource_en.properties" file.

Any one could you please explain the reason why struts having "myresource.properties" as default and "myresource_en.properties" for english.


The _xx mentioned above stands for the country ISO code of the language you want to support. If you want to support English and German, you have to supply the files:

myresource_de.properties (German)

myresource_en.properties (English)

myresource.properties (fallback for all other ISO codes)

Edit :

myresource.properties (fallback for all other ISO codes)

this is used to hold for characters such as hexnumeric characers etc

0

精彩评论

暂无评论...
验证码 换一张
取 消