Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Struts2 action nls properties support for different countries/regions

 
Greenhorn
Posts: 1
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Different countries/regions may have different text for the same language. If the key cannot be found in the country-specific properties, can automatically go up to search the Default properties. Does Struts2 has built-in support for this? If not, how to program to support such requirement? Or any better way to support multiple countries?

For example,
Default:
  • myaction.properties
  • myaction_zh.properties
  • myaction_zh_TW.properties


  • Taiwan:
  • myaction_TW.properties
  • myaction_TW_zh_TW.properties


  • Singapore:
  • myaction_SG.properties
  • myaction_SG_zh.properties
  • myaction_SG_zh_TW.properties
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!