Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » I18N with single-sourcing
I18N with single-sourcing [message #115489] Fri, 12 December 2008 12:49 Go to next message
Neil Bartlett is currently offline Neil BartlettFriend
Messages: 93
Registered: July 2009
Member
Hi,

What is the recommended approach to i18n in an RCP+RAP single-sourcing
environment?

I have read the Help docs regarding i18n under RAP. That looks fine but
the RWT.NLS class will not be available under RCP. I could use fragments
to write separate implementations of the Messages class, but then I would
have at least two fragments for every UI bundle in my application. Perhaps
I could wrap the call to RWT.NLS.getISO8859_1Encoded() in an abstraction,
then just provide two fragments for the whole application to implement
that abstraction. Any thoughts on this?

By the way I tried to watch the recording of Frank's single-sourcing
webinar on Eclipse Live but it doesn't seem to be available now.

Thanks,
Neil
Re: I18N with single-sourcing [message #115502 is a reply to message #115489] Fri, 12 December 2008 14:25 Go to previous message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi Neil,

please see my comments blow.

HTH
RĂ¼diger

Neil Bartlett wrote:
> Hi,
>
> What is the recommended approach to i18n in an RCP+RAP single-sourcing
> environment?
>
> I have read the Help docs regarding i18n under RAP. That looks fine but
> the RWT.NLS class will not be available under RCP. I could use fragments
> to write separate implementations of the Messages class, but then I
> would have at least two fragments for every UI bundle in my application.
> Perhaps I could wrap the call to RWT.NLS.getISO8859_1Encoded() in an
> abstraction, then just provide two fragments for the whole application
> to implement that abstraction. Any thoughts on this?
The latter approach is recommended. You could create a
"compatibility plug-in" that would host abstractions for e.g. NLS
and other functionality that differs in RCP and RAP. As you
suggested, two fragments would contribute the respective
implementations.
Some more information on this can be found in the webinar.

>
> By the way I tried to watch the recording of Frank's single-sourcing
> webinar on Eclipse Live but it doesn't seem to be available now.
The so called "buzz" page (http://www.eclipse.org/rap/buzz.php)
lists the recordings:
WMV:
http://download.innoopract.com/rap/webinar/Single_Sourcing_R AP_RCP_en.wmv
MP4:
http://download.innoopract.com/rap/webinar/Single_Sourcing_R AP_RCP_en.mp4
I was able to download and watch both of them. On EclipseLive I
couldn't find the webinar at all. Could you give me a hint?

>
> Thanks,
> Neil
>
Previous Topic:Google Chrome
Next Topic:Import an external library to RAP-project using ServletBridge
Goto Forum:
  


Current Time: Sun Feb 05 08:57:55 GMT 2023

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

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

Back to the top