1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

Plugins: Move lang() to Adminer\Plugin

This commit is contained in:
Jakub Vrana
2025-04-06 06:43:26 +02:00
parent 7ff1d82903
commit fb32c10f94
8 changed files with 30 additions and 31 deletions

View File

@@ -6,7 +6,7 @@
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
class AdminerMenuLinks {
class AdminerMenuLinks extends Adminer\Plugin {
private $menu;
/** @param ''|'table'|'select'|'auto' $menu see config() for explanation */
@@ -65,10 +65,6 @@ class AdminerMenuLinks {
return true;
}
protected function lang($idf, $number = null) {
return Adminer\lang_format(Adminer\idx(self::$translations[Adminer\LANG], $idf) ?: $idf, $number);
}
protected static $translations = array(
'cs' => array(
'Menu table links' => 'Odkazy na tabulky v menu',