Hi Maxim,

The order of the loaders is defined at:
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/settings/ResourceSettings.java#L220-L224
You can redefine it by using #getStringResourceLoaders().clear();
#getStringResourceLoaders().addAll(betterOrderedList);

This is a nasty hack! I agree!

I think Wizard[_lang].properties should be moved
to org/apache/wicket/extensions/Initializer[_lang].properties

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Dec 10, 2015 at 6:00 PM, Maxim Solodovnik <solomax...@gmail.com>
wrote:

> Thanks Sebastien :)
>
> Hello All,
>
> I would like to redefine wizard button on "Application level", maybe
> someone can suggest how it can be possible to redefine string resource
> resolution order?
>
> Here is the original question:
> I have question regarding jqueryui wizard button localization, I need to
> localize "Finish" button
> I have added string on "Application" level (Application.properties.xml
> file)
> <entry key="wizard.button.finish">bla-bla</entry>
> and seems to have no effect
>
> this http://www.7thweb.net/wicket-jquery-ui/wizard/DefaultWizardPage page
> states I need to create  *MyPage*.properties or *MyWizard*.properties, but
> I need to have all translations in 1 file (we have built-in language editor
> in our application)
>
> Is it possible to localize the button on "Application level"?
>
>
> On Thu, Dec 10, 2015 at 10:38 PM, Sebastien <seb...@gmail.com> wrote:
>
> > Hi Maxim,
> >
> > This is because default wizard's button values are already defined in
> > AbstractWizard.properties. So it can be overridden in *MyPage*.properties
> > or *MyWizard*.properties, but not in *MyApplication*.property.
> >
> > I don't know how to tell *MyApplication*.property to take precedence over
> > *MyComponent.properties*. Maybe this is a question for users@ ! :)
> >
> > Best regards,
> > Sebastien.
> >
> >
> > On Thu, Dec 10, 2015 at 5:03 AM, Maxim Solodovnik <solomax...@gmail.com>
> > wrote:
> >
> >> Hello Sebastien,
> >>
> >> not sure which list need to be CC here :(
> >> I have question regarding jqueryui wizard button localization, I need to
> >> localize "Finish" button
> >> I have added string on "Application" level (Application.properties.xml
> >> file)
> >> <entry key="wizard.button.finish">bla-bla</entry>
> >> and seems to have no effect
> >>
> >> this http://www.7thweb.net/wicket-jquery-ui/wizard/DefaultWizardPage
> >> page states I need to create  *MyPage*.properties or *MyWizard*
> >> .properties, but I need to have all translations in 1 file (we have
> >> built-in language editor in our application)
> >>
> >> Is it possible to localize the button on "Application level"?
> >>
> >> --
> >> WBR
> >> Maxim aka solomax
> >>
> >
> >
>
>
> --
> WBR
> Maxim aka solomax
>

Reply via email to