balazs-endresz / jquery-translate

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

Help me!! website navegation #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have the translator but only it this one working for the page that I have
loaded
when I load other one me there appears the original language, which I can
be absent?

Original issue reported on code.google.com by NELCA...@gmail.com on 15 Mar 2010 at 7:35

GoogleCodeExporter commented 9 years ago
I think this example will help: http://jsbin.com/ozenu/edit
You have to store the destination language code in a cookie to translate 
subsequent 
pages automatically.

Original comment by balazs.endresz on 15 Mar 2010 at 7:39

GoogleCodeExporter commented 9 years ago
mmmmmm, thank you, but I have the templates in directories diferents and the 
cookie
only takes the path of one

Original comment by NELCA...@gmail.com on 16 Mar 2010 at 9:16

GoogleCodeExporter commented 9 years ago
You can specify path for cookie if that's the issue, see examples here: 
http://www.electrictoolbox.com/jquery-cookies/

Original comment by balazs.endresz on 16 Mar 2010 at 10:20

GoogleCodeExporter commented 9 years ago

Original comment by balazs.endresz on 26 Mar 2010 at 4:47

GoogleCodeExporter commented 9 years ago
Hello, I need his help.
I load the following URL in IE 8 http: //
educacion.knowleer.org/ptr/vista/vptr002/index.html and give him click in the 
flags
in all the flags, despues I turn Spanish and he does not translate the complete
page.?????

Original comment by NELCA...@gmail.com on 13 Apr 2010 at 9:14

GoogleCodeExporter commented 9 years ago
It gives me an out of memory error: https://code.google.com/p/jquery-
translate/issues/detail?id=36

try 
$('body').translateTextNodes(...)
instead of 
$('body').translate(...)

Original comment by balazs.endresz on 14 Apr 2010 at 5:36

GoogleCodeExporter commented 9 years ago
Thank you. I use the code that you said to me and already this mistake does not 
go
out for me but when I give him in several languages followed without allowing 
that it
should end of traduccir a new mistake appears. In firefox appears:
F is null
[Break on this error] (function(){var
l=this,g,y=l.jQuery,p=...ch(function(){o.dequeue(this,E)})}});
jquery.js (línea 12)
an en IE:
'null' es nulo o no es un objeto
jquery.js
Código: 0
Mensaje: 'null' es nulo o no es un objeto
Línea: 12
Carácter: 15910
Código: 0
URI: http://educacion.knowleer.org/ptr/vistacomunidad/jscript/jquery.js

Original comment by NELCA...@gmail.com on 14 Apr 2010 at 9:22

GoogleCodeExporter commented 9 years ago
1. It doesn't give me an error in Firefox, but I hope you don't expect me to 
debug 
minified code.

2. "when I give him in several languages followed without allowing that it
should end of traduccir a new mistake appears." - do you mean, when you click 
multiple 
flags before the translation is finished?

Original comment by balazs.endresz on 15 Apr 2010 at 8:35

GoogleCodeExporter commented 9 years ago
yes

Original comment by NELCA...@gmail.com on 15 Apr 2010 at 4:48

GoogleCodeExporter commented 9 years ago
A solution to the 2. point:

window.instance = null;

$("body").translateTextNodes(from, to, {
 start: function(){
  instance && instance.stop();
  instance = this;
 },
 complete: function(){
  instance = null;
 }
});

This stops the previous translation if it's in progress. Another solution is to 
block the page 
by displaying a layer, see e.g. the blockui plugin: 
http://jquery.malsup.com/block/

Original comment by balazs.endresz on 16 Apr 2010 at 8:31

GoogleCodeExporter commented 9 years ago
Hello, thank you for this new solution the following thing has worked less: the
etiquettes h2 it they locates something strange and does not translate them: 
http: //
educacion.knowleer.org/ptr/vista/vptr002/index.html

Original comment by NELCA...@gmail.com on 16 Apr 2010 at 2:26

GoogleCodeExporter commented 9 years ago
I have problems between the cufon and the translator, for who the etiquettes h 
does
not translate them :(, do you know some solution for this?

Original comment by NELCA...@gmail.com on 16 Apr 2010 at 3:11

GoogleCodeExporter commented 9 years ago
I don't understand exactly what you are saying, but I see that some parts are 
not 
translated to certain languages. For example the text "El Centro" on the menu 
only 
changes when you translate to Russian. I can't do anything about that, this is 
the way 
it's translated.

Original comment by balazs.endresz on 17 Apr 2010 at 8:31