]> git.proxmox.com Git - novnc-pve.git/commitdiff
use gettext for 'Reload' button
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 5 Aug 2014 08:16:23 +0000 (10:16 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 5 Aug 2014 08:16:23 +0000 (10:16 +0200)
pveui.js

index f616a0edd2100244d725732634bffc970cb1915f..03a8ed19344c2eba43c91ae73681c81356041d3e 100644 (file)
--- a/pveui.js
+++ b/pveui.js
@@ -256,14 +256,19 @@ pve_start: function(callback) {
     var wsurl;
     var params = { websocket: 1 };
     var btn;
+    
+    var translate_btn_text = function(btn, hide) {
+       var el = $D(btn);
+       if (hide) el.style.display = "none";
+       el.value = gettext(el.value);
+    };
 
     var vmcmd_btns = ['pveStartButton', 'pveShutdownButton', 'pveStopButton', 'pveResetButton', 'pveSuspendButton', 'pveResumeButton'];
     vmcmd_btns.forEach(function(btn) {
-       var el = $D(btn);
-       el.style.display = "none";
-       el.value = gettext(el.value);
+       translate_btn_text(btn, true);
     });
 
+    translate_btn_text('pveReloadButton', false);
 
     var title;