Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problem with Bundle-Localization(Bundle-Localization is not working when testing application in Eclipse)
Problem with Bundle-Localization [message #1009616] Fri, 15 February 2013 06:42 Go to next message
Alexander Fichtinger is currently offline Alexander Fichtinger
Messages: 8
Registered: January 2013
Junior Member
Hy,

we are making our first steps with E4 and we have the following problem:

We have .properties-Files in the following location:
core.ui.bundle.resources.translation

This package is located in the Source-Folder src/main/resources to comply with Maven standards.


The name of the .properties-Files starts with messages, so in our MANIFEST.MF we have the following Bundle-Localization:

Bundle-Localization: core/ui/bundle/resources/translation/messages


If we are exporting the product everything works fine, but if we are testing our application over the .product-File (Launch an Eclipse application), only the Key-Values of the texts are shown.

In the MANIFEST.MF the warning "Folder specified for localization does not exist" is shown.
I know why the error occurs, because when we are starting the application directly in Eclipse then the Bundle-Localization have to be the following:

Bundle-Localization: src/main/resources/core/ui/bundle/resources/translation/messages

So this is my question:
How can we manage the different Bundle-Localizations that we need?

Thanks for all answers in advance Smile

Regards
Alex



Re: Problem with Bundle-Localization [message #1015297 is a reply to message #1009616] Thu, 28 February 2013 01:36 Go to previous message
Alexander Fichtinger is currently offline Alexander Fichtinger
Messages: 8
Registered: January 2013
Junior Member
Hello,

finally we fixed our problem. Here is the solution if anybody has the same problem:

We put our .properties-Files in the folder OSGI-INF\l10n (according to OSGi-Standard). Furthermore we renamed the .properties-Files to bundle.properties and bundle_de.properties.

Because "OSGI-INF\l10n" is the default location for such .properties-Files everything works fine.

The .properties-Files are always found, it doesn't matter if we start our application out of eclipse or outside of eclipse.
Previous Topic:Eclipse editor tooltip (x-post from Eclipse 4)
Next Topic:exportWizards, control the "Export select" window
Goto Forum:
  


Current Time: Fri Jul 25 05:02:11 EDT 2014

Powered by FUDForum. Page generated in 0.07572 seconds