mirror of
https://github.com/vrana/adminer.git
synced 2026-03-06 12:31:45 +01:00
Join translations
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@875 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -50,7 +50,7 @@ function put_file_lang($match) {
|
||||
return "";
|
||||
}
|
||||
$return = "";
|
||||
foreach (glob(dirname(__FILE__) . "/$project/lang/*.inc.php") as $filename) {
|
||||
foreach (glob(dirname(__FILE__) . "/adminer/lang/*.inc.php") as $filename) {
|
||||
include $filename; // assign $translations
|
||||
$translation_ids = array_flip($lang_ids); // default translation
|
||||
foreach ($translations as $key => $val) {
|
||||
@@ -187,7 +187,7 @@ if (isset($_SERVER["argv"][1])) {
|
||||
echo "Usage: php compile.php [adminer] [lang]\nPurpose: Compile adminer[-lang].php from adminer/index.php.\n";
|
||||
exit(1);
|
||||
}
|
||||
include dirname(__FILE__) . "/$project/lang/$_COOKIE[adminer_lang].inc.php";
|
||||
include dirname(__FILE__) . "/adminer/lang/$_COOKIE[adminer_lang].inc.php";
|
||||
}
|
||||
|
||||
$file = file_get_contents(dirname(__FILE__) . "/$project/index.php");
|
||||
|
||||
Reference in New Issue
Block a user