]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: wrap regexText in gettext() for translations
authorOguz Bektas <o.bektas@proxmox.com>
Thu, 4 Feb 2021 15:32:47 +0000 (16:32 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 Feb 2021 05:55:56 +0000 (06:55 +0100)
also fix a small typo in recovery keys text

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
www/LoginView.js

index f73803392bbbd4fe90a27ba76c6077be64135570..291f95d678a965e5c9920860b8f0237f44217fe7 100644 (file)
@@ -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',