To manually switch the locale:
public final class MyPage extends WebPage { ... add(new Link("languageSwitch") { @Override public final void onClick() { Locale locale = new Locale(MyPage.this.getString("header.versionLanguage")); this.getSession().setLocale(locale); } }); ... }
1 Comment
Herman Suijs
I've created a LocaleLink which you can add to your page. It will not show if it is the current Locale