--- autosave.js	2012-03-25 23:17:59.000000000 +0300
+++ autosave_extended.js	2012-03-25 23:20:20.000000000 +0300
@@ -3,16 +3,16 @@
 if (Drupal.jsEnabled) {
   $(document).ready(function() {
     $('body').append('<div id="autosave-status"><span id="status"></span><span id="operations"> \
-    <span id="view"><a href="#">View</a></span> \
-    <span id="ignore"><a href="#" title="Ignore/Delete Saved Form">Ignore</a></span> \
-    <span id="keep"><a href="#" title="Keep Saved Form - Revert to Saved">Keep</a></span></span></div>');
+    <span id="view"><a class="view" title="'+Drupal.t("Show Saved Form")+'" href="#">'+Drupal.t("View")+'</a></span> \
+    <span id="ignore"><a href="#" title="'+Drupal.t("Ignore/Delete Saved Form")+'">'+Drupal.t("Ignore")+'</a></span> \
+    <span id="keep"><a href="#" title="'+Drupal.t("Keep Saved Form - Revert to Saved")+'">'+Drupal.t("Keep")+'</a></span></span></div>');
     autosaved = Drupal.settings.autosave;   
     autosaved_form_id = 'node-form';
     
     if (autosaved.serialized) {
       $('#autosave-status #keep').css('display', 'none').css('visibility', 'hidden');
       $('#autosave-status #view a').click(function() {
-        if ($(this).html() == 'View') {
+        if ($(this).attr('class') == 'view') {
           $('#' + autosaved_form_id).formHash(autosaved.serialized);
           if (Drupal.settings.autosave.wysiwyg && Drupal.wysiwyg) {
             // need to loop through any WYSIWYG editor fields and update the visible iframe fields with hidden field content
@@ -29,11 +29,13 @@
           }
           
           $('#' + autosaved_form_id).focus();
-          $(this).html('Reset');
+          $(this).removeClass('view').addClass('reset');
+          $(this).html(Drupal.t('Reset'));
           $('#autosave-status #keep').css('display', 'inline').css('visibility', 'visible');
-          $('#autosave-status #keep a').html('Keep'); 
+          $('#autosave-status #keep a').html(Drupal.t('Keep')); 
         }
-        else if ($(this).html() == 'Reset') {
+        else if ($(this).attr('class') == 'reset') {
+	      $(this).removeClass('reset').addClass('view');
           form = document.getElementById(autosaved_form_id);
           form.reset();
 
@@ -45,7 +47,7 @@
           }
           
           $('#autosave-status #keep').css('display', 'none').css('visibility', 'hidden');
-          $(this).html('View');
+          $(this).html(Drupal.t('View'));
         }    
         return false;
       });
@@ -72,7 +74,7 @@
         Drupal.attachAutosave();
         return false;
       });
-      $('#autosave-status #status').html('This form was autosaved on ' + autosaved.saved_date);
+      $('#autosave-status #status').html(Drupal.t('This form was autosaved on ') + autosaved.saved_date);
       $('#autosave-status').slideDown();
     }
     // There are no autosaved forms, continue with autosave.
@@ -119,7 +121,7 @@
 }
 
 Drupal.displaySaved = function() {
-  $('#autosave-status #status').html('Form autosaved.');
+  $('#autosave-status #status').html(Drupal.t('Form autosaved.'));
   $('#autosave-status #operations').css('display', 'none').css('visibility', 'hidden');
   $('#autosave-status').slideDown();
   setTimeout("$('#autosave-status').fadeOut('slow')", 3000);  
