asp.net中的谷歌语言翻译 [英] google language translator in asp.net
问题描述
我正在使用Google.API.Translate.Translator.Translate本地化我的应用程序,一切正常。
然而,应用程序性能变得非常缓慢,有时也会出错。
有什么解决办法吗?
提前致谢
你可以做几件事
1 - 写如果您认为谷歌需要花费太长时间,请使用自己的翻译器
2 - 阅读文档以了解是否有任何方法可以优化您正在进行的调用。
这是另一个使用Google翻译的东西,你只需要知道它是什么JSON,例如:
http: //ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=hello%20world&langpair=en%7Car
文档:< a href =http://code.google.com/apis/ajaxlanguage/documentation/> http://code.google .com / apis / ajaxlanguage / documentation /
也许(我不是你在你的申请中所做的),你慢慢申请的原因,你是时候翻译每个单词,而不是一次翻译所有单词。许多请求/响应+低比特率=非常慢的应用程序
。尝试一次翻译所有单词并在翻译前用分隔符分隔它们。
我在我的asp.net应用程序中添加了google .api.translator。现在我想添加代码。
怎么可能?
帮助PLZ ..
紧急..
Hi,
I am using Google.API.Translate.Translator.Translate to localize my application and all works fine.
However, the application performence became very slow and some times gives error also.
Is there any solution to this?
Thanks in advance
You could do a couple of things
1 - write your own translator if you think the google one takes too long
2 - read the documentation to see if there's any way to optimise the calls you're making to it.
this is another stuff to translate by using Google, you need just to know what it's "JSON", example :
http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=hello%20world&langpair=en%7Car
documentation : http://code.google.com/apis/ajaxlanguage/documentation/
maybe (I don't what you've do in your application), reason for your slowly application, is you translate each word at time, not all words in one time.many requests/responses + low bit-rate = very slow application
. try to translate all words in one time and separate them by delimiter before translation.
i added google .api.translator in my asp.net app . now i want to add code .
how it possible??
help plz..
its urgent..
这篇关于asp.net中的谷歌语言翻译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!