balazs-endresz / jquery-translate

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

Parts of the site are not translated sometimes #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sites are sometimes not translatet completely.

Original issue reported on code.google.com by heiko.ra...@gmail.com on 19 Oct 2009 at 2:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Due to some structural changes in v1.4 the texts in the original language are 
retrieved 
before the Language API is loaded and the destination languages aren't 
converted to an 
appropriate language code. This results in failed translation if there was 
another one 
before. Fix soon.

Original comment by balazs.endresz on 24 Oct 2009 at 11:34

GoogleCodeExporter commented 9 years ago
Another thing could cause similar problems too: see the "important" note in the 
Extensions page.

Original comment by balazs.endresz on 24 Oct 2009 at 12:17

GoogleCodeExporter commented 9 years ago
With 1.4.1 it should be fixed now, please reopen this issue if you still have 
the 
problem!

Original comment by balazs.endresz on 24 Oct 2009 at 1:03

GoogleCodeExporter commented 9 years ago
It seems that the problem is with Ariel Flesler's Textnode Translator, which 
collects the 
text if you're using translateTextNodes. Good news is that you can easily fix 
this until 
the next release:

jQuery("body").translateTextNodes("de","en", {not:"script"});

or a slightly faster solution that doesn't use jQuery for filtering:

jQuery("body").translateTextNodes("de","en", {not: function(node){
  return node.nodeName != "SCRIPT";
}});

Original comment by balazs.endresz on 25 Oct 2009 at 8:40

GoogleCodeExporter commented 9 years ago
I mean that's another thing that could cause this issue.

Original comment by balazs.endresz on 25 Oct 2009 at 8:43

GoogleCodeExporter commented 9 years ago
Fixed in v1.4.2.

Original comment by balazs.endresz on 28 Jan 2010 at 6:25