@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | <div class="col-md-4"> |
33 | 33 | <select id="dir" name="dir" class="form-control"> |
34 | 34 | <option value="1">base, boot</option> |
35 | - <option value="2" <?php if(isset($_GET["dir"]) && $_GET["dir"] == '2'){echo("selected");}?>>dll</option> |
|
36 | - <option value="3" <?php if(isset($_GET["dir"]) && $_GET["dir"] == '3'){echo("selected");}?>>media, subsystems, win32ss</option> |
|
37 | - <option value="100" <?php if(isset($_GET["dir"]) && $_GET["dir"] == '100'){echo("selected");}?>>All ReactOS Source dir</option> |
|
35 | + <option value="2" <?php if (isset($_GET["dir"]) && $_GET["dir"] == '2') {echo("selected"); }?>>dll</option> |
|
36 | + <option value="3" <?php if (isset($_GET["dir"]) && $_GET["dir"] == '3') {echo("selected"); }?>>media, subsystems, win32ss</option> |
|
37 | + <option value="100" <?php if (isset($_GET["dir"]) && $_GET["dir"] == '100') {echo("selected"); }?>>All ReactOS Source dir</option> |
|
38 | 38 | </select> |
39 | 39 | </div> |
40 | 40 | </div> |
@@ -53,11 +53,11 @@ discard block |
||
53 | 53 | switch ($_GET["dir"]) |
54 | 54 | { |
55 | 55 | case "1": |
56 | - $directory1 = new RecursiveDirectoryIterator($ROSDir. "base/applications"); |
|
57 | - $directory2 = new RecursiveDirectoryIterator($ROSDir. "base/setup"); |
|
58 | - $directory3 = new RecursiveDirectoryIterator($ROSDir. "base/shell"); |
|
59 | - $directory4 = new RecursiveDirectoryIterator($ROSDir. "base/system"); |
|
60 | - $directory5 = new RecursiveDirectoryIterator($ROSDir. "boot/freeldr/fdebug"); |
|
56 | + $directory1 = new RecursiveDirectoryIterator($ROSDir."base/applications"); |
|
57 | + $directory2 = new RecursiveDirectoryIterator($ROSDir."base/setup"); |
|
58 | + $directory3 = new RecursiveDirectoryIterator($ROSDir."base/shell"); |
|
59 | + $directory4 = new RecursiveDirectoryIterator($ROSDir."base/system"); |
|
60 | + $directory5 = new RecursiveDirectoryIterator($ROSDir."boot/freeldr/fdebug"); |
|
61 | 61 | |
62 | 62 | $it = new AppendIterator(); |
63 | 63 | $it->append(new RecursiveIteratorIterator($directory1)); |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | break; |
69 | 69 | |
70 | 70 | case "2": |
71 | - $directory6 = new RecursiveDirectoryIterator($ROSDir. "dll/cpl"); |
|
72 | - $directory7 = new RecursiveDirectoryIterator($ROSDir. "dll/shellext"); |
|
73 | - $directory8 = new RecursiveDirectoryIterator($ROSDir. "dll/win32"); |
|
71 | + $directory6 = new RecursiveDirectoryIterator($ROSDir."dll/cpl"); |
|
72 | + $directory7 = new RecursiveDirectoryIterator($ROSDir."dll/shellext"); |
|
73 | + $directory8 = new RecursiveDirectoryIterator($ROSDir."dll/win32"); |
|
74 | 74 | |
75 | 75 | $it = new AppendIterator(); |
76 | 76 | $it->append(new RecursiveIteratorIterator($directory6)); |
@@ -79,9 +79,9 @@ discard block |
||
79 | 79 | break; |
80 | 80 | |
81 | 81 | case "3": |
82 | - $directory9 = new RecursiveDirectoryIterator($ROSDir. "media/themes"); |
|
83 | - $directory10 = new RecursiveDirectoryIterator($ROSDir. "subsystems/mvdm/ntvdm"); |
|
84 | - $directory11 = new RecursiveDirectoryIterator($ROSDir. "win32ss/user"); |
|
82 | + $directory9 = new RecursiveDirectoryIterator($ROSDir."media/themes"); |
|
83 | + $directory10 = new RecursiveDirectoryIterator($ROSDir."subsystems/mvdm/ntvdm"); |
|
84 | + $directory11 = new RecursiveDirectoryIterator($ROSDir."win32ss/user"); |
|
85 | 85 | |
86 | 86 | $it = new AppendIterator(); |
87 | 87 | $it->append(new RecursiveIteratorIterator($directory9)); |
@@ -144,30 +144,30 @@ discard block |
||
144 | 144 | |
145 | 145 | set_error_handler('exceptions_error_handler'); |
146 | 146 | |
147 | - $regex = new RegexIterator($it, '/^.+'. $langDir .'.+('. $originLang .')\.'. $fileExt .'$/i', RecursiveRegexIterator::GET_MATCH); |
|
147 | + $regex = new RegexIterator($it, '/^.+'.$langDir.'.+('.$originLang.')\.'.$fileExt.'$/i', RecursiveRegexIterator::GET_MATCH); |
|
148 | 148 | |
149 | 149 | $missing = $allStrings = 0; |
150 | 150 | |
151 | 151 | $lang = htmlspecialchars($_GET["lang"]); |
152 | 152 | // Search for eg. PL,Pl,pl |
153 | - $fileSearch = strtoupper($lang) .",". ucfirst($lang) .",". strtolower($lang); |
|
153 | + $fileSearch = strtoupper($lang).",".ucfirst($lang).",".strtolower($lang); |
|
154 | 154 | |
155 | 155 | // ReactOS and Wine Strings - array |
156 | 156 | $ignoredROSStrings = file($ROSSpellFilename, FILE_IGNORE_NEW_LINES); |
157 | 157 | $ignoredWineStrings = file($wineSpellFilename, FILE_IGNORE_NEW_LINES); |
158 | 158 | |
159 | 159 | $regex->rewind(); |
160 | - while($regex->valid()) |
|
160 | + while ($regex->valid()) |
|
161 | 161 | { |
162 | 162 | if (!$regex->isDot()) |
163 | 163 | { |
164 | - $file = glob($regex->getPathInfo() ."/*{". $fileSearch ."}*.". $fileExt, GLOB_BRACE); |
|
164 | + $file = glob($regex->getPathInfo()."/*{".$fileSearch."}*.".$fileExt, GLOB_BRACE); |
|
165 | 165 | |
166 | 166 | $isFile = array_filter($file); |
167 | 167 | |
168 | 168 | if (empty($isFile)) |
169 | 169 | { |
170 | - echo '<b>No translation</b> for path '. $regex->getPathInfo() .'<hr>'; |
|
170 | + echo '<b>No translation</b> for path '.$regex->getPathInfo().'<hr>'; |
|
171 | 171 | } else |
172 | 172 | { |
173 | 173 | $fileContent1 = file_get_contents($regex->key()); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | |
178 | 178 | if ($array['diff']) |
179 | 179 | { |
180 | - echo $regex->getPathInfo() .'<br><br>'; |
|
180 | + echo $regex->getPathInfo().'<br><br>'; |
|
181 | 181 | |
182 | 182 | $currentMissing = $missing; |
183 | 183 | |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | // Check if this same and ignore some words |
190 | 190 | if ($english === $array['rightVersion'][$index] && !in_array($english, $ignoredROSStrings) && !in_array($english, $ignoredWineStrings)) |
191 | 191 | { |
192 | - echo "<b>Missing translation:</b> ". htmlspecialchars($english) ."<br>"; |
|
192 | + echo "<b>Missing translation:</b> ".htmlspecialchars($english)."<br>"; |
|
193 | 193 | $missing++; |
194 | 194 | } |
195 | 195 | $allStrings++; |