KartikMistry has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/106485


Change subject: Update special page Special:ContentTranslation
......................................................................

Update special page Special:ContentTranslation

Change-Id: I4bd00c91d06f6591eeec06227512885b5186686a
---
M Autoload.php
M ContentTranslation.php
2 files changed, 10 insertions(+), 7 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/85/106485/1

diff --git a/Autoload.php b/Autoload.php
index 973707c..411b8c1 100644
--- a/Autoload.php
+++ b/Autoload.php
@@ -3,10 +3,12 @@
  * Autoload definitions.
  *
  * @file
- * @copyright 2014 ContentTranslation Team and others; see AUTHORS.txt
- * @license GPL-2.0+; see LICENSE.txt
+ * @copyright See AUTHORS.txt
+ * @license GPL-2.0+
  */
 
-$dir =__DIR__;
+global $wgAutoloadClasses;
+
+$dir = __DIR__;
 
 $wgAutoloadClasses['SpecialContentTranslation'] = 
"$dir/specials/SpecialContentTranslation.php";
diff --git a/ContentTranslation.php b/ContentTranslation.php
index 768ce70..c3af5fa 100644
--- a/ContentTranslation.php
+++ b/ContentTranslation.php
@@ -6,8 +6,8 @@
  *
  * @file
  * @ingroup Extensions
- * @copyright 2014 ContentTranslation Team and others; see AUTHORS.txt
- * @license GPL-2.0+; see LICENSE.txt
+ * @copyright See AUTHORS.txt
+ * @license GPL-2.0+
  */
 
 /**
@@ -42,8 +42,9 @@
 require_once "$dir/Resources.php";
 require_once "$dir/Autoload.php";
 
-$GLOBALS['wgMessagesDirs']['ContentTranslation'] = __DIR__ . "/i18n";
-$GLOBALS['wgMessagesDirs']['ContentTranslationAlias'] = __DIR__ . 
"/ContentTranslation.alias.php";
+$GLOBALS['wgMessagesDirs']['ContentTranslation'] = "$dir/i18n";
+$GLOBALS['wgExtensionsMessagesFiles']['ContentTranslationAlias'] =
+       "$dir/ContentTranslation.alias.php";
 
 // Special pages
 $wgSpecialPages['ContentTranslation'] = 'SpecialContentTranslation';

-- 
To view, visit https://gerrit.wikimedia.org/r/106485
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4bd00c91d06f6591eeec06227512885b5186686a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: KartikMistry <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to