summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mannehed <samuel@cendio.se>2018-01-24 13:00:48 +0100
committerSamuel Mannehed <samuel@cendio.se>2018-01-24 13:00:48 +0100
commit86b9c473d171291166b4689cb24f47430217eb09 (patch)
tree75b78043ac7031e78fa69563b0db4653d5ef5e3a
parent61f93180c8cbdc6259d0b083b51f169053f66f8c (diff)
downloadnovnc-86b9c473d171291166b4689cb24f47430217eb09.tar.gz
Apply translations on input type submit
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
-rw-r--r--app/localization.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/localization.js b/app/localization.js
index 39c91f6..c43d407 100644
--- a/app/localization.js
+++ b/app/localization.js
@@ -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");
}
}