Open GoogleCodeExporter opened 9 years ago
[deleted comment]
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
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
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
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
Original comment by balazs.endresz
on 28 Jan 2010 at 6:25
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
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
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
Thanks, I'll look in to it!
Original comment by balazs.endresz
on 3 Feb 2010 at 6:57
Original issue reported on code.google.com by
kokoh...@gmail.com
on 22 Jan 2010 at 1:39