From a65eb0ec29b673aae06bd7150d68748d00239360 Mon Sep 17 00:00:00 2001 From: Oguz Bektas Date: Thu, 4 Feb 2021 16:32:47 +0100 Subject: [PATCH] ui: wrap regexText in gettext() for translations also fix a small typo in recovery keys text Signed-off-by: Oguz Bektas --- www/LoginView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/LoginView.js b/www/LoginView.js index f7380339..291f95d6 100644 --- a/www/LoginView.js +++ b/www/LoginView.js @@ -524,7 +524,7 @@ Ext.define('PBS.login.TfaWindow', { reference: 'totp', allowBlank: false, regex: /^[0-9]{6}$/, - regexText: 'TOTP codes consist of six decimal digits', + regexText: gettext('TOTP codes consist of six decimal digits'), }, ], }, @@ -551,7 +551,7 @@ Ext.define('PBS.login.TfaWindow', { reference: 'recoveryKey', allowBlank: false, regex: /^[0-9a-f]{4}(-[0-9a-f]{4}){3}$/, - regexText: 'Does not looks like a valid recovery key', + regexText: gettext('Does not look like a valid recovery key'), }, { xtype: 'box',