balazs-endresz / jquery-translate

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

IE 7 does not translate all text after first attempt. #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
jquery-translate version: translate-1.4.7-debug-all / jquery.translate-1.3.9
jQuery version: jquery-1.4.2.min
browser: IE 7
OS: WNT SP3

URL of the page, with non-minified JavaScript:
In development locally.

Current translate code is:

function translatePage() {
   $.translate.ready(function () {
      $.translate.ui('select', 'option')
      .change(function () {
         $('#langDialog').dialog('close');
         $('td').translate('English', $(this).val(), {
            not: '#langDialog, .jq-translate-ui',
            limit: 1900,
            fromOriginal: true 
         })
      })
      .val('English')
      .appendTo('#langMenu');
   });
}

What steps will reproduce the problem?
1. Translate the web page to another language.
2. Translate it back to English or another language.

What is the expected output? What do you see instead?
Back to what it was.

Please provide any additional information below.

I have a form that uses "label" tags in front if "input" fields.  When 
translated back the "label" tag text does not change.  The "Submit" button text 
also does not change back.  

Started with jquery.translate-1.3.9 and that was even worse.  Seems that 
everything after the Form does not translate back.

It works flawless with Firefox V3.6.8.

Original issue reported on code.google.com by david.e...@gmail.com on 2 Sep 2010 at 9:48

GoogleCodeExporter commented 9 years ago
I mistakenly said "$('td').translate('English', $(this).val(), {..." in the 
above code snippet as I was trying various things to see it I can get it to 
work.

It should have been $('body').translate('English', $(this).val(), {...".  Has 
the same results.

Sorry.

Original comment by david.e...@gmail.com on 2 Sep 2010 at 10:00

GoogleCodeExporter commented 9 years ago
Hi, could you please send the page by email: balazs.endresz@gmail.com

Also, using the `limit` option has different effects in IE, you should not set 
it higher than the default, though probably it's not the problem here.

Original comment by balazs.endresz on 4 Sep 2010 at 7:37

GoogleCodeExporter commented 9 years ago

Original comment by balazs.endresz on 11 Mar 2011 at 7:56

GoogleCodeExporter commented 9 years ago
from your comment: "I use a label tag inside a table cell within a form. The 
label tags do not translate back within an table (say from en to fr then fr to 
en). The rest of the page does fine. It does not work under IE8, FF4 works 
fine."

It seems to work for me in IE: http://fiddle.jshell.net/WcLsC/5/show/light/

You can edit it here: http://jsfiddle.net/WcLsC/5

Original comment by balazs.endresz on 22 Apr 2011 at 9:13