balazs-endresz / jquery-translate

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

Parts of a page do not translate in IE only #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set up a page with translation
2.
3.

What is the expected output? What do you see instead?
The site is using websphere portal and has a lot of nested divs etc so I am
not sure if this is the problem but the translation will only go about half
way down the page and then just stops

What version of the product are you using? On what operating system?
windows XP pro, 1.4.1.min

Please provide any additional information below.

Original issue reported on code.google.com by WebD...@gmail.com on 30 Oct 2009 at 4:52

Attachments:

GoogleCodeExporter commented 9 years ago
forgot to add this, but this is how I call the translations

$('body').translate( 'en', destLang, {
            not: '#product, #FormBox, script, .list, #photos, .styledInputText, #Modal-Content' ,
            walk: true,
            fromOriginal:true,
            start:function(){modal(destLang);},
            complete:function(){$.modal.close();},
            async: true,
            returnAll: true

Original comment by WebD...@gmail.com on 30 Oct 2009 at 4:53

GoogleCodeExporter commented 9 years ago
Unfortunately I can't do much without seeing the actual page, if it's not 
public then 
please contact me in email: balazs.endresz@gmail.com!

Original comment by balazs.endresz on 30 Oct 2009 at 6:23

GoogleCodeExporter commented 9 years ago
We have a public facing page but its odd I was testing it on there and it works 
in
IE, I am thinking it may be something in the page but I cant get it to 
production
until next week because of our deployment schedule. As soon as I can get you a 
URL I
will.

Thanks!

Original comment by WebD...@gmail.com on 30 Oct 2009 at 7:56

GoogleCodeExporter commented 9 years ago
I have some problem in my Cinema Site  <a 
href="http:www.celluloidportraits.com">cinema - site</a>

Work fine in Firefox 
but with IE have some problem 
if use $('body').translate
translate the first td of the big table of page,

Have a space problem if use translateTextNode.

but (i think  the page is not wellformed).

Original comment by redazi...@celluloidportraits.com on 18 Aug 2010 at 6:05

GoogleCodeExporter commented 9 years ago
It looks like it has something to do with the flash object[id=speciali], which 
is the last thing that is translated, no further requests are sent after that. 
But I haven't got any idea yet why that happens.

The spacing problem with translateTextNodes is because the translation always 
contains some extra whitespace, which is removed by the plugin. Until it's 
fixed, you can simply remove the call to $.trim in the source, from here:

var tr = $.trim($(e).html()) -> var tr = $(e).html()

Original comment by balazs.endresz on 19 Aug 2010 at 10:36

GoogleCodeExporter commented 9 years ago
The space problem with translateTextNodes is now fixed in v1.4.7.

Original comment by balazs.endresz on 20 Aug 2010 at 8:28

GoogleCodeExporter commented 9 years ago
I'm using v.1.4.7 but yet still having problem with flash object in IE.
The flash object won't be displayed in IE after translating the page.

Can anybody help?
Thanks.. :)

Original comment by agustina...@gmail.com on 9 Mar 2011 at 6:22

GoogleCodeExporter commented 9 years ago
@agustina...@gmail.com: Using $("body").translateTextNodes() is very likely to 
solve such issues because .translate() may replace the whole innerHTML of an 
element which contains a flash object, but .translateTextNodes() replaces the 
text nodes directly.

Original comment by balazs.endresz on 9 Mar 2011 at 2:23