r58359 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58358‎ | r58359 | r58360 >
Date:12:08, 30 October 2009
Author:catrope
Status:ok
Tags:
Comment:
wmf-deployment: Merge r58358 (fix LocalisationUpdate for languages with '-' in name) from trunk
Modified paths:
  • /branches/wmf-deployment/extensions/LocalisationUpdate/LocalisationUpdate.class.php (modified) (history)

Diff [purge]

Index: branches/wmf-deployment/extensions/LocalisationUpdate/LocalisationUpdate.class.php
@@ -192,7 +192,7 @@
193193 // Get the languagecode
194194 $m = array();
195195 preg_match( '/Messages([A-Z][a-z_]+)\.php$/', $basefile, $m );
196 - $langcode = strtolower( $m[1] );
 196+ $langcode = str_replace( '_', '-', strtolower( $m[1] ) );
197197
198198 $basefilecontents = self::getFileContents( $basefile );
199199 if ( $basefilecontents === false || $basefilecontents === "" ) return array(); // Failed
Property changes on: branches/wmf-deployment/extensions/LocalisationUpdate/LocalisationUpdate.class.php
___________________________________________________________________
Name: svn:mergeinfo
200200 + /trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php:56151-57449,58213,58358
/trunk/phase3/extensions/LocalisationUpdate/LocalisationUpdate.class.php:55198,56213,56215-56216,56218,56325,56334-56336,56338,56340,56343,56345,56347,56350,57154-57447

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r58358LocalisationUpdate: Fix bug where languages with '-' in their name would not ...catrope12:07, 30 October 2009

Status & tagging log