Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Externalize strings from fragements in specified file
Externalize strings from fragements in specified file [message #1228105] Mon, 06 January 2014 12:24 Go to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi,

is it possible to configure my E4-Application to not search for the bundle.properties in the standard folder (OSGI-INF/l10n), but in a custom one, maybe even in another plugin?

Thanks for any kind of help.

Best regards
Bastian
Re: Externalize strings from fragements in specified file [message #1228116 is a reply to message #1228105] Mon, 06 January 2014 12:51 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You mean for translations of the e4xmi file? Yes you can change that by
pushing a custom TranslationService to the root context e.g. through an
addon. The default on pushed to the context by the E4Application is
created through TranslationProviderFactory.

I'd suggest you:
a) get the original one in your addon
b) push a custom one and delegate to the original one if you are not in
charge

Tom

On 06.01.14 13:24, Bastian Wagenfeld wrote:
> Hi,
>
> is it possible to configure my E4-Application to not search for the
> bundle.properties in the standard folder (OSGI-INF/l10n), but in a
> custom one, maybe even in another plugin?
>
> Thanks for any kind of help.
>
> Best regards
> Bastian
Re: Externalize strings from fragements in specified file [message #1228421 is a reply to message #1228116] Tue, 07 January 2014 07:43 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
If you only want to use a different properties file than you are able to specify the location via the MANIFEST.MF file. Just set the value for Bundle-Localization.

Bundle-Localization: OSGI-INF/l10n/bundle
Re: Externalize strings from fragements in specified file [message #1228440 is a reply to message #1228421] Tue, 07 January 2014 08:37 Go to previous message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi,

thanks to both of you. This helped a lot. Seems I skipped this part in the vogella tutorial.

Best regards
Bastian
Previous Topic:Missing esteemed features of "E3" workbench inside E4
Next Topic:Issue with minimized PartStacks as replacement for FastViews
Goto Forum:
  


Current Time: Thu Apr 25 19:23:43 GMT 2024

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

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

Back to the top