質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top