Internationalization: stacked views are not all showing localized names [message #846789] |
Mon, 16 April 2012 18:56 |
George R Malary Messages: 36 Registered: March 2012 Location: New Jersey |
Member |
|
|
Localization is working pretty great. Very nice implementation, and seems pretty easy to mantain. I am having some weird behavior though. Here is the scenario:
When login, there are 2 views, stacked, so can see both tabs, and the initial tab is shown.
1) Set locale to english, and login. Everything looks fine.
2) Logout and set locale to spanish. Then login.
3) The first tab that is showing has the correct localized title. The second tab still shows the english title.
4) Click on the second tab, and the second view shows, and the tab is now displaying the correct localized title.
Could this have anything to do with server side caching? Any suggestions on how to fix this, or what the problem can be?
Thanks and regards,
George
|
|
|
Re: Internationalization: stacked views are not all showing localized names [message #847344 is a reply to message #846789] |
Tue, 17 April 2012 08:01 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
The problem is the same with Eclipse RCP and is caused by the fact that
on the second start the UI is restored from a saved file (workbench.xml)
and there the "wrong" string is saved. There's no Java-Code executed
until you select the Tab.
Eclipse 4.x can solve this (can because the current compat layer doesn't
support it) because there translations are a so called decoration
process but even if it would solve it RAP has not yet adopted the
Eclipse 4 Platform.
Tom
Am 16.04.12 20:56, schrieb George R Malary:
> Localization is working pretty great. Very nice implementation, and
> seems pretty easy to mantain. I am having some weird behavior though.
> Here is the scenario:
>
> When login, there are 2 views, stacked, so can see both tabs, and the
> initial tab is shown.
>
> 1) Set locale to english, and login. Everything looks fine.
> 2) Logout and set locale to spanish. Then login.
> 3) The first tab that is showing has the correct localized title. The
> second tab still shows the english title.
> 4) Click on the second tab, and the second view shows, and the tab is
> now displaying the correct localized title.
>
> Could this have anything to do with server side caching? Any suggestions
> on how to fix this, or what the problem can be?
>
> Thanks and regards,
>
> George
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03542 seconds