Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php |
— | — | @@ -192,7 +192,7 @@ |
193 | 193 | // Get the languagecode |
194 | 194 | $m = array(); |
195 | 195 | preg_match( '/Messages([A-Z][a-z_]+)\.php$/', $basefile, $m ); |
196 | | - $langcode = strtolower( $m[1] ); |
| 196 | + $langcode = str_replace( '_', '-', strtolower( $m[1] ) ); |
197 | 197 | |
198 | 198 | $basefilecontents = self::getFileContents( $basefile ); |
199 | 199 | if ( $basefilecontents === false || $basefilecontents === "" ) return array(); // Failed |