TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

"this gem is awesome".to_spanish # = "esta joya es impresionante"

94 点作者 vrish88超过 14 年前

8 条评论

alvatar超过 14 年前
Just in case you didn't know, and you have plans to actually use Google Translate for translating web pages into Spanish... please don't. I haven't seen a single sentence with more than 3-4 words translated properly from English to Spanish. Even the examples shown in the README make no sense in Spanish.
评论 #2095650 未加载
评论 #2096586 未加载
callmeed超过 14 年前
What's causing this?<p><pre><code> ruby-1.8.7-p302 &#62; "Where is the bathroom?".to_spanish =&#62; "\302\277D\303\263nde est\303\241 el ba\303\261o?"</code></pre>
评论 #2095304 未加载
评论 #2095169 未加载
评论 #2095174 未加载
评论 #2095172 未加载
swah超过 14 年前
Translate fail already... user won't understand that 'joya' means a Ruby gem :)
评论 #2096681 未加载
stevenbedrick超过 14 年前
Since this gem appears to use Google's public API, one important thing to keep in mind is that there's probably a hard limit on the amount of text that can be translated at one go. I've found that throwing more than a thousand or so characters at GT's API results in their server throwing "URI too long" errors, since it only works via HTTP GET.<p>Disclaimer: This might have changed in the five or six months since I last messed around with Google's API, or, alternatively, this gem could be doing something clever to try and get around the problem. Either way, I'd suggest checking it out.
评论 #2096856 未加载
mjuhl24超过 14 年前
This is cool, but no one should ever use this. I've used the google translator frequently, and while it's good, it always requires me to use my knowledge of the language I'm translating to in order to create a more correct and meaningful translation. If you really want a site or app that is multilingual, you need a human with good knowledge of the language to do your translations.
jbpr超过 14 年前
Another similar project: <a href="https://github.com/caius/gtranslate" rel="nofollow">https://github.com/caius/gtranslate</a>
dholowiski超过 14 年前
This is why even us die hard php coders sometimes yearn for RoR. .to_spanish !
评论 #2095215 未加载
评论 #2095315 未加载
评论 #2095904 未加载
djhworld超过 14 年前
how does the gem failover if the machine it is being used on isn't connected to the internet?
评论 #2095638 未加载