Thanks Xi Cheng for your feedback
                     We have many english website's which all are
business directories for different countries.We want these website's
available in native languages but in many different sub domains one
for each 3 or 4 languages.We want to apply  google Language
translation API on sub domains.What i mean is in our english website
we will provide a drop down for user to select the language and when
user clicks on his/her choice of language the site should get
redirected to a sub domain of that site which will actually have same
data in 'ENGLISH' as it's main domain has but here we want google
translation API to convert this site into a language which we have set
for it.
                     For this i first used the google tranlsate API provided by
google as here i was able to set language for translation

                     "
                     function initialize() {
                                var text = 
document.getElementById("text").innerHTML;
                                google.language.detect(text, function(result) {
                                if (!result.error && result.language) {
                                        google.language.translate(text, 
result.language, "en",
                                    function(result) {
                                         var translated = 
document.getElementById("translation");
                                         if (result.translation) {
                                           translated.innerHTML = 
result.translation;
                                         }
                                   });
                                 }
                                });
                                }
                   google.setOnLoadCallback(initialize);
                   "
                But i found this API able to tranlsate only short text when it 
comes
translate whole web page this fails.Then i used Google Translate Web
Element this could translate whole website but no way to set a default
language.

                        I hope you understood the problem i am facing please 
suggest a
solution i would be most grateful

Thanks and regards,
Sheriff

-- 
You received this message because you are subscribed to the Google Groups 
"General" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-translate-general?hl=en.

Reply via email to