Internationalized strings in Eclipse plugin.xml file are not found when installed in Eclipse applica

Posted by Ed on Stack Overflow See other posts from Stack Overflow or by Ed
Published on 2010-05-06T08:12:06Z Indexed on 2010/05/17 20:30 UTC
Read the original article Hit count: 517

Hi,

I have created 2 plugins, implementing an ODA driver plugin and its UI plugin for the BIRT extension to Eclipse.

My plugins both work as expected when eclipse starts up another eclipse application where I can then test the plugins I am developing. However, when I install my plugins into an Eclipse application and then start it from a Windows shortcut, the plugins work but and language keys specified in the plugin.xml files are not found.

For example, in my plugin.xml file for the ODA Driver plugin I set the attributes 'id' to '%oda.data.source.id' and the data source 'defaultDisplayName' to '%data.source.name'. I then, in a file 'language.properties', have defined the values for both of these keys (where the keys don't have the preceeding % character).

When running the plugins that have been installed into the dropins/plugins directory of an Eclipse application, the wizard for creating my ODA data source names is as '%data.source.name' and saves the data source in the rptdesign (XML) file with an ID of '%oda.data.source.id'.

Since 'language' is not the default name for the properties file I went into the manifest for both plugins and changed the 'Bundle-Localization' attribute to 'language'. The language file is located in the root directory of both of my plugins.

The properties file is definitely found, since I use the two language files to store other strings used by the plugins, looked up using a java ResourceBundle. The strings are always found whether the plugins are run from Eclipse application loading another, or when properly installed in the dropins/plugins directory of an Eclipse application.

Why are the installed plugins not finding language keys reference in the plugin.xml files? There are not errors in the logs and the language.properties files are clearly accessible...

Thanks in advance.

© Stack Overflow or respective owner

Related posts about eclipse-plugin

Related posts about plugin.xml