r53644 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53643‎ | r53644 | r53645 >
Date:15:06, 22 July 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
* Bugfixes
Modified paths:
  • /trunk/extensions/Translate/Groups.php (modified) (history)
  • /trunk/extensions/Translate/MessageCollection.php (modified) (history)
  • /trunk/extensions/Translate/groups/FreeCol/FreeCol.yml (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/MessageCollection.php
@@ -158,6 +158,7 @@
159159 $this->dbData = null;
160160 $this->messages = null;
161161 $this->infile = array();
 162+ $this->authors = array();
162163 unset($this->tags['fuzzy']);
163164 }
164165
Index: trunk/extensions/Translate/groups/FreeCol/FreeCol.yml
@@ -23,7 +23,6 @@
2424 en-gb: en_GB
2525 en-us: en_US
2626 pt: pt_PT
27 - pt-pt: pt_PT
2827 pt-br: pt_BR
2928
3029 CHECKER:
Index: trunk/extensions/Translate/Groups.php
@@ -211,7 +211,11 @@
212212 }
213213
214214 protected function mapCode( $code ) {
215 - return $code;
 215+ if ( isset($this->conf['FILES']['codeMap'][$code]) ) {
 216+ return $this->conf['FILES']['codeMap'][$code];
 217+ } else {
 218+ return $code;
 219+ }
216220 }
217221 }
218222
@@ -221,7 +225,7 @@
222226
223227 class MediaWikiMessageGroup extends FileBasedMessageGroup {
224228 protected function mapCode( $code ) {
225 - return ucfirst( str_replace( '-', '_', $code ) );
 229+ return ucfirst( str_replace( '-', '_', parent::mapCode($code) ) );
226230 }
227231
228232 protected function setTags( MessageCollection $collection ) {

Status & tagging log