Index: trunk/extensions/Translate/MessageCollection.php |
— | — | @@ -158,6 +158,7 @@ |
159 | 159 | $this->dbData = null; |
160 | 160 | $this->messages = null; |
161 | 161 | $this->infile = array(); |
| 162 | + $this->authors = array(); |
162 | 163 | unset($this->tags['fuzzy']); |
163 | 164 | } |
164 | 165 | |
Index: trunk/extensions/Translate/groups/FreeCol/FreeCol.yml |
— | — | @@ -23,7 +23,6 @@ |
24 | 24 | en-gb: en_GB |
25 | 25 | en-us: en_US |
26 | 26 | pt: pt_PT |
27 | | - pt-pt: pt_PT |
28 | 27 | pt-br: pt_BR |
29 | 28 | |
30 | 29 | CHECKER: |
Index: trunk/extensions/Translate/Groups.php |
— | — | @@ -211,7 +211,11 @@ |
212 | 212 | } |
213 | 213 | |
214 | 214 | 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 | + } |
216 | 220 | } |
217 | 221 | } |
218 | 222 | |
— | — | @@ -221,7 +225,7 @@ |
222 | 226 | |
223 | 227 | class MediaWikiMessageGroup extends FileBasedMessageGroup { |
224 | 228 | protected function mapCode( $code ) { |
225 | | - return ucfirst( str_replace( '-', '_', $code ) ); |
| 229 | + return ucfirst( str_replace( '-', '_', parent::mapCode($code) ) ); |
226 | 230 | } |
227 | 231 | |
228 | 232 | protected function setTags( MessageCollection $collection ) { |