woodruffw / yossarian-bot

An IRC bot with a bunch of features.
Other
30 stars 20 forks source link

Google Translate Alternative #33

Open woodruffw opened 8 years ago

woodruffw commented 8 years ago

The GoogleTranslate plugin is no longer functional, following Google's removal of an unofficial API.

Alternatives:

grassiricardo commented 6 years ago

@woodruffw Hi, could you explain to me better what is not working?

woodruffw commented 6 years ago

Hi @grassiricardo,

The old, unofficial Google Translate API was taken down a few years ago. As a result, the !tr (GoogleTranslate) plugin stopped working.

This issue is a request for someone to find either a new API or a new solution to replace the old, now broken plugin.

If you want to see the old code, take a look at google_translate.rb in the old_plugins directory. Keep in mind that it no longer works, but it might help explain what the plugin originally did.

grassiricardo commented 6 years ago

@woodruffw Do you need a new solution then to replace the google translate API? type this: https://github.com/mynewsdesk/translate

Or am I misunderstanding?

woodruffw commented 6 years ago

Do you need a new solution then to replace the google translate API?

Yep.

https://github.com/mynewsdesk/translate looks like an i18n plugin for Rails. This isn't a Rails project, and it looks like that plugin hasn't been updated since 2012. As such, it's not useful in this case.

What this issue needs is a new public REST API (doesn't have to be from Google) that can do translations. Figuring out what this library does might be a good start: https://github.com/matheuss/google-translate-api

winny- commented 6 years ago

Out of curiosity, what of the yandex translate plugin?

woodruffw commented 6 years ago

Out of curiosity, what of the yandex translate plugin?

AFAIK, nobody has implemented one for this bot. I'd be open to using Yandex's translation API, though.