You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Paul Szulc <pa...@gmail.com> on 2010/07/15 11:58:49 UTC
localizing resources
Can we localize resources in Wicket? I mean imagine I have multiple-language
application and this application has a logo image. I have pl_logo.ong
en_logo.png es_logo.png and so on. And now I want to define my image in
markup once and in controller one, and let wicket to decided which resource
(which logo) is to be shown (depending on users language). Does wicket
already has this sort of functionality or do I have to implement it myself?
--
Best regards,
Paul Szulc
http://paulszulc.wordpress.com
Re: localizing resources
Posted by Paul Szulc <pa...@gmail.com>.
ok, thx!
On Thu, Jul 15, 2010 at 12:23 PM, Martin Grigorov <mc...@e-card.bg>wrote:
> name it logo_en.png, logo_es.png, ...
> then just set the Session locale after login:
>
> if (loginOk) {
> session.setLocale(user.getLocale())
> ...
> }
>
> see also Session#setStyle().
>
> On Thu, 2010-07-15 at 11:58 +0200, Paul Szulc wrote:
> > Can we localize resources in Wicket? I mean imagine I have
> multiple-language
> > application and this application has a logo image. I have pl_logo.ong
> > en_logo.png es_logo.png and so on. And now I want to define my image in
> > markup once and in controller one, and let wicket to decided which
> resource
> > (which logo) is to be shown (depending on users language). Does wicket
> > already has this sort of functionality or do I have to implement it
> myself?
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Best regards,
Paul Szulc
http://paulszulc.wordpress.com
Re: localizing resources
Posted by Martin Grigorov <mc...@e-card.bg>.
name it logo_en.png, logo_es.png, ...
then just set the Session locale after login:
if (loginOk) {
session.setLocale(user.getLocale())
...
}
see also Session#setStyle().
On Thu, 2010-07-15 at 11:58 +0200, Paul Szulc wrote:
> Can we localize resources in Wicket? I mean imagine I have multiple-language
> application and this application has a logo image. I have pl_logo.ong
> en_logo.png es_logo.png and so on. And now I want to define my image in
> markup once and in controller one, and let wicket to decided which resource
> (which logo) is to be shown (depending on users language). Does wicket
> already has this sort of functionality or do I have to implement it myself?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org