Add 2FA registration localization and update Reg.cshtml
Added resource entries for 2FA registration steps and instructions in de-DE, en-US, and fr-FR. Updated Reg.cshtml to use localized strings, replacing hardcoded text for improved internationalization.
This commit is contained in:
@@ -348,4 +348,37 @@
|
||||
<data name="Open" xml:space="preserve">
|
||||
<value>Öffnen</value>
|
||||
</data>
|
||||
<data name="TfaRegistration" xml:space="preserve">
|
||||
<value>2FA Registrierung</value>
|
||||
</data>
|
||||
<data name="Registration" xml:space="preserve">
|
||||
<value>Registrierung</value>
|
||||
</data>
|
||||
<data name="PageVisibleUntil" xml:space="preserve">
|
||||
<value>Diese Seite ist bis {0} sichtbar.</value>
|
||||
</data>
|
||||
<data name="Step1Download2faApplication" xml:space="preserve">
|
||||
<value>Schritt 1 - Download einer 2FA Applikation</value>
|
||||
</data>
|
||||
<data name="Download2faAppInstruction" xml:space="preserve">
|
||||
<value>Bitte nehmen Sie Ihr Smartphone zur Hand und laden eine Applikation herunter, die zur Zwei-Faktor-Authentifizierung (2FA) benutzt werden kann.</value>
|
||||
</data>
|
||||
<data name="Recommended2faApplications" xml:space="preserve">
|
||||
<value>Folgende Applikationen empfehlen wir</value>
|
||||
</data>
|
||||
<data name="Step2ScanQrCode" xml:space="preserve">
|
||||
<value>Schritt 2 - Scannen des QR-Codes</value>
|
||||
</data>
|
||||
<data name="ScanQrCodeInstruction" xml:space="preserve">
|
||||
<value>Sobald Sie eine Zwei-Faktor-Authentifizierung App installiert haben, können Sie fortfahren und innerhalb der Applikation die Option zum Scannen eines QR-Codes suchen und bestätigen. Im Anschluss, sobald die Kamera freigegeben wurde, können Sie den QR-Code von uns scannen.</value>
|
||||
</data>
|
||||
<data name="Step3VerifyTheCode" xml:space="preserve">
|
||||
<value>Schritt 3 - Verifizierung des Codes</value>
|
||||
</data>
|
||||
<data name="VerifyCodeInstructionMain" xml:space="preserve">
|
||||
<value>Sie können nun in der Zwei-Faktor-Authentifizierung App einen Zahlencode zur Verifizierung des Vorganges ablesen. Bitte tragen Sie diesen Code in das unten aufgeführte Eingabefeld ein und Klicken auf</value>
|
||||
</data>
|
||||
<data name="VerifyCodeInstructionSubmit" xml:space="preserve">
|
||||
<value>Senden</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -348,4 +348,37 @@
|
||||
<data name="Open" xml:space="preserve">
|
||||
<value>Open</value>
|
||||
</data>
|
||||
<data name="TfaRegistration" xml:space="preserve">
|
||||
<value>2FA Registration</value>
|
||||
</data>
|
||||
<data name="Registration" xml:space="preserve">
|
||||
<value>Registration</value>
|
||||
</data>
|
||||
<data name="PageVisibleUntil" xml:space="preserve">
|
||||
<value>This page is visible until {0}.</value>
|
||||
</data>
|
||||
<data name="Step1Download2faApplication" xml:space="preserve">
|
||||
<value>Step 1 – Download a 2FA application</value>
|
||||
</data>
|
||||
<data name="Download2faAppInstruction" xml:space="preserve">
|
||||
<value>Please take your smartphone and download an application that can be used for two-factor authentication (2FA).</value>
|
||||
</data>
|
||||
<data name="Recommended2faApplications" xml:space="preserve">
|
||||
<value>We recommend the following applications</value>
|
||||
</data>
|
||||
<data name="Step2ScanQrCode" xml:space="preserve">
|
||||
<value>Step 2 – Scan the QR code</value>
|
||||
</data>
|
||||
<data name="ScanQrCodeInstruction" xml:space="preserve">
|
||||
<value>Once you have installed a two-factor authentication app, you can proceed and look for the option to scan a QR code within the application and confirm it. Then, once the camera is enabled, you can scan the QR code provided by us.</value>
|
||||
</data>
|
||||
<data name="Step3VerifyTheCode" xml:space="preserve">
|
||||
<value>Step 3 – Verify the code</value>
|
||||
</data>
|
||||
<data name="VerifyCodeInstructionMain" xml:space="preserve">
|
||||
<value>You can now read a numeric code in the two-factor authentication app to verify the process. Please enter this code in the input field below and click</value>
|
||||
</data>
|
||||
<data name="VerifyCodeInstructionSubmit" xml:space="preserve">
|
||||
<value>Submit</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -348,4 +348,37 @@
|
||||
<data name="Open" xml:space="preserve">
|
||||
<value>Ouvrir</value>
|
||||
</data>
|
||||
<data name="TfaRegistration" xml:space="preserve">
|
||||
<value>Enregistrement 2FA</value>
|
||||
</data>
|
||||
<data name="Registration" xml:space="preserve">
|
||||
<value>Inscription</value>
|
||||
</data>
|
||||
<data name="PageVisibleUntil" xml:space="preserve">
|
||||
<value>Cette page est visible jusqu'au {0}.</value>
|
||||
</data>
|
||||
<data name="Step1Download2faApplication" xml:space="preserve">
|
||||
<value>Étape 1 – Téléchargez une application 2FA</value>
|
||||
</data>
|
||||
<data name="Download2faAppInstruction" xml:space="preserve">
|
||||
<value>Veuillez prendre votre smartphone et télécharger une application pouvant être utilisée pour l’authentification à deux facteurs (2FA).</value>
|
||||
</data>
|
||||
<data name="Recommended2faApplications" xml:space="preserve">
|
||||
<value>Nous recommandons les applications suivantes</value>
|
||||
</data>
|
||||
<data name="Step2ScanQrCode" xml:space="preserve">
|
||||
<value>Étape 2 – Scannez le code QR</value>
|
||||
</data>
|
||||
<data name="ScanQrCodeInstruction" xml:space="preserve">
|
||||
<value>Une fois que vous avez installé une application d’authentification à deux facteurs, vous pouvez continuer et chercher dans l’application l’option pour scanner un code QR et la confirmer. Ensuite, une fois la caméra activée, vous pourrez scanner le code QR fourni par nos soins.</value>
|
||||
</data>
|
||||
<data name="Step3VerifyTheCode" xml:space="preserve">
|
||||
<value>Étape 3 – Vérification du code</value>
|
||||
</data>
|
||||
<data name="VerifyCodeInstructionMain" xml:space="preserve">
|
||||
<value>Vous pouvez maintenant lire un code numérique dans l’application d’authentification à deux facteurs pour vérifier l’opération. Veuillez saisir ce code dans le champ ci-dessous et cliquer sur</value>
|
||||
</data>
|
||||
<data name="VerifyCodeInstructionSubmit" xml:space="preserve">
|
||||
<value>Envoyer</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -1,6 +1,6 @@
|
||||
@using System.Globalization
|
||||
@{
|
||||
ViewData["Title"] = "2FA Registrierung";
|
||||
ViewData["Title"] = @_localizer["TfaRegistration"];
|
||||
var totpQR64 = ViewData["TotpQR64"] as string;
|
||||
var regDeadline = ViewData["RegDeadline"] is DateTime _dateTime ? _dateTime : throw new InvalidOperationException("RegDeadline is not added to view in Reg.cshtml view.");
|
||||
}
|
||||
@@ -13,23 +13,23 @@
|
||||
</svg>
|
||||
</div>
|
||||
<h2 class="mb-0">2-Factor Authentication (2FA)</h2>
|
||||
<h2>Registrierung</h2>
|
||||
<h2>@_localizer["Registration"]</h2>
|
||||
</header>
|
||||
<section class="text-center">
|
||||
<p class="p-0 m-0"> @string.Format("Diese Seite ist bis {0} sichtbar.", regDeadline.ToString("d. MMM, HH:mm", new CultureInfo("de-DE")))</p>
|
||||
<p class="p-0 m-0"> @string.Format(@_localizer["PageVisibleUntil"], regDeadline.ToString("d. MMM, HH:mm", new CultureInfo("de-DE")))</p>
|
||||
</section>
|
||||
<section class="text-start mt-4">
|
||||
<div class="accordion" id="tfaRegStep">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
|
||||
<p class="fw-bolder">Schritt 1 - Download einer 2FA Applikation</p>
|
||||
<p class="fw-bolder">@_localizer["Step1Download2faApplication"]</p>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="collapseOne" class="accordion-collapse collapse show" data-bs-parent="#tfaRegStep">
|
||||
<div class="accordion-body">
|
||||
<p class="text-wrap fw-medium">Bitte nehmen Sie Ihr Smartphone zur Hand und laden eine Applikation herunter, die zur Zwei-Faktor-Authentifizierung (2FA) benutzt werden kann.</p>
|
||||
<p class="text-wrap fw-light">Folgende Applikationen empfehlen wir</p>
|
||||
<p class="text-wrap fw-medium">@_localizer["Download2faAppInstruction"]</p>
|
||||
<p class="text-wrap fw-light">@_localizer["Recommended2faApplications"]</p>
|
||||
<ul class="list-group text-start">
|
||||
<li class="list-group-item">
|
||||
<a href="https://support.google.com/accounts/answer/1066447?hl=de&co=GENIE.Platform%3DAndroid" target="_blank" style="text-decoration: none;">
|
||||
@@ -48,25 +48,25 @@
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
|
||||
<p class="fw-bolder">Schritt 2 - Scannen des QR-Codes</p>
|
||||
<p class="fw-bolder">@_localizer["Step2ScanQrCode"]</p>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="collapseTwo" class="accordion-collapse collapse" data-bs-parent="#tfaRegStep">
|
||||
<div class="accordion-body">
|
||||
<div class="text-center m-0 p-0"><img class="tfaQrCode" src="data:image/png;base64,@totpQR64"></div>
|
||||
<p class="text-wrap fw-medium">Sobald Sie eine Zwei-Faktor-Authentifizierung App installiert haben, können Sie fortfahren und innerhalb der Applikation die Option zum Scannen eines QR-Codes suchen und bestätigen. Im Anschluss, sobald die Kamera freigegeben wurde, können Sie den QR-Code von uns scannen.</p>
|
||||
<p class="text-wrap fw-medium">@_localizer["ScanQrCodeInstruction"]</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
|
||||
<p class="fw-bolder">Schritt 3 - Verifizierung des Codes</p>
|
||||
<p class="fw-bolder">@_localizer["Step3VerifyTheCode"]</p>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="collapseThree" class="accordion-collapse collapse" data-bs-parent="#tfaRegStep">
|
||||
<div class="accordion-body">
|
||||
<p class="text-wrap fw-medium">Sie können nun in der Zwei-Faktor-Authentifizierung App einen Zahlencode zur Verifizierung des Vorganges ablesen. Bitte tragen Sie diesen Code in das unten aufgeführte Eingabefeld ein und Klicken auf <samp>Absenden</samp>.</p>
|
||||
<p class="text-wrap fw-medium">@_localizer["VerifyCodeInstructionMain"] <samp>@_localizer["VerifyCodeInstructionSubmit"]</samp>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user