Navigator Add-on I18N

What is the fastest way to apply i18n to Navigator add-on (v0.3)?

I’ve noted that Navigator.class, in
confirmedMoveToNewView
method has hardcoded string literals:


...
		final Window wDialog = new Window("Warning", lo);
		wDialog.setModal(true);
		final Window main = getWindow();
		main.addWindow(wDialog);
		lo.addComponent(new Label(warn));
		lo.addComponent(new Label(
				"If you do not want to navigate away from the current screen, press Cancel."));
		Button cancel = new Button("Cancel", new Button.ClickListener() {

			public void buttonClick(ClickEvent event) {
				uriFragmentUtil.setFragment(currentFragment, false);
				main.removeWindow(wDialog);
			}
		});
		Button cont = new Button("Continue", new Button.ClickListener() {
...

Thx in advance,

Fastest way would be to copy implementation of the Navigator to your project and modify it there. It is just few hundred lines and would be easy to maintain as a part of your project.

Ok, i’ll do it this way.

Thank you,