Re: Default locale / resource language problem

2008-11-07 Thread Pointbreak
You can make your own subclass of Session, and make it call setLocale in
the contructor, then override getWebSessionClass in your application
class.

On Fri, 7 Nov 2008 14:45:57 +0100, "Rutger Jansen" <[EMAIL PROTECTED]>
said:
> You were just ahead of me as I saw that the given Locale in one of my
> custom validators was en_EN.
> 
> Is there a way to force the locale of the session globaly so I don't
> have to check the session's locale on each page?
> 
> On 11/7/08, Pointbreak <[EMAIL PROTECTED]> wrote:
> > You have to set an explicit locale for your session (call setLocale() in
> > the session) to force a language. Defaultlocale is just what it says it
> > is: a default. Your browser probably asks for englis pages (see your
> > browser settings).
> >
> > On Fri, 7 Nov 2008 14:06:46 +0100, "Rutger Jansen" <[EMAIL PROTECTED]>
> > said:
> >> Hi,
> >>
> >> I can't seem to get default error/validation messages in my own
> >> language (Dutch) even though my default Locale is correct
> >> (java.util.Locale.getDefault() = nl_NL). They keep showing up in
> >> English.
> >> Is there another place where the default converters get the
> >> localization of their messages, should I do more configuration? Can't
> >> seem to find it in the book (Wicket in action)
> >>
> >> I know how to override my own expected messages but want to be sure
> >> that any unforseen message is in the correct language as well.
> >>
> >> I tried wicket 1.3.4 and 1.3.5
> >>
> >> Rutger
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Default locale / resource language problem

2008-11-07 Thread Rutger Jansen
You were just ahead of me as I saw that the given Locale in one of my
custom validators was en_EN.

Is there a way to force the locale of the session globaly so I don't
have to check the session's locale on each page?

On 11/7/08, Pointbreak <[EMAIL PROTECTED]> wrote:
> You have to set an explicit locale for your session (call setLocale() in
> the session) to force a language. Defaultlocale is just what it says it
> is: a default. Your browser probably asks for englis pages (see your
> browser settings).
>
> On Fri, 7 Nov 2008 14:06:46 +0100, "Rutger Jansen" <[EMAIL PROTECTED]>
> said:
>> Hi,
>>
>> I can't seem to get default error/validation messages in my own
>> language (Dutch) even though my default Locale is correct
>> (java.util.Locale.getDefault() = nl_NL). They keep showing up in
>> English.
>> Is there another place where the default converters get the
>> localization of their messages, should I do more configuration? Can't
>> seem to find it in the book (Wicket in action)
>>
>> I know how to override my own expected messages but want to be sure
>> that any unforseen message is in the correct language as well.
>>
>> I tried wicket 1.3.4 and 1.3.5
>>
>> Rutger
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Default locale / resource language problem

2008-11-07 Thread Pointbreak
You have to set an explicit locale for your session (call setLocale() in
the session) to force a language. Defaultlocale is just what it says it
is: a default. Your browser probably asks for englis pages (see your
browser settings).

On Fri, 7 Nov 2008 14:06:46 +0100, "Rutger Jansen" <[EMAIL PROTECTED]>
said:
> Hi,
> 
> I can't seem to get default error/validation messages in my own
> language (Dutch) even though my default Locale is correct
> (java.util.Locale.getDefault() = nl_NL). They keep showing up in
> English.
> Is there another place where the default converters get the
> localization of their messages, should I do more configuration? Can't
> seem to find it in the book (Wicket in action)
> 
> I know how to override my own expected messages but want to be sure
> that any unforseen message is in the correct language as well.
> 
> I tried wicket 1.3.4 and 1.3.5
> 
> Rutger
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Default locale / resource language problem

2008-11-07 Thread Rutger Jansen
Hi,

I can't seem to get default error/validation messages in my own
language (Dutch) even though my default Locale is correct
(java.util.Locale.getDefault() = nl_NL). They keep showing up in
English.
Is there another place where the default converters get the
localization of their messages, should I do more configuration? Can't
seem to find it in the book (Wicket in action)

I know how to override my own expected messages but want to be sure
that any unforseen message is in the correct language as well.

I tried wicket 1.3.4 and 1.3.5

Rutger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]