Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Extending / Replacing bundle localization
Extending / Replacing bundle localization [message #675090] Mon, 30 May 2011 09:39 Go to next message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 211
Registered: July 2009
Location: Switzerland
Senior Member
Hello

I'm looking for a way to extend or replace the bundle.properties (and translations) of a bundle. I need this to customize our product if a customer wants different labels.
I was searching the web but couldn't find a solution.

Maybe through fragments, maybe somehow hack the org.eclipse.osgi.service.localization.BundleLocalization service, maybe there are certain extension points, hooks, callbacks?

greets
Flavio


Prozessmanagement und Qualitätsmanagement Software QMS/IMS
https://www.scodi.ch
Re: Extending / Replacing bundle localization [message #780168 is a reply to message #675090] Tue, 17 January 2012 09:50 Go to previous messageGo to next message
Bartosz  C is currently offline Bartosz CFriend
Messages: 2
Registered: January 2012
Junior Member
Any word on this?

I have tried to override the default BundleLocalization service, but it didn't work. This is due to the default BundleLocalization service is being registered with the Constants.SERVICE_RANKING property of value Integer.MAX_VALUE.
Re: Extending / Replacing bundle localization [message #780190 is a reply to message #780168] Tue, 17 January 2012 10:40 Go to previous messageGo to next message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 211
Registered: July 2009
Location: Switzerland
Senior Member
I haven't found a solution jet.

A while past, I have seen a webinar about "e4 Application Services". It is possible to override the Localization Service there.

Maybe that helps?


Prozessmanagement und Qualitätsmanagement Software QMS/IMS
https://www.scodi.ch
Re: Extending / Replacing bundle localization [message #780443 is a reply to message #780190] Tue, 17 January 2012 22:13 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Somehow the initial post is missing so I don't have a context. Let me
only state that the translation service provided as part of the e4 API
is different to the BundleLocalizationService provided by OSGi.

In e4 (or correctly defined "Applications built upon the Eclipse 4
Application Platform") the default translation implementation is using
the BundleLocalization-Service but it can be replace by a custom
implementation e.g. one that calls a webservice like google translate.

My ECE 2011 Talk "Eclipse 4 Application Platform: Not commonly known
features of the new platform" slides are found at
http://tomsondev.bestsolution.at/2011/11/07/slides-from-latest-talks/ or
a video stream at
http://tomsondev.bestsolution.at/2011/11/18/videos-from-my-eclipsecon-europe-2011-talks/
holds some information on it.

The question now still is what are you after and why you want to replace
the BundleLocalizationService.

Tom

Am 17.01.12 11:40, schrieb Flavio Donze:
> I haven't found a solution jet.
>
> A while past, I have seen a webinar about "e4 Application Services". It
> is possible to override the Localization Service there.
>
> Maybe that helps?
Re: Extending / Replacing bundle localization [message #780465 is a reply to message #780443] Wed, 18 January 2012 07:13 Go to previous message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 211
Registered: July 2009
Location: Switzerland
Senior Member
Hi Tom

Thanks for your reply!
That was the video I was mentioning (thought it was a webinar).

The post should be available here: http://www.eclipse.org/forums/index.php?t=rview&goto=780443#msg_780443

For my case, we will switch to e4 with the next Eclipse Release in June. Looking forward to that!

greets
Flavio


Prozessmanagement und Qualitätsmanagement Software QMS/IMS
https://www.scodi.ch
Previous Topic:Being notified when a bundle throws exception - OSGi - Helios
Next Topic:Right click editor offset
Goto Forum:
  


Current Time: Wed Apr 24 14:06:08 GMT 2024

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

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

Back to the top