This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Internationalization with dropdown

 
Imre Tokai
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Internationalization is implemented by the following principle:
applicationContext.xml

Files containing messages:
Bundle_en_US, Bundle_es_MX

Each .jsp includes:

Each message:


When i switch the locale language on browser level it does work indeed;
But does NOT work, when i want to change the language from code:


How to implement change of the language from code for above approach?
Precisely, i want to have a combo box on the header of the page and to be able to switch language -is their maybe a simpler approach than calling a Controller (servlet)


Regards
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read HtmlHasNoComboBox
 
Imre Tokai
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for guiding this thread to right track, Bear!

Clear,
Will replace drop-down (combo) with links (EN, ES);

BUT, still haven't found for issue how to change the language content via code? That command should affect the Browser settings, i think?
How to change language from code in servlet?


Regards
 
Imre Tokai
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still no progress -let me know if you have any idea, please
Question also posted on:
http://forum.springsource.org/showthread.php?p=315317#post315317


Regards
 
Imre Tokai
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Initial issue has been solved on other forum.

New question:
Is there a way to select language from drop-down instead of links?


Regards
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic