Closed GoogleCodeExporter closed 9 years ago
Use the latest version from the trunk!
And this: $.translate.load(301C79ACA55C1ECCD790B3131DE91DFA1205895A);
is not valid JavaScript, you have to put the ID in quotes.
Also, you can map the language codes more easily like this:
//keys must be lower case, and values must equal to a
//language code specified in the Language API
$.extend($.translate.languageCodeMap, {
"ae": "ar",
"ch": "de"
});
Original comment by balazs.endresz
on 5 Dec 2011 at 12:24
To try and get it working with the bing API I simplified it back to one of your
previous examples:
$.getScript('http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js',
function(){
$.getScript('http://code.google.com/p/jquery-translate/source/browse/trunk/jquer
y.translate-debug-all.js', function(){
$.translate.load('301C79ACA55C1ECCD790B3131DE91DFA1205895A');
$.translate(function(){
$.translate('some text to translate', 'en', 'de', function(translation){ alert(translation); })
})
});
});
This gives me the following error:
$.translate is undefined
[Break On This Error]
$.translate.load('301C79ACA55C1ECCD790B3131DE91DFA1205895A');
Not sure what I am doing wrong now :(
Original comment by twfarmre...@gmail.com
on 5 Dec 2011 at 8:27
[deleted comment]
You are loading jQuery with an other version of jQuery, you should skip that
step.
Original comment by balazs.endresz
on 6 Dec 2011 at 7:34
Original issue reported on code.google.com by
twfarmre...@gmail.com
on 3 Dec 2011 at 10:12