Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -61,7 +61,16 @@ |
62 | 62 | * branches one can set a message key mangler. |
63 | 63 | */ |
64 | 64 | protected $mangler = null; |
65 | | - public function getMangler() { return $this->mangler; } |
| 65 | + public function getMangler() { |
| 66 | + $mangler = $this->mangler; |
| 67 | + |
| 68 | + if( !$mangler ) { |
| 69 | + $mangler = StringMatcher::emptyMatcher(); |
| 70 | + } |
| 71 | + |
| 72 | + return $mangler; |
| 73 | + } |
| 74 | + |
66 | 75 | public function setMangler( $value ) { $this->mangler = $value; } |
67 | 76 | |
68 | 77 | protected $type = 'undefined'; |
— | — | @@ -442,7 +451,7 @@ |
443 | 452 | |
444 | 453 | public function initCollection( $code, $unique = false ) { |
445 | 454 | $collection = parent::initCollection( $code, $unique ); |
446 | | - |
| 455 | + |
447 | 456 | $defs = $this->load( 'en' ); |
448 | 457 | foreach ( $defs as $key => $value ) { |
449 | 458 | $collection[$key] = new FatMessage( $key, implode( ", ", $value ) ); |
Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
14 | 14 | */ |
15 | 15 | |
16 | | -define( 'TRANSLATE_VERSION', '2009-11-13' ); |
| 16 | +define( 'TRANSLATE_VERSION', '2009-11-16' ); |
17 | 17 | |
18 | 18 | $wgExtensionCredits['specialpage'][] = array( |
19 | 19 | 'path' => __FILE__, |