fix(translations): language options and init user (#4449)

fix(translations): add chinese to language options
fix(translations): correct key for password confirm label
This commit is contained in:
Silvan 2022-09-23 17:24:06 +02:00 committed by GitHub
parent 7dfa1925cc
commit a7646d5a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 50 additions and 37 deletions

View File

@ -67,7 +67,7 @@ InitUser:
Description: Du hast einen Code erhalten, welcher im untenstehenden Formular eingegeben werden muss um deine E-Mail zu verifizieren und ein neues Passwort zu setzen. Description: Du hast einen Code erhalten, welcher im untenstehenden Formular eingegeben werden muss um deine E-Mail zu verifizieren und ein neues Passwort zu setzen.
CodeLabel: Code CodeLabel: Code
NewPasswordLabel: Neues Passwort NewPasswordLabel: Neues Passwort
NewPasswordConfirmLabel: Passwort bestätigen NewPasswordConfirm: Passwort bestätigen
NextButtonText: weiter NextButtonText: weiter
ResendButtonText: erneut senden ResendButtonText: erneut senden
@ -239,6 +239,7 @@ ExternalRegistrationUserOverview:
English: English English: English
Italian: Italiano Italian: Italiano
French: Français French: Français
Chinese: 简体中文
TosAndPrivacyLabel: Allgemeine Geschäftsbedingungen und Datenschutz TosAndPrivacyLabel: Allgemeine Geschäftsbedingungen und Datenschutz
TosConfirm: Ich akzeptiere die TosConfirm: Ich akzeptiere die
TosLinkText: AGBs TosLinkText: AGBs
@ -282,7 +283,7 @@ LinkingUsersDone:
CancelButtonText: abbrechen CancelButtonText: abbrechen
NextButtonText: weiter NextButtonText: weiter
ExternalNotFoundOption: ExternalNotFound:
Title: Externer Benutzer Title: Externer Benutzer
Description: Externer Benutzer konnte nicht gefunden werden. Willst du deinen Benutzer mit einem bestehenden verlinken oder diesen als neuen Benutzer registrieren. Description: Externer Benutzer konnte nicht gefunden werden. Willst du deinen Benutzer mit einem bestehenden verlinken oder diesen als neuen Benutzer registrieren.
LinkButtonText: Verlinken LinkButtonText: Verlinken
@ -296,6 +297,7 @@ ExternalNotFoundOption:
English: English English: English
Italian: Italiano Italian: Italiano
French: Français French: Français
Chinese: 简体中文
Footer: Footer:
PoweredBy: Powered By PoweredBy: Powered By

View File

@ -67,7 +67,7 @@ InitUser:
Description: You have received a code, which you have to enter in the form below, to verify your email and set your new password. Description: You have received a code, which you have to enter in the form below, to verify your email and set your new password.
CodeLabel: Code CodeLabel: Code
NewPasswordLabel: New Password NewPasswordLabel: New Password
NewPasswordConfirmLabel: Confirm Password NewPasswordConfirm: Confirm Password
NextButtonText: next NextButtonText: next
ResendButtonText: resend ResendButtonText: resend
@ -239,6 +239,7 @@ ExternalRegistrationUserOverview:
English: English English: English
Italian: Italiano Italian: Italiano
French: Français French: Français
Chinese: 简体中文
TosAndPrivacyLabel: Terms and conditions TosAndPrivacyLabel: Terms and conditions
TosConfirm: I accept the TosConfirm: I accept the
TosLinkText: TOS TosLinkText: TOS
@ -282,7 +283,7 @@ LinkingUsersDone:
CancelButtonText: cancel CancelButtonText: cancel
NextButtonText: next NextButtonText: next
ExternalNotFoundOption: ExternalNotFound:
Title: External User Title: External User
Description: External user not found. Do you want to link your user or auto register a new one. Description: External user not found. Do you want to link your user or auto register a new one.
LinkButtonText: Link LinkButtonText: Link
@ -296,6 +297,7 @@ ExternalNotFoundOption:
English: English English: English
Italian: Italiano Italian: Italiano
French: Français French: Français
Chinese: 简体中文
Footer: Footer:
PoweredBy: Powered By PoweredBy: Powered By

View File

@ -67,7 +67,7 @@ InitUser:
Description: Vous avez reçu un code, que vous devez entrer dans le formulaire ci-dessous, pour vérifier votre e-mail et définir votre nouveau mot de passe. Description: Vous avez reçu un code, que vous devez entrer dans le formulaire ci-dessous, pour vérifier votre e-mail et définir votre nouveau mot de passe.
CodeLabel: Code CodeLabel: Code
NewPasswordLabel: Nouveau mot de passe NewPasswordLabel: Nouveau mot de passe
NewPasswordConfirmLabel: Confirmer le mot de passe NewPasswordConfirm: Confirmer le mot de passe
NextButtonText: Suivant NextButtonText: Suivant
ResendButtonText: envoyer à nouveau ResendButtonText: envoyer à nouveau
@ -239,6 +239,7 @@ ExternalRegistrationUserOverview:
English: English English: English
Italian: Italiano Italian: Italiano
French: Français French: Français
Chinese: 简体中文
TosAndPrivacyLabel: Termes et conditions TosAndPrivacyLabel: Termes et conditions
TosConfirm: J'accepte les TosConfirm: J'accepte les
TosLinkText: TOS TosLinkText: TOS
@ -282,7 +283,7 @@ LinkingUsersDone:
CancelButtonText: annuler CancelButtonText: annuler
NextButtonText: suivant NextButtonText: suivant
ExternalNotFoundOption: ExternalNotFound:
Title: Utilisateur externe Title: Utilisateur externe
Description: Utilisateur externe non trouvé. Voulez-vous lier votre utilisateur ou enregistrer automatiquement un nouvel utilisateur. Description: Utilisateur externe non trouvé. Voulez-vous lier votre utilisateur ou enregistrer automatiquement un nouvel utilisateur.
LinkButtonText: Lier LinkButtonText: Lier
@ -296,6 +297,7 @@ ExternalNotFoundOption:
English: English English: English
Italian: Italiano Italian: Italiano
French: Français French: Français
Chinese: 简体中文
Footer: Footer:
PoweredBy: Promulgué par PoweredBy: Promulgué par

View File

@ -67,7 +67,7 @@ InitUser:
Description: Hai ricevuto un codice, che devi inserire nel modulo sottostante, per verificare la tua email e impostare la tua nuova password. Description: Hai ricevuto un codice, che devi inserire nel modulo sottostante, per verificare la tua email e impostare la tua nuova password.
CodeLabel: Codice CodeLabel: Codice
NewPasswordLabel: Nuova password NewPasswordLabel: Nuova password
NewPasswordConfirmLabel: Conferma la password NewPasswordConfirm: Conferma la password
NextButtonText: Avanti NextButtonText: Avanti
ResendButtonText: rispedisci ResendButtonText: rispedisci
@ -209,9 +209,9 @@ RegistrationUser:
English: English English: English
Italian: Italiano Italian: Italiano
French: Français French: Français
Chinese: 简体中文
GenderLabel: Genere GenderLabel: Genere
Female: Femminile Female: Femminile
Chinese: 简体中文
Male: Maschile Male: Maschile
Diverse: diverso / X Diverse: diverso / X
PasswordLabel: Password PasswordLabel: Password
@ -239,6 +239,7 @@ ExternalRegistrationUserOverview:
English: English English: English
Italian: Italiano Italian: Italiano
French: Français French: Français
Chinese: 简体中文
TosAndPrivacyLabel: Termini di servizio TosAndPrivacyLabel: Termini di servizio
TosConfirm: Accetto i TosConfirm: Accetto i
TosLinkText: Termini di servizio TosLinkText: Termini di servizio
@ -282,7 +283,7 @@ LinkingUsersDone:
CancelButtonText: annulla CancelButtonText: annulla
NextButtonText: Avanti NextButtonText: Avanti
ExternalNotFoundOption: ExternalNotFound:
Title: Utente esterno Title: Utente esterno
Description: Utente esterno non trovato. Vuoi collegare il tuo utente o registrarne uno nuovo automaticamente. Description: Utente esterno non trovato. Vuoi collegare il tuo utente o registrarne uno nuovo automaticamente.
LinkButtonText: Link LinkButtonText: Link
@ -296,6 +297,7 @@ ExternalNotFoundOption:
English: English English: English
Italian: Italiano Italian: Italiano
French: Français French: Français
Chinese: 简体中文
Footer: Footer:
PoweredBy: Alimentato da PoweredBy: Alimentato da

View File

@ -67,7 +67,7 @@ InitUser:
Description: 您将收到一个验证码,您必须在下面输入该验证码,以验证您的电子邮件并设置您的新密码。 Description: 您将收到一个验证码,您必须在下面输入该验证码,以验证您的电子邮件并设置您的新密码。
CodeLabel: 验证码 CodeLabel: 验证码
NewPasswordLabel: 新密码 NewPasswordLabel: 新密码
NewPasswordConfirmLabel: 确认密码 NewPasswordConfirm: 确认密码
NextButtonText: 继续 NextButtonText: 继续
ResendButtonText: 重新发送 ResendButtonText: 重新发送
@ -283,7 +283,7 @@ LinkingUsersDone:
CancelButtonText: 取消 CancelButtonText: 取消
NextButtonText: 继续 NextButtonText: 继续
ExternalNotFoundOption: ExternalNotFound:
Title: 外部用户 Title: 外部用户
Description: 未找到外部用户。你想绑定你已存在的用户还是自动注册一个新用户。 Description: 未找到外部用户。你想绑定你已存在的用户还是自动注册一个新用户。
LinkButtonText: 绑定 LinkButtonText: 绑定
@ -293,10 +293,10 @@ ExternalNotFoundOption:
TosLinkText: 服务条款 TosLinkText: 服务条款
TosConfirmAnd: TosConfirmAnd:
PrivacyLinkText: 隐私政策 PrivacyLinkText: 隐私政策
German: 德语 German: Deutsch
English: 英语 English: English
Italian: 意大利语 Italian: Italiano
French: 法语 French: Français
Chinese: 简体中文 Chinese: 简体中文
Footer: Footer:

View File

@ -1,8 +1,8 @@
{{template "main-top" .}} {{template "main-top" .}}
<div class="lgn-head"> <div class="lgn-head">
<h1>{{t "ExternalNotFoundOption.Title"}}</h1> <h1>{{t "ExternalNotFound.Title"}}</h1>
<p>{{t "ExternalNotFoundOption.Description"}}</p> <p>{{t "ExternalNotFound.Description"}}</p>
</div> </div>
@ -60,13 +60,15 @@
<label class="lgn-label" for="languages">{{t "ExternalRegistrationUserOverview.LanguageLabel"}}</label> <label class="lgn-label" for="languages">{{t "ExternalRegistrationUserOverview.LanguageLabel"}}</label>
<select id="languages" name="language"> <select id="languages" name="language">
<option value=""></option> <option value=""></option>
<option value="de" id="de" {{if (selectedLanguage "de")}} selected {{end}}>{{t "ExternalNotFoundOption.German"}} <option value="de" id="de" {{if (selectedLanguage "de")}} selected {{end}}>{{t "ExternalNotFound.German"}}
</option> </option>
<option value="en" id="en" {{if (selectedLanguage "en")}} selected {{end}}>{{t "ExternalNotFoundOption.English"}} <option value="en" id="en" {{if (selectedLanguage "en")}} selected {{end}}>{{t "ExternalNotFound.English"}}
</option> </option>
<option value="it" id="it" {{if (selectedLanguage "it")}} selected {{end}}>{{t "ExternalNotFoundOption.Italian"}} <option value="it" id="it" {{if (selectedLanguage "it")}} selected {{end}}>{{t "ExternalNotFound.Italian"}}
</option> </option>
<option value="fr" id="fr" {{if (selectedLanguage "fr")}} selected {{end}}>{{t "ExternalNotFoundOption.French"}} <option value="fr" id="fr" {{if (selectedLanguage "fr")}} selected {{end}}>{{t "ExternalNotFound.French"}}
</option>
<option value="zh" id="zh" {{if (selectedLanguage "zh")}} selected {{end}}>{{t "ExternalNotFound.Chinese"}}
</option> </option>
</select> </select>
</div> </div>
@ -74,23 +76,23 @@
{{ if or .TOSLink .PrivacyLink }} {{ if or .TOSLink .PrivacyLink }}
<div class="lgn-field"> <div class="lgn-field">
<label class="lgn-label">{{t "ExternalNotFoundOption.TosAndPrivacyLabel"}}</label> <label class="lgn-label">{{t "ExternalNotFound.TosAndPrivacyLabel"}}</label>
<div class="lgn-checkbox"> <div class="lgn-checkbox">
<input type="checkbox" id="terms-confirm" <input type="checkbox" id="terms-confirm"
name="terms-confirm" required> name="terms-confirm" required>
<label for="terms-confirm"> <label for="terms-confirm">
{{t "ExternalNotFoundOption.TosConfirm"}} {{t "ExternalNotFound.TosConfirm"}}
{{ if .TOSLink }} {{ if .TOSLink }}
<a class="tos-link" target="_blank" href="{{ .TOSLink }}" rel="noopener noreferrer"> <a class="tos-link" target="_blank" href="{{ .TOSLink }}" rel="noopener noreferrer">
{{t "ExternalNotFoundOption.TosLinkText"}} {{t "ExternalNotFound.TosLinkText"}}
</a> </a>
{{end}} {{end}}
{{ if and .TOSLink .PrivacyLink }} {{ if and .TOSLink .PrivacyLink }}
{{t "ExternalNotFoundOption.TosConfirmAnd"}} {{t "ExternalNotFound.TosConfirmAnd"}}
{{ end }} {{ end }}
{{ if .PrivacyLink }} {{ if .PrivacyLink }}
<a class="tos-link" target="_blank" href="{{ .PrivacyLink}}" rel="noopener noreferrer"> <a class="tos-link" target="_blank" href="{{ .PrivacyLink}}" rel="noopener noreferrer">
{{t "ExternalNotFoundOption.PrivacyLinkText"}} {{t "ExternalNotFound.PrivacyLinkText"}}
</a> </a>
{{end}} {{end}}
</label> </label>
@ -108,11 +110,11 @@
</button> </button>
<button type="submit" formaction="{{ externalNotFoundOptionUrl "linkbutton"}}" class="lgn-raised-button lgn-primary" name="linkbutton" value="true"> <button type="submit" formaction="{{ externalNotFoundOptionUrl "linkbutton"}}" class="lgn-raised-button lgn-primary" name="linkbutton" value="true">
{{t "ExternalNotFoundOption.LinkButtonText"}} {{t "ExternalNotFound.LinkButtonText"}}
</button> </button>
<span class="fill-space"></span> <span class="fill-space"></span>
<button type="submit" formaction="{{ externalNotFoundOptionUrl "autoregisterbutton"}}" class="lgn-raised-button lgn-primary" name="autoregisterbutton" value="true"> <button type="submit" formaction="{{ externalNotFoundOptionUrl "autoregisterbutton"}}" class="lgn-raised-button lgn-primary" name="autoregisterbutton" value="true">
{{t "ExternalNotFoundOption.AutoRegisterButtonText"}} {{t "ExternalNotFound.AutoRegisterButtonText"}}
</button> </button>
</div> </div>
</form> </form>

View File

@ -68,6 +68,8 @@
</option> </option>
<option value="fr" id="fr" {{if (selectedLanguage "fr")}} selected {{end}}>{{t "ExternalRegistrationUserOverview.French"}} <option value="fr" id="fr" {{if (selectedLanguage "fr")}} selected {{end}}>{{t "ExternalRegistrationUserOverview.French"}}
</option> </option>
<option value="zh" id="zh" {{if (selectedLanguage "zh")}} selected {{end}}>{{t "ExternalRegistrationUserOverview.Chinese"}}
</option>
</select> </select>
</div> </div>
</div> </div>

View File

@ -34,7 +34,7 @@
{{ template "password-complexity-policy-description" . }} {{ template "password-complexity-policy-description" . }}
</div> </div>
<div class="field"> <div class="field">
<label class="lgn-label" for="passwordconfirm">{{t "InitUser.NewPasswordConfirmLabel"}}</label> <label class="lgn-label" for="passwordconfirm">{{t "InitUser.NewPasswordConfirm"}}</label>
<input class="lgn-input" type="password" id="passwordconfirm" name="passwordconfirm" <input class="lgn-input" type="password" id="passwordconfirm" name="passwordconfirm"
autocomplete="new-password" autofocus required> autocomplete="new-password" autofocus required>
</div> </div>

View File

@ -13,8 +13,7 @@
<input type="hidden" name="authRequestID" value="{{ .AuthReqID }}" /> <input type="hidden" name="authRequestID" value="{{ .AuthReqID }}" />
<div class="fields"> <div class="fields">
{{ range $provider := .MFAProviders}} {{ $providerName := (t (printf {{ range $provider := .MFAProviders}} {{ $providerName := (t (printf "InitMFAPrompt.Provider%v" $provider)) }}
"InitMFAPrompt.Provider%v" $provider)) }}
<div class="lgn-radio block"> <div class="lgn-radio block">
<input <input
id="{{ $provider }}" id="{{ $provider }}"

View File

@ -62,6 +62,8 @@
</option> </option>
<option value="fr" id="fr" {{if (selectedLanguage "fr")}} selected {{end}}>{{t "RegistrationUser.French"}} <option value="fr" id="fr" {{if (selectedLanguage "fr")}} selected {{end}}>{{t "RegistrationUser.French"}}
</option> </option>
<option value="zh" id="zh" {{if (selectedLanguage "zh")}} selected {{end}}>{{t "RegistrationUser.Chinese"}}
</option>
</select> </select>
</div> </div>
<div class="lgn-field" > <div class="lgn-field" >