diff --git a/locales/en.json b/locales/en.json index de00ce58..d4805e86 100644 --- a/locales/en.json +++ b/locales/en.json @@ -69,6 +69,7 @@ "other": "%s years from now" }, "2FA Code": "2FA Code", + "6 digits": "6 digits", "a-zA-Z0-9-_ only": "a-zA-Z0-9-_ only", "Account": "Account", "Accounts": "Accounts", @@ -185,6 +186,7 @@ "Edit Role \"Regular User\"": "Edit Role \"Regular User\"", "Edit Role \"Root\"": "Edit Role \"Root\"", "Email": "Email", + "Enabling 2FA will invalidate all your existing sessions and you will have to login again.": "Enabling 2FA will invalidate all your existing sessions and you will have to login again.", "Eraser": "Eraser", "Europe": "Tor Exit Node", "Existing Password": "Existing Password", @@ -285,6 +287,7 @@ "No active layer.": "No active layer.", "No appeal submitted": "No appeal submitted", "No bans.": "No bans.", + "No camera? Use this secret in your authenticator app instead": "No camera? Use this secret in your authenticator app instead", "No Filters": "No Filters", "No posts.": "No posts.", "No results.": "No results.", @@ -357,6 +360,7 @@ "rules": "rules", "Save": "Save", "Save As": "Save As", + "Scan the QR Code in an authenticator app, and submit the code": "Scan the QR Code in an authenticator app, and submit the code", "Search": "Search", "Seen?": "Visto?", "Select/Drop/Paste files": { @@ -364,6 +368,7 @@ "other": "Select/Drop/Paste files" }, "Settings": "Settings", + "Setup 2FA": "Setup 2FA", "Setup 2FA (TOTP)": "Setup 2FA (TOTP)", "SFW": "SFW", "Show": "Show", @@ -401,6 +406,7 @@ "Tone": "Tone", "Tor Hidden Service": "Tor Hidden Service", "total": "total", + "Two Factor Authentication Setup": "Two Factor Authentication Setup", "Type": "Type", "Unban": "Unban", "Undo": "Undo", diff --git a/locales/pt.json b/locales/pt.json index a35a2bdd..0c5eee29 100644 --- a/locales/pt.json +++ b/locales/pt.json @@ -68,7 +68,8 @@ "one": "%s ano desde agora", "other": "%s anos desde agora" }, - "2FA Code": "2FA Code", + "2FA Code": "Código 2FA", + "6 digits": "6 digitos", "a-zA-Z0-9-_ only": "a-zA-Z0-9-_ apenas", "Ability to create new boards.": "Ability to create new boards.", "Ability to register an account.": "Ability to register an account.", @@ -220,6 +221,7 @@ "Edit Role \"Regular User\"": "Edit Role \"Regular User\"", "Edit Role \"Root\"": "Edit Role \"Root\"", "Email": "Opção", + "Enabling 2FA will invalidate all your existing sessions and you will have to login again.": "Ativar 2FA vai invalidar todas as sessões ativas e terás que fazer login novamente.", "Eraser": "Borracha", "Europe": "Tor Exit Node", "Existing Password": "Existing Password", @@ -332,6 +334,7 @@ "No active layer.": "Sem camada activa.", "No appeal submitted": "Sem recurso enviado", "No bans.": "Sem bans.", + "No camera? Use this secret in your authenticator app instead": "Sem câmara? Usa este segredo na tua aplicação de autenticação", "No Filters": "No Filters", "No posts.": "Sem publicações.", "No results.": "No results.", @@ -409,6 +412,7 @@ "rules": "rules", "Save": "Guardar", "Save As": "Guardar Como", + "Scan the QR Code in an authenticator app, and submit the code": "Usa a câmara do dispositivo na aplicação para detetar o código QR e depois escreve-o:", "Search": "Procurar", "Seen?": "Visto?", "Select/Drop/Paste files": { @@ -416,6 +420,7 @@ "other": "Seleciona/Arrasta/Cola ficheiros" }, "Settings": "Opções", + "Setup 2FA": "Configuração 2FA", "Setup 2FA (TOTP)": "Configurar 2FA (TOTP)", "SFW": "SFW", "Show": "Mostrar", @@ -455,6 +460,7 @@ "Tone": "Matiz", "Tor Hidden Service": "Tor Hidden Service", "total": "total", + "Two Factor Authentication Setup": "Configuração 2FA", "Type": "Tipo", "Unban": "Remover Ban", "Underline": "Underline", diff --git a/views/pages/twofactor.pug b/views/pages/twofactor.pug index e0bbfe52..10505acf 100644 --- a/views/pages/twofactor.pug +++ b/views/pages/twofactor.pug @@ -1,26 +1,26 @@ extends ../layout.pug block head - title Setup 2FA + title #{__('Two Factor Authentication Setup')} block content .board-header - h1.board-title Two Factor Authentication Setup + h1.board-title #{__('Two Factor Authentication Setup')} .form-wrapper.flex-center.mv-10 form.form-post.nogrow(action=`/forms/twofactor` method='POST' enctype='application/x-www-form-urlencoded') input(type='hidden' name='_csrf' value=csrf) - h4.mv-5 Scan the QR Code in an authenticator app, and submit the code: + h4.mv-5 #{__('Scan the QR Code in an authenticator app, and submit the code')}: .row span.code.hljs.twofactor.noselect #{qrCodeText} .row - h4.no-m-p No camera? Use this secret in your authenticator app instead: + h4.no-m-p #{__('No camera? Use this secret in your authenticator app instead')}: .row span.code #{secretBase32} .row - h4.mv-5.ban Enabling 2FA will invalidate all your existing sessions and you will have to login again. + h4.mv-5.ban #{__('Enabling 2FA will invalidate all your existing sessions and you will have to login again.')} .row - .label 2FA Code - input(type='number' name='twofactor' placeholder='6 digits') + .label #{__('2FA Code')} + input(type='number' name='twofactor' placeholder=__('6 digits')) .row - input(type='submit', value='Submit') + input(type='submit', value=__('Submit'))