• 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
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Struts2 action nls properties support for different countries/regions  RSS feed

 
Greenhorn
Posts: 1
Eclipse IDE Java Spring
  • 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
  •  
    He baked a muffin that stole my car! And this tiny ad:
    RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
    https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!