Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » SingleSourcing Localization
SingleSourcing Localization [message #117465] Mon, 05 January 2009 15:27 Go to next message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
Hi,

I want to make an application multilingual. I did it the RAP way and the
RCP way. I wanted to ask if it is possible to use only one way to
internationalize my application. Is it possible to implement the
localization in the host plug-in of a single sourced application or do I
have to do some platform specific implementations in the regarding
fragments?

Thanks for your answer,

Gunnar Wurl
Re: SingleSourcing Localization [message #117479 is a reply to message #117465] Mon, 05 January 2009 16:00 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Gunnar,

this has been discussed here before. Search for "I18N with
single-sourcing" for example.

Rüdiger

Gunnar Wurl wrote:
> Hi,
>
> I want to make an application multilingual. I did it the RAP way and the
> RCP way. I wanted to ask if it is possible to use only one way to
> internationalize my application. Is it possible to implement the
> localization in the host plug-in of a single sourced application or do I
> have to do some platform specific implementations in the regarding
> fragments?
>
> Thanks for your answer,
>
> Gunnar Wurl
>
Re: SingleSourcing Localization [message #117936 is a reply to message #117479] Thu, 08 January 2009 16:05 Go to previous messageGo to next message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
Hi,

I read in the german Java Magazin a report about RAP. One thing that
sounded interesting to me was a statement concerning internationalization.
It said that the RAP way of internationalization also works for RCP. So I
wanted to ask how that was meant.

Thanks in advance,

Gunnar Wurl
Re: SingleSourcing Localization [message #118270 is a reply to message #117936] Mon, 12 January 2009 11:47 Go to previous message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Hi Gunnar,

nice that you read the article. Here are some thoughts about the i18n
problem and how to solve it in RCP and RAP together.

On the one side you could swap your messages classes into fragments
while still having your .properties files in your host bundle. In your
RAP fragment you'd use the RAP approach by utilizing RWT.NLS.
In your RCP fragment you would use the static approach.
One big disadvantage of this approach is that you need to keep two
versions of the Message classes in sync with each other.

Another way would be to have a common accessor class for all your
messages which then has a different implementation for each fragment but
the message classes and .properties files would stay the same.
When looking at the message class in a RAP environment you see that all
have a get() in common to dispatch the message key to the corresponding
translation. That would be the call that you would need to move into one
of the fragments. Using the accessor approach within RCP is no problem.
RCP decided to go with the "static" approach due to performance reasons
(afaik).

Hope this helped a bit to get an idea how to single source the i18n stuff.

Greets
Benny

Gunnar Wurl wrote:
> Hi,
>
> I read in the german Java Magazin a report about RAP. One thing that
> sounded interesting to me was a statement concerning
> internationalization. It said that the RAP way of internationalization
> also works for RCP. So I wanted to ask how that was meant.
>
> Thanks in advance,
>
> Gunnar Wurl
>
Previous Topic:Closing Frames and Enter Buttons
Next Topic:toolbar rendering issue.
Goto Forum:
  


Current Time: Thu Feb 02 22:22:07 GMT 2023

Powered by FUDForum. Page generated in 0.03210 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top