是否有脱机工作的Java翻译库? [英] Is there a Java Translation library that works offline?

查看:785
本文介绍了是否有脱机工作的Java翻译库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的需要找到一个Java翻译库,可以在法语,英语,德语等语言之间翻译
,同时不需要
互联网连接。

I really need to find a translation library for Java that can translate between languages such as french,english,german - whilst not requiring Internet connectivity.

推荐答案

据我所知,这里有两种可能。

As far as I can see, there are two possibilities here.

您正试图将您的离线应用程序国际化(i18n),在这种情况下,您本身不需要翻译库。相反,您需要使用翻译捆绑包并将应用程序中的所有可能字符串翻译为不同的语言。有关详细信息,请参阅以下链接:

You are trying to internationalize (i18n) your offline application, in which case you don't need a translation "library" per se. Instead you need to use translation bundles and translate all possible strings in your application to their different languages. See these links for more information:

Oracle i18n Doc

官方Oracle示例

Good Java i18n示例

您正试图翻译动态或用户生成的内容离线。在这种情况下,这是一个非繁琐的问题。它们可能是一些框架,但它们会非常庞大​​且笨重,而且可能不是免费的或开源的。谷歌翻译是最明显的在线翻译,即使它在一半时间内也没有正确使用。这是一个由世界上一些顶级开发人员和计算机科学家构建的系统,只处理这个问题。

You are trying to translate dynamic or user generated content offline. In which case, this is a non-trival problem. Their may be some frameworks for this, but they would be very large and unwieldy, and probably NOT free or open-source. Google Translate is the most obvious online one, and even it doesn't get it right half the time. And this is a system built by some of the top developers and computer scientists in the world working on ONLY this problem.

简而言之,您可能想重新考虑一下您的应用程序确实需要。

In short, you may want to reconsider what your application truly needs.

这篇关于是否有脱机工作的Java翻译库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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