balazs-endresz / jquery-translate

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

On IE6 do not translate!!! #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open http://www.kokohinvestigacion.com/testing/ with IE6 or IE7...
2. Click on the foothear in order to translate to catalan... Ok!
3. Change the section with the upper's menu and see the msg but NO TRANSLATE!!!

What is the expected output? What do you see instead?
I expected that happens in Firefox... Its translates...

What version of the product are you using? On what operating system?
Every on WinXp SP3...

Please provide any additional information below.
The messages are do when starts the translation and when its ends...

Original issue reported on code.google.com by kokoh...@gmail.com on 22 Jan 2010 at 1:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
On Safari 3 do not work too...

It seems that jquery-translate do not detect AJAX changes in the page when you 
use it
one time; but in the section "empresa" works...

Why? :'( Anybody can tell me that if its is a script-error or me fail?

Original comment by kokoh...@gmail.com on 22 Jan 2010 at 4:07

GoogleCodeExporter commented 9 years ago
Maybe you could try with the `fromOriginal:false` option, though, since it 
seems to be a browser 
related issue, there might be something else too. Also, you can try to set the 
`data` and 
`toggle` option to `false` as well. This disables the caching of the original 
text completely, 
which might cause problems when you refresh some parts of the page with AJAX.

Original comment by balazs.endresz on 22 Jan 2010 at 6:09

GoogleCodeExporter commented 9 years ago
I resolve it!!!

For any reason i can not translate a div that inside have another div...

Now go well because i apply to each finally div...

Original comment by kokoh...@gmail.com on 22 Jan 2010 at 6:18

GoogleCodeExporter commented 9 years ago
There's another unresolved bug where the string to be translated is slightly 
different 
in each browsers. 

(each texts from different elements are enclosed in divs by the plugin, which 
makes it 
possible to translate arrays of strings)

So if you don't use the `stripWhitespace` option or set it to true, that might 
help as 
well!

Original comment by balazs.endresz on 22 Jan 2010 at 6:26

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
OK! I apply for each DIV and the script works!

The var `stripWhitespace` do not have any effect in this issue...

You can see the final result in http://www.kokohinvestigacion.com/

Thanks for you help!!
PD: Its possible to rewrite the script in order to identify the divs and send 
it each
one separately? :P

Original comment by kokoh...@gmail.com on 3 Feb 2010 at 9:20

GoogleCodeExporter commented 9 years ago
I don't know why I marked this as fixed... do you maybe have the old javascript 
that 
didn't work in IE?

Original comment by balazs.endresz on 3 Feb 2010 at 12:00

GoogleCodeExporter commented 9 years ago
The old javascript is exactly the new (your version 1.4.1)... The change is in 
the
file scripts.php that uses your library... If you see well I do something like 
this:

if(href=="pag/empresa.php"){
    traducirAhora("menu",null);
}else if(href=="pag/noticias.php"){
    traducirAhora("noticias",null);
}else if(href=="pag/instalaciones.php"){
    traducirAhora("imgmenu",null);
}

traducirAhora is an encapsulation funcion of your script; and imgmenu is de ID 
of the
div when I apply the translation...

Before the sentence are:
traducirAhora("body"); or traducirAhora("wrapper");
in order to translate all...

Now i do with each div..

I believe that the problem is apply the script in IE on a div that inside 
contains
anothers div with certain objects (javascript could be?)...

Original comment by kokoh...@gmail.com on 3 Feb 2010 at 12:57

GoogleCodeExporter commented 9 years ago
Thanks, I'll look in to it!

Original comment by balazs.endresz on 3 Feb 2010 at 6:57