mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
AdminerLoginOtp: Translate
This commit is contained in:
@@ -22,7 +22,7 @@ class AdminerLoginOtp extends Adminer\Plugin {
|
|||||||
function loginFormField($name, $heading, $value) {
|
function loginFormField($name, $heading, $value) {
|
||||||
if ($name == 'password') {
|
if ($name == 'password') {
|
||||||
return $heading . $value . "\n"
|
return $heading . $value . "\n"
|
||||||
. "<tr><th><acronym title='One Time Password' lang='en'>OTP</acronym>"
|
. "<tr><th><abbr title='" . $this->lang('One Time Password') . "'>OTP</abbr>"
|
||||||
. "<td><input type='number' name='auth[otp]' value='" . Adminer\h($_SESSION["otp"]) . "' size='6' autocomplete='one-time-code' inputmode='numeric' maxlength='6' pattern='\d{6}'>\n"
|
. "<td><input type='number' name='auth[otp]' value='" . Adminer\h($_SESSION["otp"]) . "' size='6' autocomplete='one-time-code' inputmode='numeric' maxlength='6' pattern='\d{6}'>\n"
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
@@ -39,7 +39,7 @@ class AdminerLoginOtp extends Adminer\Plugin {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 'Invalid OTP.';
|
return $this->lang('Invalid OTP.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,10 +56,24 @@ class AdminerLoginOtp extends Adminer\Plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected $translations = array(
|
protected $translations = array(
|
||||||
'cs' => array('' => 'Při přihlášení požaduje jednorázové heslo'),
|
'cs' => array(
|
||||||
'de' => array('' => 'Bei der Anmeldung ist ein Einmalpasswort (Zwei-Faktor-Authentifizierung) erforderlich'),
|
'' => 'Při přihlášení požaduje jednorázové heslo',
|
||||||
'pl' => array('' => 'Wymagaj jednorazowego hasła przy logowaniu'),
|
'One Time Password' => 'Jednorázové heslo',
|
||||||
'ro' => array('' => 'Cereți o parolă unică la autentificare'),
|
'Invalid OTP.' => 'Neplatné jednorázové heslo.',
|
||||||
'ja' => array('' => 'ログイン時にワンタイムパスワード (二要素認証) が必要'),
|
),
|
||||||
|
'de' => array(
|
||||||
|
'' => 'Bei der Anmeldung ist ein Einmalpasswort (Zwei-Faktor-Authentifizierung) erforderlich',
|
||||||
|
'One Time Password' => 'Einmal-Passwort',
|
||||||
|
'Invalid OTP.' => 'Ungültiger OTP.',
|
||||||
|
),
|
||||||
|
'pl' => array(
|
||||||
|
'' => 'Wymagaj jednorazowego hasła przy logowaniu',
|
||||||
|
),
|
||||||
|
'ro' => array(
|
||||||
|
'' => 'Cereți o parolă unică la autentificare',
|
||||||
|
),
|
||||||
|
'ja' => array(
|
||||||
|
'' => 'ログイン時にワンタイムパスワード (二要素認証) が必要',
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user