Skip to content
Snippets Groups Projects
Unverified Commit e778ba64 authored by Pavel Vyskočil's avatar Pavel Vyskočil Committed by GitHub
Browse files

Merge pull request #43 from vyskocilpavel/fix_loginuserpass

fix: fix the translations in loginuserpass page for einfra theme
parents 7e755273 7afa5342
No related branches found
No related tags found
No related merge requests found
...@@ -24,5 +24,17 @@ ...@@ -24,5 +24,17 @@
"user_pass_text": { "user_pass_text": {
"en": "A service has requested you to authenticate yourself. </br>Please enter your login and password in the form below.", "en": "A service has requested you to authenticate yourself. </br>Please enter your login and password in the form below.",
"cs": "Služba požaduje vaši identifikaci. Prosím vložte svůj login a heslo, které jste si zvolili během registrace." "cs": "Služba požaduje vaši identifikaci. Prosím vložte svůj login a heslo, které jste si zvolili během registrace."
},
"user_pass_header": {
"en": "Enter your login and password",
"cs": "Vložte svůj login a heslo"
},
"loginuserpass_error_title": {
"en": "Incorrect login or password",
"cs": "Neplatný login a heslo"
},
"loginuserpass_error_text": {
"en": "Either no user with the given login could be found, or the password you gave was wrong. Please check the login and try again.",
"cs": "Uživatel s daným loginem buď nebyl nalezen, nebo jste zadal špatné heslo. Prosím zkontrolujte login a zkuste se přihlásit znovu."
} }
} }
<?php declare(strict_types=1); <?php declare(strict_types=1);
$this->data['header'] = $this->t('{login:user_pass_header}'); $this->data['header'] = $this->t('{cesnet:einfra:user_pass_header}');
if (strlen($this->data['username']) > 0) { if (strlen($this->data['username']) > 0) {
$this->data['autofocus'] = 'password'; $this->data['autofocus'] = 'password';
...@@ -18,17 +18,13 @@ if ($this->data['errorcode'] !== null) { ...@@ -18,17 +18,13 @@ if ($this->data['errorcode'] !== null) {
<strong> <strong>
<?php <?php
echo htmlspecialchars($this->t( echo htmlspecialchars($this->t('{cesnet:einfra:loginuserpass_error_title}')); ?>
'{errors:title_' . $this->data['errorcode'] . '}',
$this->data['errorparams']
)); ?>
</strong> </strong>
<p>
<?php <?php
echo htmlspecialchars($this->t( echo htmlspecialchars($this->t('{cesnet:einfra:loginuserpass_error_text}')); ?>
'{errors:descr_' . $this->data['errorcode'] . '}', </p>
$this->data['errorparams']
)); ?>
</div> </div>
<?php <?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment