From 12df73e5714f5dd924e3d81a2e539e0a58e4d544 Mon Sep 17 00:00:00 2001 From: didou Date: Tue, 13 Apr 2004 08:47:09 +0000 Subject: [PATCH] make this scan new splitted files --- docs/scripts/file-entities.php.in | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/scripts/file-entities.php.in b/docs/scripts/file-entities.php.in index b2de422a..7253d82c 100644 --- a/docs/scripts/file-entities.php.in +++ b/docs/scripts/file-entities.php.in @@ -132,20 +132,13 @@ function abs_path($path) { * @return boolean Success signal */ function file_entities($work_dir, $trans_dir, $orig_dir, &$entities) { - - // Skip the function directory not under "reference". That - // folder is only kept for backward compatibility and only - // in the English version of the docs. - if (strpos($work_dir, "functions") && !preg_match("!reference/.*/functions!", $work_dir)) { - return; - } // Compute translated version's path $trans_path = str_replace($orig_dir, $trans_dir, $work_dir); // Try to open English working directory $dh = opendir($work_dir); - if (!$dh) { return FALSE; } + if (!$dh) { echo "lllll"; return FALSE; } // If the working directory is a reference functions directory if (preg_match("!/reference/.*/functions$!", $work_dir)) { @@ -257,6 +250,7 @@ function file_entities($work_dir, $trans_dir, $orig_dir, &$entities) { $work_dir . "/" . preg_replace("!\\.xml$!", "", $file) ); $name = fname2entname($name); + echo $name; // If the file found is not in the English dir, append to entities list if (!file_exists("$work_dir/$file")) {