diff --git a/adminer/include/connect.inc.php b/adminer/include/connect.inc.php
index 884acdb2..58dac265 100644
--- a/adminer/include/connect.inc.php
+++ b/adminer/include/connect.inc.php
@@ -100,7 +100,12 @@ if (
$description = $match[1];
}
}
- echo "
" . get_class($plugin) . "" . h($description ? ": $description" : "") . "\n";
+ $screenshot = (method_exists($plugin, 'screenshot') ? $plugin->screenshot() : "");
+ echo "" . get_class($plugin) . ""
+ . h($description ? ": $description" : "")
+ . ($screenshot ? " (" . lang('screenshot') . ")" : "")
+ . "\n"
+ ;
}
echo "\n";
echo "\n";
diff --git a/adminer/include/plugin.inc.php b/adminer/include/plugin.inc.php
index 08c8f216..dfbf7871 100644
--- a/adminer/include/plugin.inc.php
+++ b/adminer/include/plugin.inc.php
@@ -12,6 +12,13 @@ abstract class Plugin {
return $this->lang('');
}
+ /** Get URL of plugin screenshot
+ * @return string
+ */
+ function screenshot() {
+ return "";
+ }
+
/** Translate a string from static::$translations; use Adminer\lang() for strings used by Adminer
* @param literal-string $idf
* @param float|string $number
diff --git a/adminer/lang/cs.inc.php b/adminer/lang/cs.inc.php
index 308cf061..21c4575d 100644
--- a/adminer/lang/cs.inc.php
+++ b/adminer/lang/cs.inc.php
@@ -13,9 +13,6 @@ Lang::$translations = array(
'Logged as: %s' => 'Přihlášen jako: %s',
'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.',
'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í.',
@@ -352,6 +349,11 @@ Lang::$translations = array(
'Check has been created.' => 'Kontrola byla vytvořena.',
'Check has been altered.' => 'Kontrola byla změněna.',
'Check has been dropped.' => 'Kontrola byla odstraněna.',
+
+ 'Loaded plugins' => 'Nahrané pluginy',
+ '%s must return an array.' => '%s musí vracet pole.',
+ 'Configure %s in %s.' => 'Nakonfigurujte %s v %s.',
+ 'screenshot' => 'obrázek',
);
// run `php ../../lang.php cs` to update this file
diff --git a/adminer/lang/xx.inc.php b/adminer/lang/xx.inc.php
index b74fb811..7217c8a4 100644
--- a/adminer/lang/xx.inc.php
+++ b/adminer/lang/xx.inc.php
@@ -13,9 +13,6 @@ Lang::$translations = array(
'Logged as: %s' => 'Xx: %s',
'Logout successful.' => 'Xx.',
'Thanks for using Adminer, consider donating.' => 'Xx xx.',
- 'Loaded plugins' => 'Xx',
- '%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.',
@@ -354,6 +351,11 @@ Lang::$translations = array(
'Check has been created.' => 'Xx.',
'Check has been altered.' => 'Xx.',
'Check has been dropped.' => 'Xx.',
+
+ 'Loaded plugins' => 'Xx',
+ '%s must return an array.' => '%s xx xx.',
+ 'Configure %s in %s.' => 'Xx %s xx %s.',
+ 'screenshot' => 'xx',
);
// run `php ../../lang.php xx` to update this file
diff --git a/plugins/backward-keys.php b/plugins/backward-keys.php
index 67bb5a08..33754ea9 100644
--- a/plugins/backward-keys.php
+++ b/plugins/backward-keys.php
@@ -1,7 +1,6 @@
array('' => 'Zobrazí odkazy na tabulky odkazující aktuální řádek, stejně jako Adminer Editor'),
);
diff --git a/plugins/codemirror.php b/plugins/codemirror.php
index 746a1ac6..d51c53d3 100644
--- a/plugins/codemirror.php
+++ b/plugins/codemirror.php
@@ -98,6 +98,10 @@ addEventListener('DOMContentLoaded', () => {
return true;
}
+ function screenshot() {
+ return "https://www.adminer.org/static/plugins/codemirror.gif";
+ }
+
protected static $translations = array(
'cs' => array('' => 'Použít CodeMirror 5 pro zvýrazňování syntaxe a