Externalizing strings to feature.properties fails [message #50020] |
Tue, 10 March 2009 13:39  |
Eclipse User |
|
|
|
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 09:38  |
Eclipse User |
|
|
|
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 09:38  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.17899 seconds