I've been using the enum ( for (l in google.language.Languages){ ...)
to get a list of languages and then screening them with
google.language.isTranslatable(google.language.Languages[l]) which has
worked just fine up until today. Now languages which are not on the
supported language translation pairs list (http://code.google.com/apis/
ajaxlanguage/documentation/#SupportedPairs) return true from
isTranslatable(), but result in a 400 error ("invalid translation
language pair"), e.g. Macedonian (mk). I haven't found all of them,
but quite a few seem to be doing this.

I'm hoping this is a temporary issue due perhaps to new languages, but
even then, it seems they should pass isTranslatable() until they in
fact are. Anyone have any more info on this?

//test script
google.load("language", "1");
google.setOnLoadCallback(init);
function init(){
        console.log(google.language.isTranslatable(google.language.Languages
['MACEDONIAN'])); //returns true
        google.language.translate('hi', 'en', 'mk', function(result) {
                console.log(result); //returns error object
        });
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" 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-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to