From 8186c93dd9965bb152ebefdf06502908d68e3d51 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 3 Jan 2020 13:35:58 -0800 Subject: [PATCH] Better internalization improvement. --- translate/translate.json | 2 +- views/default.handlebars | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/translate/translate.json b/translate/translate.json index 462f3404..e7040230 100644 --- a/translate/translate.json +++ b/translate/translate.json @@ -17759,4 +17759,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/views/default.handlebars b/views/default.handlebars index 094dbf7c..ab2b9d11 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -2023,7 +2023,7 @@ var secret = message.secret; if (secret.length == 52) { secret = secret.split(/(.............)/).filter(Boolean).join(' '); } else if (secret.length == 32) { secret = secret.split(/(....)/).filter(Boolean).join(' '); secret = secret.substring(0, 20) + '
' + secret.substring(20) } - QH('d2optinfo', '
' + "Install Google Authenticator or a compatible application and scan the barcode, use this link or enter the secret. Then, enter the current 6 digit token below to activate 2-Step login." + '

Secret
' + secret + '


' + "Enter the token here for 2-step login:" + ' = 48 && event.charCode <= 57)\" onkeyup=account_addOtpCheck(event) onkeydown=account_addOtpCheck() maxlength=6 id=d2otpauthinput type=text>
'); + QH('d2optinfo', '
' + format("Install Google Authenticator or a compatible application and scan the barcode, use this link or enter the secret. Then, enter the current 6 digit token below to activate 2-Step login.", message.url) + '

Secret
' + secret + '


' + "Enter the token here for 2-step login:" + ' = 48 && event.charCode <= 57)\" onkeyup=account_addOtpCheck(event) onkeydown=account_addOtpCheck() maxlength=6 id=d2otpauthinput type=text>
'); new QRCode(Q('qrcode'), { text: message.url, width: 128, height: 128, colorDark: '#000000', colorLight: '#EEE', correctLevel: QRCode.CorrectLevel.H }); QV('idx_dlgOkButton', true); QE('idx_dlgOkButton', false);