Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fill $lang_ids first

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@415 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
commit 932a71928868cd3f935ea6917f8c97bd46e2573f 1 parent 4738060
jakubvrana authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 _compile.php
View
5 _compile.php
@@ -28,17 +28,18 @@ function put_file($match) {
$return = "";
foreach (glob("lang/*.inc.php") as $filename) {
include $filename;
-
foreach ($translations as $key => $val) {
if (!isset($lang_ids[$key])) {
$lang_ids[$key] = count($lang_ids);
}
}
+ }
+ foreach (glob("lang/*.inc.php") as $filename) {
+ include $filename;
$translation_ids = array_flip($lang_ids);
foreach ($translations as $key => $val) {
$translation_ids[$lang_ids[$key]] = $val;
}
-
$return .= 'case "' . basename($filename, '.inc.php') . '": $translations = array(';
foreach ($translation_ids as $val) {
$return .= (is_array($val) ? "array('" . implode("', '", array_map('add_apo_slashes', $val)) . "')" : "'" . add_apo_slashes($val) . "'") . ", ";
Please sign in to comment.
Something went wrong with that request. Please try again.