From 36f13031f7230954d604ca442c4e54389711d25e Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 7 May 2018 12:21:31 +0200 Subject: [PATCH] Improve error message --- adminer/include/adminer.inc.php | 4 ++-- adminer/lang/cs.inc.php | 2 +- adminer/lang/xx.inc.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 733adf7d..390098a4 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -145,8 +145,8 @@ class Adminer { * @return mixed true for success, string for error message, false for unknown error */ function login($login, $password) { - if ($password == "") { //! password is optional in Elastic and Mongo - return lang('Implement %s method to use password-less database.', target_blank(), 'login()'); + if ($password == "") { + return lang('Adminer does not support accessing a database without a password, more information.', target_blank()); } return true; } diff --git a/adminer/lang/cs.inc.php b/adminer/lang/cs.inc.php index 6c89f521..ca0d59c7 100644 --- a/adminer/lang/cs.inc.php +++ b/adminer/lang/cs.inc.php @@ -12,7 +12,7 @@ $translations = array( 'Logout successful.' => 'Odhlášení proběhlo v pořádku.', 'Thanks for using Adminer, consider donating.' => 'Díky za použití Admineru, příspějte na vývoj.', 'Invalid credentials.' => 'Neplatné přihlašovací údaje.', - 'Implement %s method to use password-less database.' => 'Pro přihlášení bez hesla implementujte metodu %s.', + 'Adminer does not support accessing a database without a password, more information.' => 'Adminer nepodporuje přístup k databázi bez hesla, více informací.', 'Database does not support password.' => 'Databáze nepodporuje heslo.', 'Too many unsuccessful logins, try again in %d minute(s).' => array('Příliš mnoho pokusů o přihlášení, zkuste to znovu za %d minutu.', 'Příliš mnoho pokusů o přihlášení, zkuste to znovu za %d minuty.', 'Příliš mnoho pokusů o přihlášení, zkuste to znovu za %d minut.'), 'Master password expired. Implement %s method to make it permanent.' => 'Platnost hlavního hesla vypršela. Implementujte metodu %s, aby platilo stále.', diff --git a/adminer/lang/xx.inc.php b/adminer/lang/xx.inc.php index ba6d7a01..2c3babc5 100644 --- a/adminer/lang/xx.inc.php +++ b/adminer/lang/xx.inc.php @@ -12,7 +12,7 @@ $translations = array( 'Logout successful.' => 'Xx.', 'Thanks for using Adminer, consider donating.' => 'Xx xx.', 'Invalid credentials.' => 'Xx.', - 'Implement %s method to use password-less database.' => 'Xx %s xx.', + 'Adminer does not support accessing a database without a password, more information.' => 'Xx, xx.', 'Database does not support password.' => 'Xx.', 'Too many unsuccessful logins, try again in %d minute(s).' => array('Xx %d.', 'Xx %d.'), 'Master password expired. Implement %s method to make it permanent.' => 'Xx %s xx.',