diff --git a/adminer/include/plugins.inc.php b/adminer/include/plugins.inc.php
index d1e9fcb5..2a6eca6a 100644
--- a/adminer/include/plugins.inc.php
+++ b/adminer/include/plugins.inc.php
@@ -2,8 +2,8 @@
namespace Adminer;
class Plugins extends Adminer {
- public $plugins; ///< @var protected(set)
- public $error = ''; ///< @var protected(set)
+ public $plugins; ///< @var protected(set) array
+ public $error = ''; ///< @var protected(set) string HTML
/** Register plugins
* @param array object instances or null to autoload plugins from adminer-plugins/
@@ -17,6 +17,7 @@ class Plugins extends Adminer {
$include = include_once "./$filename";
}
}
+ $help = " href='https://www.adminer.org/plugins/#use'" . target_blank();
if (file_exists("$basename.php")) {
$include = include_once "./$basename.php"; // example: return array(new AdminerLoginOtp($secret))
if (is_array($include)) {
@@ -24,7 +25,7 @@ class Plugins extends Adminer {
$plugins[get_class($plugin)] = $plugin;
}
} else {
- $this->error .= lang('%s must return an array.', "$basename.php") . "
";
+ $this->error .= lang('%s must return an array.', "$basename.php", $help) . "
";
}
}
foreach (get_declared_classes() as $class) {
@@ -32,7 +33,7 @@ class Plugins extends Adminer {
$reflection = new \ReflectionClass($class);
$constructor = $reflection->getConstructor();
if ($constructor && $constructor->getNumberOfRequiredParameters()) {
- $this->error .= lang('Configure %s in %s.', $class, "$basename.php") . "
";
+ $this->error .= lang('Configure %s in %s.', $help, "$class", "$basename.php") . "
";
} else {
$plugins[$class] = new $class;
}
diff --git a/adminer/lang/cs.inc.php b/adminer/lang/cs.inc.php
index 6ae4cc96..2b8d4c4d 100644
--- a/adminer/lang/cs.inc.php
+++ b/adminer/lang/cs.inc.php
@@ -14,8 +14,8 @@ $translations = array(
'Logout successful.' => 'Odhlášení proběhlo v pořádku.',
'Thanks for using Adminer, consider donating.' => 'Díky za použití Admineru, přispějte na vývoj.',
'Loaded plugins' => 'Nahrané pluginy',
- '%s must return an array.' => '%s musí vracet pole.',
- 'Configure %s in %s.' => 'Nakonfigurujte %s v %s.',
+ '%s must return an array.' => '%s musí vracet pole.',
+ 'Configure %s in %s.' => 'Nakonfigurujte %s v %s.',
'Invalid credentials.' => 'Neplatné přihlašovací údaje.',
'There is a space in the input password which might be the cause.' => 'Problém může být, že je v zadaném hesle mezera.',
'Adminer does not support accessing a database without a password, more information.' => 'Adminer nepodporuje přístup k databázi bez hesla, více informací.',
diff --git a/adminer/lang/pl.inc.php b/adminer/lang/pl.inc.php
index aeaa263d..cacdab35 100644
--- a/adminer/lang/pl.inc.php
+++ b/adminer/lang/pl.inc.php
@@ -14,8 +14,8 @@ $translations = array(
'Logout successful.' => 'Wylogowano pomyślnie.',
'Thanks for using Adminer, consider donating.' => 'Dziękujemy za używanie Adminera, rozważ dotację.',
'Loaded plugins' => 'Wczytane wtyczki',
- '%s must return an array.' => '%s musi zwrócić tablicę.',
- 'Configure %s in %s.' => 'Skonfiguruj %s w %s.',
+ '%s must return an array.' => '%s musi zwrócić tablicę.',
+ 'Configure %s in %s.' => 'Skonfiguruj %s w %s.',
'Invalid credentials.' => 'Nieprawidłowe dane logowania.',
'There is a space in the input password which might be the cause.' => 'W haśle wejściowym znajduje się spacja, która może być przyczyną.',
'Adminer does not support accessing a database without a password, more information.' => 'Adminer nie obsługuje dostępu do bazy danych bez hasła, więcej informacji.',
diff --git a/adminer/lang/xx.inc.php b/adminer/lang/xx.inc.php
index d0a4b5b5..63c68ae2 100644
--- a/adminer/lang/xx.inc.php
+++ b/adminer/lang/xx.inc.php
@@ -14,8 +14,8 @@ $translations = array(
'Logout successful.' => 'Xx.',
'Thanks for using Adminer, consider donating.' => 'Xx xx.',
'Loaded plugins' => 'Xx',
- '%s must return an array.' => '%s xx.',
- 'Configure %s in %s.' => 'Xx %s xx %s.',
+ '%s must return an array.' => '%s xx xx.',
+ 'Configure %s in %s.' => 'Xx %s xx %s.',
'Invalid credentials.' => 'Xx.',
'There is a space in the input password which might be the cause.' => 'Xx.',
'Adminer does not support accessing a database without a password, more information.' => 'Xx, xx.',