Click here to Skip to main content
15,886,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 26-Aug-10 3:19am
v2
Comments
Dalek Dave 26-Aug-10 9:20am    
Minor Edit for Grammar.
Simon_Whale 26-Aug-10 9:33am    
Whats the error? is this happening on a development environmnet or production? is the error limit to a specific operating system or browser?

More information is needed to help more
Sandesh M Patil 26-Aug-10 9:58am    
Please elaborate your question which errors occurred and provide code.
Sandeep Mewara 26-Aug-10 13:14pm    
What do you mean by 'using Google API' for localizing. Are you using it for translating words in other locale or you are using the translation API directly in your application showing live conversions for multiple languages?

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.
 
Share this answer
 
Comments
krishnaMurali 2-Sep-10 5:00am    
ok, iam using another method :taking seperate folders for each language and adding static text
tahnks for ur reply
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.
 
Share this answer
 
i added google .api.translator in my asp.net app . now i want to add code .
how it possible??
help plz..

its urgent..
 
Share this answer
 
v2
Comments
Milan2709 6-Aug-13 8:27am    
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}
</script>

<div id="google_translate_element">

</div>
C#
<pre lang="CSS"><pre lang="c#">
 
Share this answer
 
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}




 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900