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

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

Re: localizing resources

2010-07-15 Thread Paul Szulc
ok, thx! On Thu, Jul 15, 2010 at 12:23 PM, Martin Grigorov mcgreg...@e-card.bgwrote: 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