Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

To manually switch the locale:

Code Block
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);
		}

	});

	...

}