diff --git a/views/js/controller/history/index.js b/views/js/controller/history/index.js
index <HASH>..<HASH> 100644
--- a/views/js/controller/history/index.js
+++ b/views/js/controller/history/index.js
@@ -22,7 +22,7 @@ define([
                 revision = $this.data('revision');
             var id = $('#resource_id').val();
 
-            var message = prompt("Please enter a message", __("Restored version %s", revision));
+            var message = prompt(__("Please enter a message"), __("Restored version %s", revision));
 
             if( typeof revision !== "undefined" &&
                 typeof message !== "undefined" &&
@@ -36,7 +36,7 @@ define([
                         if(res && res.success){
                             feedback().success(__("Resource restored"));
                             $(body).append(lineTpl(res));
-                            $('.tree').trigger('refresh.taotree'); 
+                            $('.tree').trigger('refresh.taotree');
                         } else {
                             feedback().error(__("Something went wrong..."));
                         }
feat: update code to include more tokens to translate