[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
lopers List
cc
Por favor,
responda a Asunto
"Turbine Re: TurbineLoc
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
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
[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
Asunto
"Turbine Re: TurbineLocalizationService
Developers List"
<[EMAIL PROTECTED]
[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)
cc
Por favor,
responda a Asunto
"Turbine Re: TurbineLocalizationService
[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
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
[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.
--
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
12 matches
Mail list logo