Re: How to get a translated string for an arbitrary locale?

2011-10-29 Thread Andrew Schetinin
Thanks, Igor, it worked. Regards, Andrew Schetinin On Fri, Oct 28, 2011 at 10:45 PM, Igor Vaynberg wrote: > you are right. i was looking in 1.5 where we have exposed the locale. > > for the time being you can simply do this: > Locale old=session.getlocale(); > session.setlocale(foo); > localize

Re: How to get a translated string for an arbitrary locale?

2011-10-28 Thread Igor Vaynberg
you are right. i was looking in 1.5 where we have exposed the locale. for the time being you can simply do this: Locale old=session.getlocale(); session.setlocale(foo); localizer.get(..); session.setlocale(old); -igor On Fri, Oct 28, 2011 at 1:22 PM, Andrew Schetinin wrote: > Hi Igor, > > But

Re: How to get a translated string for an arbitrary locale?

2011-10-28 Thread Andrew Schetinin
Hi Igor, But as I said, this method is deprecated and ignores Locale parameter: @Deprecated public String getString(final String key, final Component component, final IModel model, final Locale locale, final String style, final String defaultValue) throws MissingResourceEx

Re: How to get a translated string for an arbitrary locale?

2011-10-28 Thread Igor Vaynberg
Localizer#getString(final String key, final Component component, final IModel model, final Locale locale, final String style, final String defaultValue) -igor On Fri, Oct 28, 2011 at 10:54 AM, Andrew Schetinin wrote: > Hi, > > I have a question about Wicket localization I could not find an answe

How to get a translated string for an arbitrary locale?

2011-10-28 Thread Andrew Schetinin
Hi, I have a question about Wicket localization I could not find an answer for. I have a component where I'd like to get a translated message for a given key. The actual string is sitting somewhere in a grand-parent panel, and I have no any access to it. I'd like to get translations for that key