This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1.3 Localization - Fallback locale if key is not found.

 
Sundar Subramaniam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I do not have a particular key in the properties file for a specific locale, say German, which I do in English, is it possible to have that particular piece of text still display the English value from the corresponding properties file or any other fallback value rather than show an error message? Currently I'm using the null=false property in the struts config and when it finds a missing key it simply shows an error in that place. I would like it to pull the value from the English locale instead if the German properties file doesn't have that key.
 
Joe Ess
Bartender
Pie
Posts: 9258
10
Linux Mac OS X Windows
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic