From 86b9c473d171291166b4689cb24f47430217eb09 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Wed, 24 Jan 2018 13:00:48 +0100 Subject: [PATCH] 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 --- app/localization.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } }