mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 08:34:20 +02:00
Add instructions to translation files
This commit is contained in:
2
lang.php
2
lang.php
@@ -70,7 +70,7 @@ foreach (glob(__DIR__ . "/adminer/lang/" . ($_SESSION["lang"] ?: "*") . ".inc.ph
|
||||
}
|
||||
}
|
||||
}
|
||||
$s = "<?php\nnamespace Adminer;\n\n\$translations = array(\n$s);\n";
|
||||
$s = "<?php\nnamespace Adminer;\n\n\$translations = array(\n$s);\n\n// run `php ../../lang.php $lang` to update this file\n";
|
||||
if ($s != $file) {
|
||||
file_put_contents($filename, $s);
|
||||
echo "$filename updated.\n";
|
||||
|
Reference in New Issue
Block a user