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

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
  •  
    brevity is the soul of wit - shakepeare. Tiny ad:
    Create Edit Print & Convert PDF Using Free API with Java
    https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!