您有何建议:作为语言翻译的有效方法?

发布于 2024-10-05 03:39:52 字数 251 浏览 2 评论 0原文

使网站跨语言友好被认为是下一个趋势。在这种情况下……就开发复杂性而言,哪种方法被认为是好的、高效的。

我知道的可用选项是

  • 上传内容是我单独需要的每种语言(如果我有多种语言,这有点不友好)
  • 使用Google Translation(但我不喜欢这个,因为它在顶部显示谷歌标题)

还有其他方法可以将内容翻译成另一种语言吗?根据性能、编码时间和灵活性等因素,哪一个是有效的。

Making a website cross-language friendly is being considered as the NEXT TREND. On this situation.. what method would be considered as good, efficient in terms development complexity.

The available options I Know are

  • Uploading the content is each languages I need separately (which is a little unfriendly, if I have wide range of languages)
  • Using Google Translation (But I don't like this, as it shows google header at the top)

Are there any other ways to translate content to another language? and Which one of them is efficient based on the factors like: performance, coding time and flexibility.

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

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

发布评论

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

评论(1

擦肩而过的背影 2024-10-12 03:39:52

首先,我必须同意 Ignacio 的观点,没有什么比人工翻译更好的了,如果你没有时间,那么一旦有人输入新文本,它就可以使用 GTranslate api 以不同的语言进行解析,然后保存到数据库并提供给用户根据自己喜欢的语言,使用不显示任何谷歌翻译徽标的 gtranslate api 检查一下:

<?php
require("GTranslate.php");

 try{
       $gt = new Gtranslate;
       echo "Translating [Hello World] from English to German => ".$gt->english_to_german("hello world")."<br/>";
        echo "Translating [Ciao mondo] Italian to English => ".$gt->it_to_en("Ciao mondo")."<br/>";
 } catch (GTranslateException $ge)
 {
       echo $ge->getMessage();
 }
?>

您可以将翻译后的文本保存在数据库中,而不是 echo,就像有许多人工翻译时一样。

您可以从 Google 代码上的 GTranslate 下载 GTranslate api

For start i would have to agree with Ignacio , nothing beats a human translator , if you don't have the time then once somebody enters new text it could get parsed in different languages with GTranslate api , and then saved to database and feeded to the user based on his prefered language , using gtranslate api whont show any google translate logo check this out :

<?php
require("GTranslate.php");

 try{
       $gt = new Gtranslate;
       echo "Translating [Hello World] from English to German => ".$gt->english_to_german("hello world")."<br/>";
        echo "Translating [Ciao mondo] Italian to English => ".$gt->it_to_en("Ciao mondo")."<br/>";
 } catch (GTranslateException $ge)
 {
       echo $ge->getMessage();
 }
?>

Instead of echo you could save the translated text inside a database just like you would do it if there where a number of human translators .

You can download GTranslate api from GTranslate on Google Code

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