用于多个 lang.properties 文件的 Java 属性文件编辑器?

发布于 2024-09-18 12:43:26 字数 605 浏览 2 评论 0 原文

我有一个应用程序在启动时读取包含键/值的 .properties 文件,其中键绑定到文件中的项目,值是正确语言的一些文本(也在启动时确定):

http://www.linuxtopia.org /online_books/eclipse_documentation/eclipse_birt_report_guide/topic/org.eclipse.birt.doc/birt/eclipse_birt_report_localization.20.1.html

目前我需要支持 3 种语言,维护这 3 个文件很痛苦,因为我需要确保它们始终包含相同的键和翻译值。

是否有任何好的 .properties 文件编辑器用于此目的,可以使维护更容易?

如果编辑器在第一列中显示所有键并在后面的列中显示语言值(每种语言一列),那就太好了。

I have an application that reads a .properties file at start up containing key/values where the key is bound to an item in a file and the value is some text in the correct language (also determined at start up):

http://www.linuxtopia.org/online_books/eclipse_documentation/eclipse_birt_report_guide/topic/org.eclipse.birt.doc/birt/eclipse_birt_report_localization.20.1.html

Currently I need to support 3 languages and its a pain to maintain these 3 files since I need to make sure they always contain identical keys and translated values.

Does there exist any good .properties file editors for this purpose that would make maintenance easier?

It could be nice if an editor in the first column shows all the keys and in the following columns shows the language values (one column for each language).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三月梨花 2024-09-25 12:43:26

您应该尝试一下 Eclipse ResourceBundleEditor 插件

让您可以在一个屏幕中管理所有本地化属性文件。一些功能:排序键、缺少键/值的警告图标、与 Unicode 的转换、键的分层视图等等

You should give the Eclipse ResourceBundleEditor plugin a try.

Lets you manage all localized properties files in one screen. Some features: sorted keys, warning icons on missing keys/values, conversion to/from Unicode, hierarchical view of keys, more

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文