Index: trunk/extensions/cldr/rebuild.php |
— | — | @@ -60,10 +60,10 @@ |
61 | 61 | |
62 | 62 | // If the file exists, parse it, otherwise display an error |
63 | 63 | if ( file_exists( $input ) ) { |
64 | | - $en = Language::factory('en'); |
65 | 64 | $p = new CLDRParser(); |
66 | 65 | $p->parse( $input, "$OUTPUT/" . LanguageNames::getFileName( getRealCode ( $code ) ) ); |
67 | | - while ($p->getAlias() != false) { |
| 66 | + // If the previously parsed file points to an alias, parse the alias |
| 67 | + while ( $p->getAlias() != false ) { |
68 | 68 | $codeCLDR = $p->getAlias(); |
69 | 69 | $input = "$DATA/$codeCLDR.xml"; |
70 | 70 | echo "Alias $codeCLDR found for $code\n"; |