Skip to content

Commit

Permalink
convert nag template to Twig
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 20, 2024
1 parent bdd37ea commit 558a296
Show file tree
Hide file tree
Showing 15 changed files with 257 additions and 193 deletions.
75 changes: 0 additions & 75 deletions modules/material/dictionaries/nag.definition.json

This file was deleted.

36 changes: 36 additions & 0 deletions modules/material/locales/en/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,42 @@ msgstr "Remember this browser for 30 days"
msgid "{mfa:unsupported}"
msgstr "Not supported in this browser"

msgid "{nag:mfa_title}"
msgstr "2-Step Verification"

msgid "{nag:mfa_header}"
msgstr "2-Step Verification"

msgid "{nag:method_title}"
msgstr "Password recovery methods"

msgid "{nag:method_header}"
msgstr "Password recovery methods"

msgid "{nag:shield_icon}"
msgstr "Shield icon"

msgid "{nag:header}"
msgstr "Protect yourself"

msgid "{nag:mfa_info}"
msgstr "Did you know you could easily increase the security of your identity account by enabling 2-Step Verification?"

msgid "{nag:method_info}"
msgstr "Do you forget your password sometimes? Did you know it is very easy to add an alternate email address for password recovery just in case?"

msgid "{nag:button_later}"
msgstr "Remind me later"

msgid "{nag:button_learn_more}"
msgstr "Learn more"

msgid "{nag:button_enable}"
msgstr "Enable now"

msgid "{nag:button_add}"
msgstr "Add one now"

msgid "{selectidp-links:title}"
msgstr "Choose an identity account"

Expand Down
36 changes: 36 additions & 0 deletions modules/material/locales/es/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,42 @@ msgstr "Recuerde esta navegador por 30 días"
msgid "{mfa:unsupported}"
msgstr "No compatible con este navegador"

msgid "{nag:mfa_title}"
msgstr "Verificación en 2 pasos"

msgid "{nag:mfa_header}"
msgstr "Verificación en 2 pasos"

msgid "{nag:method_title}"
msgstr "Métodos de recuperación de contraseña"

msgid "{nag:method_header}"
msgstr "Métodos de recuperación de contraseña"

msgid "{nag:shield_icon}"
msgstr "Icono de escudo"

msgid "{nag:header}"
msgstr "Protéjase"

msgid "{nag:mfa_info}"
msgstr "¿Sabía que podría aumentar fácilmente la seguridad de su cuenta de identidad al habilitar la verificación en dos pasos?"

msgid "{nag:method_info}"
msgstr "¿Olvidas tu contraseña a veces? ¿Sabía que es muy fácil agregar una dirección de correo electrónico alternativa para recuperar la contraseña por si acaso?"

msgid "{nag:button_later}"
msgstr "Recuérdame más tarde"

msgid "{nag:button_learn_more}"
msgstr "Aprende más"

msgid "{nag:button_enable}"
msgstr "Habilite ahora"

msgid "{nag:button_add}"
msgstr "Agrega uno ahora"

msgid "{selectidp-links:title}"
msgstr "Elige una cuenta de identidad"

Expand Down
36 changes: 36 additions & 0 deletions modules/material/locales/fr/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,42 @@ msgstr "Se rappeler de ce navigatuer pour 30 jours"
msgid "{mfa:unsupported}"
msgstr "Non pris en charge dans ce navigateur"

msgid "{nag:mfa_title}"
msgstr "Vérification en deux étapes"

msgid "{nag:mfa_header}"
msgstr "Vérification en deux étapes"

msgid "{nag:method_title}"
msgstr "Méthodes de récupération de mot de passe"

msgid "{nag:method_header}"
msgstr "Méthodes de récupération de mot de passe"

msgid "{nag:shield_icon}"
msgstr "Icône de bouclier"

msgid "{nag:header}"
msgstr "Protégez-vous"

msgid "{nag:mfa_info}"
msgstr "Savez-vous que vous pouvez facilement augmenter la sécurité de votre compte d'identité en activant la vérification en deux étapes?"

msgid "{nag:method_info}"
msgstr "Avez-vous oublié votre mot de passe parfois? Saviez-vous qu'il est très facile d'ajouter une adresse électronique de remplacement pour la récupération du mot de passe au cas où?"

msgid "{nag:button_later}"
msgstr "Rappelez-moi plus tard"

msgid "{nag:button_learn_more}"
msgstr "Apprendre encore plus"

msgid "{nag:button_enable}"
msgstr "Activer maintenant"

msgid "{nag:button_add}"
msgstr "Ajouter un maintenant"

msgid "{selectidp-links:title}"
msgstr "Choisissez un compte d'identité"

Expand Down
36 changes: 36 additions & 0 deletions modules/material/locales/ko/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,42 @@ msgstr "이 브라우저를 30일간 기억"
msgid "{mfa:unsupported}"
msgstr "이 브라우저에서는 지원되지 않습니다."

msgid "{nag:mfa_title}"
msgstr "2 단계 인증"

msgid "{nag:mfa_header}"
msgstr "2 단계 인증"

msgid "{nag:method_title}"
msgstr "비밀번호 복구 방법"

msgid "{nag:method_header}"
msgstr "비밀번호 복구 방법"

msgid "{nag:shield_icon}"
msgstr "방패 아이콘"

msgid "{nag:header}"
msgstr "자기 보호"

msgid "{nag:mfa_info}"
msgstr "2 단계 인증을 사용하여 신원 계정의 보안을 쉽게 높일 수 있다는 사실을 알고 계셨습니까?"

msgid "{nag:method_info}"
msgstr "가끔 암호를 잊어 버리십니까? 혹시라도 비밀번호 복구를 위해 보조 이메일 주소를 추가하는 것이 매우 쉽다는 것을 알고 계셨습니까?"

msgid "{nag:button_later}"
msgstr "추후 알림"

msgid "{nag:button_learn_more}"
msgstr "더 알아보기"

msgid "{nag:button_enable}"
msgstr "지금 사용"

msgid "{nag:button_add}"
msgstr "지금 하나 추가"

msgid "{selectidp-links:title}"
msgstr "ID 계정 선택"

Expand Down
52 changes: 0 additions & 52 deletions modules/material/themes/material/profilereview/nag-for-method.php

This file was deleted.

52 changes: 52 additions & 0 deletions modules/material/themes/material/profilereview/nag-for-method.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="{{ currentLanguage }}">
<head>
<title>{{ '{nag:method_title}'|trans }}</title>

{% include 'header.twig' %}
</head>
<body class="gradient-bg">
<div class="mdl-layout mdl-layout--fixed-header fill-viewport">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">
{{ '{nag:method_header}'|trans }}
</span>
</div>
</header>
<main class="mdl-layout__content" layout-children="column">
<form layout-children="column" method="post">
<div class="mdl-card mdl-shadow--8dp">
<div class="mdl-card__media white-bg margin" layout-children="column">
<img src="shield.svg" alt="{{ '{nag:shield_icon}'|trans }}">
</div>

<div class="mdl-card__title center">
<h1 class="mdl-card__title-text">
{{ '{nag:header}'|trans }}
</h1>
</div>

<div class="mdl-card__title center">
<p class="mdl-card__subtitle-text">
{{ '{nag:method_info}'|trans }}
</p>
</div>

<div class="mdl-card__actions" layout-children="row" child-spacing="space-around">
<button name="continue" class="mdl-button">
{{ '{nag:button_later}'|trans }}
</button>

<span flex></span>

<button name="update" class="mdl-button mdl-button--raised mdl-button--primary">
{{ '{nag:button_add}'|trans }}
</button>
</div>
</div>
</form>
</main>
</div>
</body>
</html>
Loading

0 comments on commit 558a296

Please sign in to comment.