管理Java属性文件的本地化 [英] Managing the localization of Java properties files

查看:112
本文介绍了管理Java属性文件的本地化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用Java编写的Web应用程序,它定位于几个国家,所有这些国家都使用不同的语言(通常是几种语言 - 欧洲适合您)。

I have a Web application written in Java that is targeting several countries, all of which speak different languages (and more often than not, several languages -- that's Europe for you).

我们有一堆 .properties 文件,其中包含本地化字符串,我们当前的程序是通过电子邮件将特定于语言的文件发送给我们的合作伙伴在进行重大更新之前进行更新。

We have a bunch of .properties files that hold the localized strings, and our current procedure is to e-mail the language-specific files to our partners for updating before doing major updates.

然而,这个过程相当容易出错,因为有时人们会忘记翻译新字符串,有时新字符串不会被添加到每个字符串中语言文件,因此小错误很容易通过。

However, this process is rather error-prone, as sometimes people forget to translate new strings and sometimes new strings don't get added to every language file, thus small mistakes get through very easily.

有没有人知道任何可以帮助我们清除这个混乱的现有软件?

Does anyone know of any existing software that could help us clear this mess?

至少,我正在考虑允许您加载主文件(例如,英文),本地化文件,然后突出显示添加或删除的键的内容。主文件。

At a bare minimum, I'm thinking of something that would allow you to load a master file (for example, in English), a localized file and then would highlight the keys that were added to or removed from the master file.

推荐答案

我使用了 Jinto 该目的以及 EPFE (旧版本,尚未尝试过最新版本)。

I've used Jinto for that purpose as well as EPFE (older version, haven't tried the newest one).

这两个都是Eclipse插件,如果你可以通过他们将重新排序资源包中的密钥的事实,两者都相当不错。然后还有 Babel - 我没有亲自尝试过,所以我不知道它有多好是。

Both are Eclipse plug-ins, both are quite decent if you can get past the fact that they will reorder keys in your resource bundles. Then there's also Babel - I haven't tried it personally so I don't know how good it is.

这篇关于管理Java属性文件的本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆