Skip to content
Snippets Groups Projects
Verified Commit 7afa5342 authored by Pavel Vyskočil's avatar Pavel Vyskočil
Browse files

fix: fix the translations

* fix the translation in loginuserpass page for einfra theme
parent 7e755273
No related branches found
No related tags found
1 merge request!43fix: fix the translations in loginuserpass page for einfra theme
......@@ -24,5 +24,17 @@
"user_pass_text": {
"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."
},
"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);
$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) {
$this->data['autofocus'] = 'password';
......@@ -18,17 +18,13 @@ if ($this->data['errorcode'] !== null) {
<strong>
<?php
echo htmlspecialchars($this->t(
'{errors:title_' . $this->data['errorcode'] . '}',
$this->data['errorparams']
)); ?>
echo htmlspecialchars($this->t('{cesnet:einfra:loginuserpass_error_title}')); ?>
</strong>
<?php
echo htmlspecialchars($this->t(
'{errors:descr_' . $this->data['errorcode'] . '}',
$this->data['errorparams']
)); ?>
<p>
<?php
echo htmlspecialchars($this->t('{cesnet:einfra:loginuserpass_error_text}')); ?>
</p>
</div>
<?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment