r57340 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57339‎ | r57340 | r57341 >
Date:18:40, 3 October 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Take 'nol10n' into account for continent
Modified paths:
  • /trunk/extensions/Translate/scripts/groupStatistics.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/groupStatistics.php
@@ -314,8 +314,11 @@
315315 if( $mostSpokenLanguages[$code][4] == 'multiple' ) {
316316 $continent = '';
317317 } else {
318 - $continent = "{{int:timezoneregion-" . $mostSpokenLanguages[$code][4] . "}}";
 318+ $continent = isset( $options['nol10n'] ) ?
 319+ ucfirst ( $mostSpokenLanguages[$code][4] ) :
 320+ "{{int:timezoneregion-" . $mostSpokenLanguages[$code][4] . "}}";
319321 }
 322+
320323 $out->element( $continent );
321324 }
322325

Status & tagging log