> The label components are not refreshed after changing locale. Do you know
> why.
My guess is that the labels are not using a Locale-aware model like
ResourceModel, but instead have been set using construction-time getString() or
the like.
> Another problem is that when I change the locale I
Hi again,
I have the following problems. If you have any idea please tell me.
The label components are not refreshed after changing locale. Do you know
why.
Another problem is that when I change the locale I refresh the whole page.
(target.addComponent(instance);) where instance is my Page class.
On Fri, Dec 2, 2011 at 2:52 PM, cosmindumy wrote:
> The problem was that I set the default locale to de_De but I needed de_CH.
> :(.
That's why I asked you what resource bundles you have.
I'm glad it works now!
> And it didn't find the coresponding properties file and read from default
> file. T
The problem was that I set the default locale to de_De but I needed de_CH.
:(.
And it didn't find the coresponding properties file and read from default
file. That was the problem.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/message-internationalization-tp4146241p
how did you fix the first problem ?
On Fri, Dec 2, 2011 at 2:33 PM, cosmindumy wrote:
> Do not bother. I solve it.
> It was a little careless of mine. Now the default locale is de_DE for my
> wanted pages.
> But I have other problems. Some components are not refreshed after changing
> local from
Do not bother. I solve it.
It was a little careless of mine. Now the default locale is de_DE for my
wanted pages.
But I have other problems. Some components are not refreshed after changing
local from the flag. i will investigate and if I don't find a solution I
will ask you.
Thanks a lot.
--
V
Actually the locale is changed. But the wicket:messages are not changed. I
have to press on the flag and then they change.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/message-internationalization-tp4146241p4146906.html
Sent from the Users forum mailing list archive
here is how I set the locale, at the beginning of the constructor, after
calling super()
final LingoosSession session = (LingoosSession) getSession();
if (!session.isLocaleModified())
{
session.setLocale(DEFAULT_LOCALE);
session.setLocaleModified(true);
On Fri, Dec 2, 2011 at 2:09 PM, cosmindumy wrote:
>
>> When I enter first time on page I change my local to de-De.
>
> A better place to do that is in Application.newSession(). Or you can tell
> your browser to prefer de_DE and let Wicket pick up using Accept-Language:
> header (IIRC it does that
> When I enter first time on page I change my local to de-De.
A better place to do that is in Application.newSession(). Or you can tell
your browser to prefer de_DE and let Wicket pick up using Accept-Language:
header (IIRC it does that for you).
This is not a good ideea as I have more modules
> When I enter first time on page I change my local to de-De.
A better place to do that is in Application.newSession(). Or you can tell your
browser to prefer de_DE and let Wicket pick up using Accept-Language: header
(IIRC it does that for you).
- Tor Iver
---
11 matches
Mail list logo