atykhonov / google-translate

Emacs interface to Google Translate
370 stars 48 forks source link

Fix [Listen] button url when using "auto" source #59

Closed OGAWAHirofumi closed 7 years ago

OGAWAHirofumi commented 7 years ago

Hi,

If source language is "auto", it makes url has translate_tts?tl=auto. But translate_tts doesn't accpect tl=auto, and returns 404 error or such.

So this fixes it by using auto detected language instead of "auto".

patch file

atykhonov commented 7 years ago

Thank you! Fixed in #61.