Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 091f46f

Browse files
author
Billy Clark
committed
needed soem translations and minor adjustment to layout.
1 parent 557cb76 commit 091f46f

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

dictionaries/login.definition.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,11 @@
3434
"es": "Iniciar sesión",
3535
"fr": "Connexion",
3636
"ko": "로그인"
37+
},
38+
"forgot": {
39+
"en": "Forgot your password? Reset it now",
40+
"es": "¿Olvidaste tu contraseña? Restablecer ahora",
41+
"fr": "Mot de passe oublié? Réinitialisez-le maintenant",
42+
"ko": "비밀번호를 잊어 버렸습니까? 지금 다시 설정하십시오"
3743
}
3844
}

themes/material/core/loginuserpass.php

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$siteKey = $this->data['recaptcha.siteKey'] ?? null;
44
$username = $this->data['username'] ?? null;
55
$forgotPasswordUrl = $this->data['forgotPasswordUrl'] ?? null;
6-
6+
77
$errorCode = $this->data['errorcode'] ?? null;
88
$errorMessageKey = $this->data['errorparams'][1] ?? '{material:login:error_wronguserpass}';
99
$errorMessageTokens = $this->data['errorparams'][2] ?? [];
@@ -72,7 +72,7 @@ function onRecaptchaLoad() {
7272
<input type="password" name="password" class="mdl-textfield__input"
7373
<?= ! empty($username) ? 'autofocus' : '' ?> />
7474
</div>
75-
75+
7676
<?php
7777
if ($errorCode == 'WRONGUSERPASS') {
7878
?>
@@ -91,9 +91,19 @@ function onRecaptchaLoad() {
9191
<button class="mdl-button mdl-button--colored mdl-button--raised">
9292
<?= $this->t('{material:login:button_login}') ?>
9393
</button>
94-
<?php if ( ! empty($forgotPasswordUrl)): ?>
95-
<a href="<?= htmlentities($forgotPasswordUrl); ?>" target="_blank">Forgot password?</a>
96-
<?php endif; ?>
94+
95+
<?php
96+
if (! empty($forgotPasswordUrl)) {
97+
?>
98+
<p class="mdl-typography--caption margin">
99+
<a href="<?= htmlentities($forgotPasswordUrl) ?>"
100+
target="_blank">
101+
<?= $this->t('{material:login:forgot}') ?>
102+
</a>
103+
<p>
104+
<?php
105+
}
106+
?>
97107
</form>
98108
</main>
99109

0 commit comments

Comments
 (0)