Community
Participate
Working Groups
When an NLS properties file is renamed PDE needs to respect the fact that the value of the Bundle-Localization header is not a filename, but rather a prefix for all localization properties file. For example, given the following: META-INF/ MANIFEST.MF Bundle-Localization: OSGI-INF/l10n/plugin OSGI-INF/ l10n/ plugin.properties Renaming plugin.properties to plugin_de.properties results in the manifest header changing to: Bundle-Localization: OSGI-INF/l10n/plugin_de In this case the header should NOT have been changed. I am not saying that the Bundle-Localization header never needs changing in response to a rename, for example: Renaming the file bundle.properties should result in the manifest header changing to: Bundle-Localization: OSGI-INF/l10n/bundle The rename must detect the underscore followed by a country code, and an optional underscore and language code. Tricky indeed.
Created attachment 117018 [details] patch to make Simon happy :)
Created attachment 117019 [details] mylyn/context/zip
Comment on attachment 117018 [details] patch to make Simon happy :) Thanks Benjamin!
done. > 20091104 Benjamin, I had to change the sTrim.replace to sTrim.replaceAll due to the J2SE-1.4 limitation. Thanks!
Arg! See bug 244369 ... :) Thanks for the correction, Chris!