火狐 翻译插件_即时语言翻译进入Firefox

Web开发者Dave Trainer推出了一款Greasemonkey脚本GMtranslator,为Firefox添加了即时翻译功能。用户可以选择多种语言进行翻译,只需点击要翻译的文本,脚本利用Google AJAX Language API进行翻译。虽然翻译质量依赖于Google的机器翻译,存在延迟,且不能一键全页翻译,但对于快速理解外语网站内容很有帮助。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

火狐 翻译插件

alt

When Google released their AJAX Language API last March, I had high hopes that a lot of cool new applications would be created that might allow me to experience parts of the web that were previously incomprehensible. There is potential for a number of applications that go far beyond simple localization.

当Google于去年三月发布他们的AJAX语言API时 ,我寄予厚望,将创建许多很棒的新应用程序,这些应用程序可能使我能够体验以前难以理解的网络部分。 许多应用程序的潜力远远超出了简单的本地化。

“I’m not sure how fast the API is, but how about on-the-fly translation for instant messaging? Certainly Google’s machine translation is far from perfect, but imagine being able to have a conversation with someone in two languages where you’re only exposed to your native tongue,” I wrote at ReadWriteWeb.

“我不确定API有多快,但是即时消息的即时翻译又如何呢? 当然,谷歌的机器翻译远非完美,但可以想象与两种语言的人进行对话,而您只用母语就可以。”我在ReadWriteWeb上写道

Web developer Dave Trainer, who left a comment on my post about the Language API last March, has now released a really cool Greasemonkey script that adds (almost) instant translation to Firefox. Once you install the script, called GMtranslator and which you can download via Trainer’s blog, any site on the script’s white list displays a small translation controls box in the lower right hand corner of the screen.

Web开发人员Dave Trainer于去年3月在我有关Language API的帖子中发表了评论,现在已经发布了一个非常酷的Greasemonkey脚本,该脚本向Firefox添加了(几乎)即时翻译。 一旦安装了名为GMtranslator的脚本,并且可以通过Trainer的博客下载该脚本,该脚本白名单上的任何站点都会在屏幕的右下角显示一个小的翻译控件框。

alt

The script can translate between English, Portuguese, Spanish, German, French, Italian, and Swiss. You simply click on the language you want to translate to, and then click on the text you want translated. You don’t have to tell the script which language you’re translating from — Google’s API can generally figure it out from context — and the text selection is done via JavaScript using the jQuery framework.

该脚本可以在英语,葡萄牙语,西班牙语,德语,法语,意大利语和瑞士语之间进行翻译。 您只需单击要翻译的语言,然后单击要翻译的文本。 您不必告诉脚本您要翻译的是哪种语言-Google的API通常可以从上下文中了解它-文本选择是通过使用jQuery框架JavaScript完成的。

The script does have a few downsides. First, it’s not really instant. There is some lag while it pings the Google AJAX Language API and waits for a response, which means that my dream of instant, seamless translated chat is still not quite possible (but certainly plausible). Second, you can only select text to translate in blocks, rather than the whole page at once, which is sort of clunky. It would be great if you could set the script to automatically translate pages into the preferred language without having to manually select the text to be translated at all.

该脚本确实有一些缺点。 首先,它不是真正的即时性。 在ping通Google AJAX语言API并等待响应时会有些滞后,这意味着我实现即时,无缝翻译聊天的梦想仍然不太可能实现(但肯定是可行的)。 其次,您只能选择要以块为单位翻译的文本,而不是一次选择整页,这有点笨拙。 如果您可以将脚本设置为自动将页面翻译成首选语言,而不必手动选择要翻译的文本,那就太好了。

The translations themselves are only as good as Google’s machine translation, which means that they’re serviceable, but far from perfect. No professional translators are going to be put out of business. Still, GMtranslator for Greasemonkey is going onto my list of must-have Firefox add-ons and will definitely come in handy translating news on blogs from other countries.

翻译本身仅与Google的机器翻译一样好,这意味着它们是可服务的,但远非完美。 没有专业的翻译人员会破产。 尽管如此,用于Greasemonkey的GMtranslator仍在我的必备Firefox附加组件列表中,并且肯定会派上用场翻译来自其他国家/地区的博客上的新闻。

Update: Google announced today that it has added a similar feature to Google Reader. The “Translate into my language” option will automatically translate blog posts into your native language. The feature is a 20% project and is presumably based on the same API that Trainer’s Greasemonkey script uses. Very cool.

更新: Google今天宣布,它已向Google Reader 添加类似的功能 。 “翻译成我的语言”选项将自动将博客文章翻译成您的母语。 该功能是一个20%的项目,并且大概基于Trainer的Greasemonkey脚本使用的相同API。 很酷。

翻译自: https://www.sitepoint.com/instant-language-translation-comes-to-firefox/

火狐 翻译插件

### 推荐的 Firefox 网页翻译插件 对于希望提升网页阅读体验的用户来说,选择一款合适的网页翻译插件至关重要。以下是几款经过验证、功能强大的翻译插件推荐: #### 1. **Translate Web Pages** 这款插件能够提供全面的网页翻译解决方案[^2]。它不仅支持整页翻译,还允许用户通过划词的方式快速获取特定词语或短语的翻译结果。其主要特点如下: - 支持多种主流翻译引擎,包括 Google Translate、Yandex.Translate 和 Bing Translator。 - 提供便捷的操作方式,无论是单击还是右键菜单均可触发翻译功能。 示例代码展示如何调用简单的 JavaScript API 实现基础翻译逻辑(仅作演示用途): ```javascript function translateText(text, targetLanguage) { const apiUrl = `https://translation.googleapis.com/language/translate/v2?key=YOUR_API_KEY&q=${encodeURIComponent(text)}&target=${targetLanguage}`; fetch(apiUrl).then(response => response.json()).then(data => console.log(data)); } ``` #### 2. **DeepL Translator Add-on** 作为一款专注于高质量机器翻译的服务提供商,DeepL 的扩展程序同样表现出色[^4]。它的优势在于精准度高以及对复杂句式的理解能力更强。具体特性如下: - 集成了 DeepL 自家先进的神经网络技术; - 能够处理文档类型的多语言转换需求,比如 PDF 文件中的文字提取与即时双语文档生成。 #### 3. **GTransLite (Google Translate Lite)** 如果偏好轻量级工具的话,则可以考虑 GTransLite 这样的选项[^1]。尽管体积小巧但功能性毫不逊色于其他同类产品,适合日常简单场景下的应用。亮点概述如下所示: - 基于 Google Translation Service 构建而成; - 用户界面简洁直观易于操作; 综上所述,在挑选适合自己使用的 firefox 浏览器上的网页翻译插件时应综合考量个人实际需要如是否经常涉及专业技术术语或者文学作品等内容形式差异等因素再做决定[^3]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值