r78979 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78978‎ | r78979 | r78980 >
Date:22:08, 24 December 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Update Wikia groups
Modified paths:
  • /trunk/extensions/Translate/groups/MediaWikiExtensions.php (modified) (history)
  • /trunk/extensions/Translate/groups/Wikia/WikiaExtensions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/Wikia/WikiaExtensions.php
@@ -15,6 +15,7 @@
1616 protected $useConfigure = false;
1717 protected $idPrefix = 'wikia-';
1818 protected $path = null;
 19+ protected $namespaces = array( NS_WIKIA, NS_WIKIA_TALK );
1920
2021 public function __construct() {
2122 global $wgTranslateGroupRoot;
Index: trunk/extensions/Translate/groups/MediaWikiExtensions.php
@@ -16,6 +16,7 @@
1717 protected $definitionFile = null;
1818 protected $useConfigure = true;
1919 protected $idPrefix = 'ext-';
 20+ protected $namespaces = array( NS_MEDIAWIKI, NS_MEDIAWIKI_TALK );
2021
2122 public function __construct() {
2223 global $wgTranslateExtensionDirectory;
@@ -190,6 +191,7 @@
191192 $group = ExtensionMessageGroup::factory( $info['name'], $id );
192193 $group->setMessageFile( $info['file'] );
193194 $group->setPath( $this->path );
 195+ $group->namespaces = $this->namespaces;
194196
195197 if ( isset( $info['prefix'] ) ) {
196198 $mangler = new StringMatcher( $info['prefix'], $info['mangle'] );

Status & tagging log