TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

94 pointsby vrish88over 14 years ago

8 comments

alvatarover 14 years ago
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 未加载
callmeedover 14 years ago
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 未加载
swahover 14 years ago
Translate fail already... user won't understand that 'joya' means a Ruby gem :)
评论 #2096681 未加载
stevenbedrickover 14 years ago
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 未加载
mjuhl24over 14 years ago
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.
jbprover 14 years ago
Another similar project: <a href="https://github.com/caius/gtranslate" rel="nofollow">https://github.com/caius/gtranslate</a>
dholowiskiover 14 years ago
This is why even us die hard php coders sometimes yearn for RoR. .to_spanish !
评论 #2095215 未加载
评论 #2095315 未加载
评论 #2095904 未加载
djhworldover 14 years ago
how does the gem failover if the machine it is being used on isn't connected to the internet?
评论 #2095638 未加载