Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Externalizing strings to feature.properties fails
Externalizing strings to feature.properties fails [message #50020] Tue, 10 March 2009 17:39 Go to next message
Zviki Cohen is currently offline Zviki CohenFriend
Messages: 25
Registered: July 2009
Junior Member
Hi,

I'm trying to externalize my Strings from my feature.xml to
feature.properties and from my plugin.xml to plugin.properties. I followed
numerous examples, but it just fails. I'm using the correct notations, I'm
including the feature.properties in my binary build, the feature is
packaged correctly in the JAR. However, when I install it, I still get the
featureName constant instead of the actual name.

BTW, should the substitution work when launching and debugging through
PDE, too?

Thanks,
Zviki
Re: Externalizing strings to feature.properties fails [message #50169 is a reply to message #50020] Wed, 11 March 2009 13:38 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 3/10/2009 1:39 PM, Zviki wrote:
> Hi,
>
> I'm trying to externalize my Strings from my feature.xml to
> feature.properties and from my plugin.xml to plugin.properties. I
> followed numerous examples, but it just fails. I'm using the correct
> notations, I'm including the feature.properties in my binary build, the
> feature is packaged correctly in the JAR. However, when I install it, I
> still get the featureName constant instead of the actual name.
> BTW, should the substitution work when launching and debugging through
> PDE, too?

The manifest file must include a line like this:
Bundle-Localization: plugin

(where "plugin" is the name of the file that contains the externalized
strings, eg "plugin.properties").

For a feature, it is usually
Bundle-Localization: feature

(with a corresponding "feature.properties" file).

Hope this helps,
Eric
Re: Externalizing strings to feature.properties fails [message #593125 is a reply to message #50020] Wed, 11 March 2009 13:38 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 3/10/2009 1:39 PM, Zviki wrote:
> Hi,
>
> I'm trying to externalize my Strings from my feature.xml to
> feature.properties and from my plugin.xml to plugin.properties. I
> followed numerous examples, but it just fails. I'm using the correct
> notations, I'm including the feature.properties in my binary build, the
> feature is packaged correctly in the JAR. However, when I install it, I
> still get the featureName constant instead of the actual name.
> BTW, should the substitution work when launching and debugging through
> PDE, too?

The manifest file must include a line like this:
Bundle-Localization: plugin

(where "plugin" is the name of the file that contains the externalized
strings, eg "plugin.properties").

For a feature, it is usually
Bundle-Localization: feature

(with a corresponding "feature.properties" file).

Hope this helps,
Eric
Previous Topic:Headless Build and Debug Info
Next Topic:Can't get logging to console to work
Goto Forum:
  


Current Time: Fri Apr 19 05:21:14 GMT 2024

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

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

Back to the top