Better translations

Replace “Google Authenticator” by “Google Authenticator, Authy or FreeOTP” in all text.

Translate how to use the code / qr code.
This commit is contained in:
Jeremy Benoist
2018-12-03 06:15:57 +01:00
parent 43ccf4b178
commit 6e4fc956ab
15 changed files with 76 additions and 35 deletions

View File

@ -214,19 +214,18 @@
{% for OtpQrCode in app.session.flashbag.get('OtpQrCode') %}
<div class="card-panel yellow darken-1 black-text">
You just enabled the OTP two factor authentication, open your OTP app and use that code to get a one time password.
{{ 'config.form_user.two_factor_code_description_1'|trans }}
<br/>
That code will disapear after a page reload.
{{ 'config.form_user.two_factor_code_description_2'|trans }}
<br/><br/>
<strong>{{ app.user.getGoogleAuthenticatorSecret }}</strong>
<br/><br/>
Or you can scan that QR Code with your app:
<br/>
<img id="2faQrcode" class="hide-on-med-and-down" />
<script>
document.getElementById('2faQrcode').src = jrQrcode.getQrBase64('{{ OtpQrCode }}');;
</script>
<br/><br/>
{{ 'config.form_user.two_factor_code_description_3'|trans }}
<br/><br/>
<strong>{{ app.user.getGoogleAuthenticatorSecret }}</strong>
</div>
{% endfor %}
{% endif %}