jenkins-bot has submitted this change and it was merged.

Change subject: Register message files outside of enableSemantics()
......................................................................


Register message files outside of enableSemantics()

The l10n cache building process used on the WMF cluster expects that
including the entrypoint for an extension will properly register the
extension's l10n strings via wgExtensionMessagesFiles.

Change-Id: I18776bb602ab90929fc165ccae3d0efd6c63ad09
---
M includes/SMW_Setup.php
1 file changed, 4 insertions(+), 3 deletions(-)

Approvals:
  Andrew Bogott: Looks good to me, but someone else must approve
  Reedy: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/SMW_Setup.php b/includes/SMW_Setup.php
index 3eba252..f3401a5 100644
--- a/includes/SMW_Setup.php
+++ b/includes/SMW_Setup.php
@@ -9,6 +9,10 @@
 
 require_once( 'SMW_GlobalFunctions.php' );
 
+$wgExtensionMessagesFiles['SemanticMediaWiki'] = $smwgIP . 
'languages/SMW_Messages.php';
+$wgExtensionMessagesFiles['SemanticMediaWikiAlias'] = $smwgIP . 
'languages/SMW_Aliases.php';
+$wgExtensionMessagesFiles['SemanticMediaWikiMagic'] = $smwgIP . 
'languages/SMW_Magic.php';
+
 /**
  * Function to switch on Semantic MediaWiki. This function must be called in
  * LocalSettings.php after including SMW_Settings.php. It is used to ensure
@@ -30,9 +34,6 @@
                $smwgNamespace, $wgAPIModules;
 
        $wgExtensionFunctions[] = 'smwfSetupExtension';
-       $wgExtensionMessagesFiles['SemanticMediaWiki'] = $smwgIP . 
'languages/SMW_Messages.php';
-       $wgExtensionMessagesFiles['SemanticMediaWikiAlias'] = $smwgIP . 
'languages/SMW_Aliases.php';
-       $wgExtensionMessagesFiles['SemanticMediaWikiMagic'] = $smwgIP . 
'languages/SMW_Magic.php';
 
        smwfRegisterHooks();
        smwfRegisterClasses();

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I18776bb602ab90929fc165ccae3d0efd6c63ad09
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticMediaWiki
Gerrit-Branch: 1.8.x
Gerrit-Owner: BryanDavis <[email protected]>
Gerrit-Reviewer: Andrew Bogott <[email protected]>
Gerrit-Reviewer: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Markus Kroetzsch <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: Yaron Koren <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to