]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Apply translations on input type submit
authorSamuel Mannehed <samuel@cendio.se>
Wed, 24 Jan 2018 12:00:48 +0000 (13:00 +0100)
committerSamuel Mannehed <samuel@cendio.se>
Wed, 24 Jan 2018 12:00:48 +0000 (13:00 +0100)
Commit 3729976 only updated xgettext.html which generates the .pot file.
This commit also makes sure that the actual translations are applied to
the interface.

Fixes #997

app/localization.js

index 39c91f68cf8b375be70bf6564ed18828add175e3..c43d407a8115bdd4e3016c5002f1d50f290b7cb8 100644 (file)
@@ -147,7 +147,7 @@ Localizer.prototype = {
                 }
                 if (elem.hasAttribute("value") &&
                     elem.tagName === "INPUT" &&
-                    isAnyOf(elem.getAttribute("type"), ["reset", "button"])) {
+                    isAnyOf(elem.getAttribute("type"), ["reset", "button", "submit"])) {
                     translateAttribute(elem, "value");
                 }
             }