Re: localizing resources

2010-07-15 Thread Paul Szulc
ok, thx!

On Thu, Jul 15, 2010 at 12:23 PM, Martin Grigorov 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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Best regards,
Paul Szulc

http://paulszulc.wordpress.com


Re: localizing resources

2010-07-15 Thread Martin Grigorov
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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



localizing resources

2010-07-15 Thread Paul Szulc
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