WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.65k stars 1.02k forks source link

glosbe machine translation is still not working #1027

Closed paulpach closed 8 years ago

paulpach commented 8 years ago

Steps to reproduce

  1. add trans.machine.glosbe.GlosbeTranslation to MACHINE_TRANSLATION_SERVICES
  2. restart weblate
  3. log in as admin
  4. click on any string to translate
  5. click on machine translation

    Expected behaviour

I expect to see a machine translation of my source string into the current language

Actual behaviour

"The request for machine translation using Glosbe has failed: MachineTranslationError: HTTPError: HTTP Error 400: Bad Request"

Note you already fixed #1026, but it is still not working even if I am already logged in as admin. The request now seems to go all the way to glosbe, but it still failing.

Maybe they changed their api?

Server configuration

Please paste here output of ./manage.py list_versions

I will provide this later today if required

nijel commented 8 years ago

The API works just fine and it works correctly for me, so it's most likely something in your server setup now. Isn't Openshift blocking outgoing connection in some way?

Also what is your setting of SOURCE_LANGUAGE? Setting it to some strange value might have this outcome (see also #1028).

nijel commented 8 years ago

Ah, Openshift settings has default SOURCE_LANGUAGE = 'en-us', so please change it to SOURCE_LANGUAGE = 'en' and Glosbe will work.