Use jQuery.i18n from MediaWiki core if available.
This allows other extensions to use this too, without needing a hack to detect ULS's existence and work around it by not loading their copies of j/i18n code. Preserves backwards-compatibility for archaïc versions of MediaWiki. Bug: T95666 Change-Id: I25b33437ceddb60570322b9aa51844acc42a3e32
This commit is contained in:
committed by
Kunal Mehta
parent
dac85690d4
commit
9afbea2914
@@ -212,6 +212,8 @@ $GLOBALS['wgHooks']['BeforePageDisplay'][] = 'UniversalLanguageSelectorHooks::ad
|
||||
$GLOBALS['wgHooks']['EventLoggingRegisterSchemas'][] =
|
||||
'UniversalLanguageSelectorHooks::onEventLoggingRegisterSchemas';
|
||||
$GLOBALS['wgHooks']['PersonalUrls'][] = 'UniversalLanguageSelectorHooks::addPersonalBarTrigger';
|
||||
$GLOBALS['wgHooks']['ResourceLoaderRegisterModules'][] =
|
||||
'UniversalLanguageSelectorHooks::onResourceLoaderRegisterModules';
|
||||
$GLOBALS['wgHooks']['ResourceLoaderTestModules'][] =
|
||||
'UniversalLanguageSelectorHooks::addTestModules';
|
||||
$GLOBALS['wgHooks']['ResourceLoaderGetConfigVars'][] = 'UniversalLanguageSelectorHooks::addConfig';
|
||||
|
||||
Reference in New Issue
Block a user