Open GoogleCodeExporter opened 9 years ago
I'm not sure I can follow this, but if you change the content after a
translation then
you have to set some options to false (`fromOriginal`, `toggle` or `data` too)
for that
region because the translation is stored with $.data and by default it won't
translate
that region again, just get the translation from $.data.
Original comment by balazs.endresz
on 13 Feb 2010 at 9:35
$(i_section).translate("sv", "en", {
returnAll: true,
walk: false,
not: "a",
fromOriginal: false,
toggle: false,
data: false,
subject: false,
start: function() { $("#langCtrl").prepend("<span
style=\"color:#f00;\">Translating... Please wait!</span>"); },
complete: function() {
alert("translated");
$( $("#langCtrl").children()[0] ).remove();
}
});
it translates once, then never more with those options.
Original comment by elri...@gmail.com
on 26 May 2010 at 3:04
$(i_section).translate("sv", "en", {
alwaysReplace: true
returnAll: true,
walk: false,
not: "a",
fromOriginal: false,
toggle: false,
data: false,
subject: false,
start: function() { $("#langCtrl").prepend("<span
style=\"color:#f00;\">Translating... Please wait!</span>"); },
complete: function() {
alert("translated");
$( $("#langCtrl").children()[0] ).remove();
}
});
set alwaysReplace to true
Original comment by rydan...@gmail.com
on 14 Feb 2012 at 9:21
Original issue reported on code.google.com by
elri...@gmail.com
on 13 Feb 2010 at 12:29