Hi, Please create a ticket with a quickstart application. I this you are correct - because of the existence of Wizard.properties Wicket doesn't consult with MyApplication_sv.properties. A workaround would be to introduce org.apache.wicket.extensions.wizard package in your application and put there Wizard_sv.properties.xml
Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Feb 17, 2016 at 9:06 AM, calle sollander <[email protected]> wrote: > Hello! > > I'm trying to get the buttons in the Wizard component to be in Swedish but > I can't get it working. > I have added this to my properties file: > > datatable.no-records-found=Din sökning gav ingen träff > org.apache.wicket.extensions.wizard.next=Nästa > > org.apache.wicket.extensions.wizard.previous=< Föregående > org.apache.wicket.extensions.wizard.last=Sista > org.apache.wicket.extensions.wizard.finish=Spara > org.apache.wicket.extensions.wizard.cancel=Avbryt > > I use a Wizard with two simple WizardSteps like this: > > System.out.println("previous: " > +Application.get().getResourceSettings().getLocalizer().getString("org.apache.wicket.extensions.wizard.previous", > null, null, null, null, "DEFAULT")); > WizardModel m = new WizardModel(); > m.add(new DummyStep()); > m.add(new DummyStep2()); > Wizard w = new Wizard("wizard", m); > add(w); > > The sys.out above prints the Swedish word for previous but the button in > the wizard is in English. > If I change the Locale to e.g. French the buttons show French texts, it > seems like the wizard is always using the Wizard.properties file and since > there > is no Swedish version it defaults to the English one. > The "datatable.no-records-found" property works like it is supposed to in > a Datatable on the same page. > > Is it not possible to override the button texts in a Wizard? > Should I use some other component for my Wizard? > > Regards, Calle > >
