balazs-endresz/jquery-translate

issues with   characters

GoogleCodeExporter opened this issue · 1 comments

In some cases nbsp; characters disappear, which might break the layout of the 
page.

On the other hand they might also show up as visible characters, see issue 45

Original issue reported on code.google.com by balazs.endresz on 25 Aug 2010 at 5:52

In the following example the place of the   character in the translation 
cannot be reliably determined, so it will be removed:

google.language.translate("<div>This is some   text.</div>", "en", "de", 
function(r){console.log(r.translation)})

but it stays there in this case:

$.translate("<div>   </div>", "en", "de", function(tr){console.log(tr)});

Original comment by balazs.endresz on 11 Mar 2011 at 7:40

  • Added labels: LanguageAPI