cvs: docweb /scripts rev.php

[email protected] ("Philip Olson")
Newsgroups php.doc.web
Message-ID <cvsphilip1197587311@cvsserver>
philip		Thu Dec 13 23:08:31 2007 UTC

  Modified files:              
    /docweb/scripts	rev.php 
  Log:
  Add skips for untranslated files, namely entities.<extname>.xml instead of functions.xml
  
  
http://cvs.php.net/viewvc.cgi/docweb/scripts/rev.php?r1=1.19&r2=1.20&diff_format=u
Index: docweb/scripts/rev.php
diff -u docweb/scripts/rev.php:1.19 docweb/scripts/rev.php:1.20
--- docweb/scripts/rev.php:1.19	Sun Mar  4 00:49:38 2007
+++ docweb/scripts/rev.php	Thu Dec 13 23:08:31 2007
@@ -91,7 +91,7 @@
     }
     
     if (!is_dir($DOCS . $LANGS[$i])) {
-        echo "Error: the \"{$LANGS[$i]}\" lang doesn't exist for $TYPE, skipping..\n";
+        echo "Error: the \"{$LANGS[$i]}\" lang doesn't exist for $TYPE in dir {$DOCS}, skipping..\n";
         unset($LANGS[$i]);
     }
 }
@@ -289,10 +289,15 @@
         while (($file = readdir($dh)) !== false) {
             if (
             (!is_dir($DOCS . 'en' . $dir.'/' .$file) && !in_array(substr($file, -3), array('xml','ent')) && substr($file, -13) != 'PHPEditBackup' )
-            || ($file == "functions.xml" && strpos($dir, '/reference') !== false)
-            || $dir == '/chmonly' || $dir == '/internals'
+            || (strpos($file, 'entities.') === 0 && $dir == '/reference')
+            || $dir == '/chmonly' || $dir == '/internals' || $dir == '/internals2'
             || $file == 'contributors.ent' || $file == 'contributors.xml'
-            || ($dir == '/appendices' && $file == 'reserved.constants.xml')) {
+            || ($dir == '/appendices' && ($file == 'reserved.constants.xml' || $file == 'extensions.xml'))
+            || $file == 'README'
+            || $file == 'DO_NOT_TRANSLATE'
+            || $file == 'rsusi.txt'
+            || $file == 'missing-ids.xml'
+            ) {
                 continue;
             }
 
@@ -370,10 +375,15 @@
         while (($file = readdir($dh)) !== false) {
             if (
             (!is_dir($DOCS . $lang . $dir.'/' .$file) && !in_array(substr($file, -3), array('xml','ent')) && substr($file, -13) != 'PHPEditBackup' )
-            || ($file == "functions.xml" && strpos($dir, '/reference') !== false)
-            || $dir == '/chmonly'
+            || (strpos($file, 'entities.') === 0 && $dir == '/reference')
+            || $dir == '/chmonly' || $dir == '/internals' || $dir == '/internals2'
             || $file == 'contributors.ent' || $file == 'contributors.xml'
-            || ($dir == '/appendices' && $file == 'reserved.constants.xml')) {
+            || ($dir == '/appendices' && ($file == 'reserved.constants.xml' || $file == 'extensions.xml'))
+            || $file == 'README'
+            || $file == 'DO_NOT_TRANSLATE'
+            || $file == 'rsusi.txt'
+            || $file == 'missing-ids.xml'
+            ) {
                 continue;
             }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.