Re: TurbineLocalizationService

2008-12-08 Thread Thomas Vandahl
[EMAIL PROTECTED] wrote: > it seems init (Object data) is also final, so I can't override that > either... Not in 2.3.3. Please look again. Bye, Thomas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: TurbineLocalizationService

2008-11-21 Thread b . v . weert
lopers List cc Por favor, responda a Asunto "Turbine Re: TurbineLoc

Re: TurbineLocalizationService

2008-10-07 Thread Thomas Vandahl
Boudewijn van Weert wrote: > I want to use this method when I have to generate special messages after a > certain operation, like f.e. that a database operation was successful. This > has to be done in the controller.. Not really. I usually return a localization key that points to the full message

Re: TurbineLocalizationService

2008-10-05 Thread Boudewijn van Weert
Hi, I want to use this method when I have to generate special messages after a certain operation, like f.e. that a database operation was successful. This has to be done in the controller.. Cheers, Bo 2008/10/5 Thomas Vandahl <[EMAIL PROTECTED]> > [EMAIL PROTECTED] wrote: > > If I wanted to cal

Re: TurbineLocalizationService

2008-10-05 Thread Thomas Vandahl
[EMAIL PROTECTED] wrote: > If I wanted to call the localizationTool from within my code to get a > localized string, what would then be the best method? Construct it by hand, > or does Turbine provide some feature for this? There is the static accessor Localization.getString(String, Locale), howev

Re: TurbineLocalizationService

2008-09-30 Thread b . v . weert
Asunto "Turbine Re: TurbineLocalizationService Developers List" <[EMAIL PROTECTED]

Re: TurbineLocalizationService

2008-09-30 Thread Thomas Vandahl
[EMAIL PROTECTED] wrote: > I'm using the localization tool. Overriding that seems more complicated, as > it makes quit high level calls to the other classes. It actually isn't. You could just override the init-method like this: public void init(Object data) { if (data instanceof RunData)

Re: TurbineLocalizationService

2008-09-29 Thread b . v . weert
cc Por favor, responda a Asunto "Turbine Re: TurbineLocalizationService

Re: TurbineLocalizationService

2008-09-28 Thread Thomas Vandahl
[EMAIL PROTECTED] wrote: > In Turbine 2.3.3 that method is still final; could you explain a bit more > what you mean? But getLocale(String) isn't, which is what getLocale(HttpServletRequest) calls. So just override that. However, when I come to think of it, the LocalizationService itself only use

Re: TurbineLocalizationService

2008-09-27 Thread b . v . weert
Hi, In Turbine 2.3.3 that method is still final; could you explain a bit more what you mean? Cheers, Bo [EMAIL PROTECTED] wrote: > Would it be possible to change final public Locale > getLocale(HttpServletRequest req) > to public Locale getLocale(HttpServletRequest req)? I'd suggest to use

Re: TurbineLocalizationService

2008-09-26 Thread Thomas Vandahl
[EMAIL PROTECTED] wrote: > Would it be possible to change final public Locale > getLocale(HttpServletRequest req) > to public Locale getLocale(HttpServletRequest req)? I'd suggest to use Turbine 2.3.3-RC1 which has this problem solved. Bye, Thomas. --

TurbineLocalizationService

2008-09-22 Thread b . v . weert
Hello, I have developped an application that allows the user to change the language, and the application continues to use that language during the session. I could find no other way that to change TurbineLocalizationService and override getLocale. However, this is a final method. In the end