cvs: smarty /docs/scripts file-entities.php.in
"Mehdi Achour" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsdidou1081846029@cvsserver> |
didou Tue Apr 13 04:47:09 2004 EDT
Modified files:
/smarty/docs/scripts file-entities.php.in
Log:
make this scan new splitted files
http://cvs.php.net/diff.php/smarty/docs/scripts/file-entities.php.in?r1=1.1&r2=1.2&ty=u
Index: smarty/docs/scripts/file-entities.php.in
diff -u smarty/docs/scripts/file-entities.php.in:1.1 smarty/docs/scripts/file-entities.php.in:1.2
--- smarty/docs/scripts/file-entities.php.in:1.1 Tue Apr 13 03:26:16 2004
+++ smarty/docs/scripts/file-entities.php.in Tue Apr 13 04:47:09 2004
@@ -17,7 +17,7 @@
| Gabor Hojtsy <[email protected]> |
+----------------------------------------------------------------------+
- $Id: file-entities.php.in,v 1.1 2004/04/13 07:26:16 didou Exp $
+ $Id: file-entities.php.in,v 1.2 2004/04/13 08:47:09 didou Exp $
*/
/**
@@ -132,20 +132,13 @@
* @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 @@
$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")) {
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php