Localize a string using custom locale
Hello, For example I need to localize a string to defferent languages. How is it possible to localize using a custom locale? I found that a method in Localizer class, but it's deprecated: public String getString(final String key, final Component component, final IModel model, final Locale locale, final String style, final String defaultValue) Thank you.
Re: Localize a string using custom locale
Just override getLocale in your component and use one of non-deprecated Localizer methods. 2009/11/27 Gatos ega...@gmail.com Hello, For example I need to localize a string to defferent languages. How is it possible to localize using a custom locale? I found that a method in Localizer class, but it's deprecated: public String getString(final String key, final Component component, final IModel model, final Locale locale, final String style, final String defaultValue) Thank you.
Re: Localize a string using custom locale
http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html Matias Berrueta On Fri, Nov 27, 2009 at 11:59 AM, Marat Radchenko slonopotamusor...@gmail.com wrote: Just override getLocale in your component and use one of non-deprecated Localizer methods. 2009/11/27 Gatos ega...@gmail.com Hello, For example I need to localize a string to defferent languages. How is it possible to localize using a custom locale? I found that a method in Localizer class, but it's deprecated: public String getString(final String key, final Component component, final IModel model, final Locale locale, final String style, final String defaultValue) Thank you.