已经为德语安装了 Babel。 Eclipse 中的应用程序 运行 现在是德语,但导出为 "Eclipse product" 仍然是英语

Have installed Babel for german language. Application run in Eclipse is now german, but exported as "Eclipse product" is still english

我目前正在将 Eclipse RCP 应用程序从 3.0 迁移到 4.4。该应用程序使用了很多自定义操作(扩展 class Action)。 os这些动作都是德式的,因为我可以用我自己的language-files。 但是应用程序还使用了class ActionFactory 的动作RESET_PERSPECTIVE。因为这是一个系统操作,我无法手动设置文本。还有关于window的标题栏是英文的

所以我安装了德文babel语言包。现在,我的 Eclipse 本身是德语的,当我 运行 Eclipse 中的应用程序使用我的 运行 配置时,该应用程序完全是德语的。但是当我将应用程序导出为 Eclipse 产品时,RESET_PERSPECTIVE 操作和关于对话框的标题栏仍然是英文的。

我的运行配置

程序参数:-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog

虚拟机参数:-Dosgi.requiredJavaVersion=1.7 -Xms40m -Xmx512m

参数.product-file

程序参数: -os win32 -ws win32 -arch x86_64 -nl de_DE -consoleLog

虚拟机参数: -Dosgi.requiredJavaVersion=1.8 -Xms40m -Xmx512m -Duser.language=de -Duser.country=DE

我还尝试将一些 nl_plugins 添加到我的 .product-file 的依赖项中,但我不知道该选择哪个,如果我尝试添加所有,我会得到错误信息:

Processing inclusion from feature
org.eclipse.pde.container.feature: Bundle org.eclipse.core.filesystem.java7.nl_de_4.4.0.v20150804
100819 failed to resolve:
Host plug-in org.eclipse.core.filesystem.java7_0.0.0 has not been found.

但我什至不确定这是否是正确的方法。

编辑

我还尝试使用 productname.exe -nl de 从命令行 运行 我的 Eclipse 产品的启动器,但这也不起作用。

您的方向是正确的,您需要将“.nl_de”片段添加到您的产品配置中。

您的构建可能不包含这些(您可以查看输出 "plugins" 目录)。所以所有的语言参数都无济于事。

您收到的错误是因为您添加了“.nl_de”片段(org.eclipse.core.filesystem.java7.nl_de...)和主机包(org.eclipse.core.filesystem。 java7) 不是配置的一部分。所以你必须从产品配置中删除这个片段。也许其他人也一样。