Re: [t5] Localisation

2007-10-21 Thread Christoph Jaeger
Thanks, this was what I was looking for. Best Regards, Christoph Imants Firsts wrote: > How about this? > > @Inject private PersistentLocale persistentLocale; > @Inject private RequestGlobals requestGlobals; > > public Locale getCurrentLocale() { > Locale locale = persistentLocale.get()

Re: [t5] Localisation

2007-10-21 Thread Imants Firsts
How about this? @Inject private PersistentLocale persistentLocale; @Inject private RequestGlobals requestGlobals; public Locale getCurrentLocale() { Locale locale = persistentLocale.get(); return locale != null ? locale : requestGlobals.getRequest().getLocale(); } Quoting Christ