balazs-endresz / jquery-translate

Automatically exported from code.google.com/p/jquery-translate
5 stars 5 forks source link

didn't determine russian language automaticly in text "семинар по Дзёдо" #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to translate text by this function:
$.translate( 'семинар дзёдо', 'en',  function(translation){
            alert(translation); 
});

but this version work fine:
$.translate( 'семинар дзёдо', 'ru', 'en',  function(translation){
            alert(translation); 
});

What is the expected output? What do you see instead?
expected output is "Seminar Jodo", but I didn't see anything

What version of the product are you using? On what operating system?
version 1.4.6, Windows 7, Firefox 3.6.8

Please provide any additional information below.

Original issue reported on code.google.com by shogunc...@gmail.com on 11 Aug 2010 at 10:42

GoogleCodeExporter commented 9 years ago
The error callback will tell you that it couldn't reliably detect the source 
language:

jQuery.translate('семинар дзёдо', 'en', {
  complete: function(translation){alert(translation);},
  error: function(err){alert(err.message);}
});

However, it works fine from the web interface:

http://translate.google.com/#auto|en|%D1%81%D0%B5%D0%BC%D0%B8%D0%BD%D0%B0%D1%80%
20%D0%B4%D0%B7%D1%91%D0%B4%D0%BE

You should file a bug here: 
http://code.google.com/p/google-ajax-apis/issues/list

Original comment by balazs.endresz on 11 Aug 2010 at 1:47