Thursday, July 1, 2010

PDE Good Practices: #2 Externalize bundle strings

Externalize all bundle strings.
  • Use ‘Usage of non-externalized strings’ preference




  • Enabling the preference marks all the strings that should be externalized.

  • Use 'Externalize Strings Wizard' to externalize the strings


  • 'Bundle-Localization' entry in Manifest points to the properties file containing the externalized strings.


The value 'plugin' for 'Bundle-Localization' entry means that there will be a 'plugin.properties' file in the plugin root containing the externalized strings e.g. '%Bundle-Name'.