RCP设置Plugin.properties
2013-07-18 11:12
197 查看
Localization in RCP plugins is usually done by including translations in a property file and using their id in plugin.xml.
I spend some time lately trying to understand why some translations were not used in my application althoughthey were correctly displayed in PDE.
Answer : when using plugin.properties, you MUST include the following line in the plugin manifest :
Otherwise, PDE will show the translated text, but your app won’t.
Strangely, I had to edit the manifest manually because I couldn’t find a way to enable plugin localization in PDE. Some other plugins of my application already had this line, but I don’t remember adding it. Maybe Eclipse templates have changed since I created
my first plugins (using Eclipse 3.1).
I spend some time lately trying to understand why some translations were not used in my application althoughthey were correctly displayed in PDE.
Answer : when using plugin.properties, you MUST include the following line in the plugin manifest :
Bundle-Localization: plugin
Otherwise, PDE will show the translated text, but your app won’t.
Strangely, I had to edit the manifest manually because I couldn’t find a way to enable plugin localization in PDE. Some other plugins of my application already had this line, but I don’t remember adding it. Maybe Eclipse templates have changed since I created
my first plugins (using Eclipse 3.1).
相关文章推荐
- RCP: MANIFEST.MF, plugin.xml, build.properties三种文件的区别
- RCP 工程中 MANIFEST.MF, plugin.xml, build.properties三种文件的区别
- RCP中的Plugin.properties不起作用的解决方法
- RCP: MANIFEST.MF, plugin.xml, build.properties三种文件的区别
- RCP中的Plugin.properties不起作用的解决方法
- ecliipse RCP在产品化时用了plugin.properties的%keyName无效的解决方案
- rcp(插件开发) plugin.xml 国际化中文未出现?
- rcp的table单元格设置为可编辑
- Android SystemProperties设置/取得系统属性的用法总结(转)
- 将properties文件的配置设置为整个Web应用的全局变量实现方法
- Eclipse开发RCP项目的plugin.xml详解
- cordova-plugin-splashscreen设置启动页面和图标
- rcp(插件开发)获取Plugin/Bundle中文件资源的绝对路径
- html-webpack-plugin 中使用 title选项设置模版中的值无效
- Android : 反射机制获取或设置系统属性(SystemProperties)【转】
- RCP中Perspective中,设置各个view的大小比例
- Spring设置与读取.properties配置文件的bean
- Android Properties设置与获取
- Android 的系统属性(SystemProperties)设置分析
- Eclipse plugin & RCP technology guide (1) - Introduction of Eclipse and Eclipse plugin