简体   繁体   English

在代码中更改eclipse插件的语言

[英]Change language of eclipse plugin in code

I am developing eclipse rcp application, it is supporting English and German language, and we are using -Duser.language=de parameter to change the application language. 我正在开发eclipse rcp应用程序,它支持英语和德语,并且我们使用-Duser.language = de参数来更改应用程序语言。

Now the problem is I have used eclipse help plugin to display help and created toc contents for the same. 现在的问题是我已经使用了eclipse帮助插件来显示帮助并为此创建了toc内容。 Help is displaying properly but there is one issue, In Help dialog, it is still showing title in english ie Help . 帮助可以正确显示,但是有一个问题,在“帮助”对话框中,它仍以英文显示标题,即“帮助”。

Please let me know how to change the eclipse API language when application is running on different language apart from english. 当应用程序以除英语之外的其他语言运行时,请让我知道如何更改eclipse API语言。

Eclipse uses the -nl locale command line argument - this is equivalent to setting the osgi.nl environment variable. Eclipse使用-nl locale命令行参数-这等效于设置osgi.nl环境变量。

More on the command line arguments here 此处更多关于命令行参数的信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM