Ticket #35499: add-textdomain.php.patch
File add-textdomain.php.patch, 677 bytes (added by , 9 years ago) |
---|
-
add-textdomain.php
112 112 array_shift($argv); 113 113 } 114 114 115 $adddomain->process_file($argv[1], $argv[2], $inplace); 115 if (is_dir($argv[2])) { 116 $objects = new RecursiveDirectoryIterator($argv[2]); 117 foreach (new RecursiveIteratorIterator($objects) as $filename => $cur) { 118 $extension = explode('.', $filename); 119 if(end($extension) == 'php') { 120 $adddomain->process_file($argv[1], $filename, $inplace); 121 } 122 } 123 } else { 124 $adddomain->process_file($argv[1], $argv[2], $inplace); 125 } 116 126 } 117 127 118 128 ?>