Question

I'm having a problem with automatic translating of website into other languages? I'm using google app engine as a platform and php as the language.I already read the translate API, but it cannot translate the whole page. The error message is "url is too long to process". I also tried this https://translate.google.com/manager/website/add but there is a dropdown to achieve the translation. Is there a way to automatically translate the website?

What is the best way to solve this?

Was it helpful?

Solution

The

url is too long to process

Means that you are using GET to get the translations and request you are sending is too big because GET methods are limited to a specific length for the request. See this for more info.

The translation API supports as most APIS do, the POST method.

Change the method that you request the translations with POST. Probably that is what @daan was talking about.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top