Try something like this.....this is how we dynamically change languages at
login....Tapestry 3.0.3...
Locale selectedLocale = new Locale("fr");
cycle.getEngine().setLocale(selectedLocale);
// not sure what this does...
cycle.cleanup();
cycle.activate("Login"); // reload page
- Mike
Oscar Picasso <[EMAIL PROTECTED]>
04/17/2006 02:50 PM
Please respond to
"Tapestry users" <[email protected]>
To
Tapestry users <[email protected]>
cc
Subject
Very simple localization
That one should be very simple.
I want to serve all my application pages in french, regardless of the user
browser setting.
I've try to overide BaseEgine with a FrenchEngine:
@Override
public void setLocale(Locale locale) {
System.out.println("setting locale");
super.setLocale(new Locale("fr", "FR"));
}
I can see that the setLocale I used when I hit the pages but the pages are
still served according the user browser setting.
What should I do?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com