简体   繁体   English

如何在Eclipse RCP中管理i18n属性文件?

[英]How to manage i18n properties files in eclipse rcp?

The translated Strings in Eclipse RCP are stored in *.properties files, which look as following: Eclipse RCP中转换的字符串存储在* .properties文件中,该文件如下所示:

//these keys are used in...
key1=translation
key2=translation

//these keys are used in another place...
key11=translation
key12=translation
....

Now there may be quite many strings. 现在可能有很多字符串。 It is usual to separate the strings into groups, using string's semantics. 通常,使用字符串的语义将字符串分成几组。 Eg strings for toolbar are goruped together. 例如,用于工具栏的字符串一起粘贴。

Now those groups grow, sometimes the rows are swaped. 现在这些组增长了,有时行被交换了。 If such a *properties file was extended in english, and now the Strings which are new should be translated into spanish *properties too. 如果将此类* properties文件扩展为英语,那么现在也应该将新的字符串也翻译成西班牙语* properties。

The problem is, that is hard to find the strings, which were added into the main *properties and now should be added to the spanish file too. 问题是,很难找到已添加到主要* properties中的字符串,现在也应该将其添加到西班牙文文件中。 What is the usual appoach to manage such *properties files? 管理此类* properties文件的常用方法是什么?

On our projects, we use the Resource Bundle Editor plugin . 在我们的项目中,我们使用Resource Bundle Editor插件 It allows you to edit all your properties files at once in a single window. 它使您可以在一个窗口中一次编辑所有属性文件。 Couldn't be easier. 再简单不过了。

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

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