Add $resourcePaths
Change-Id: I2b3ef5f57566fe5bcc6549157e09c47fdc61e95f
This commit is contained in:
@@ -6,34 +6,32 @@
|
|||||||
* @license GPL2+
|
* @license GPL2+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Base ULS module */
|
$resourcePaths = array(
|
||||||
|
'localBasePath' => __DIR__,
|
||||||
|
'remoteExtPath' => 'UniversalLanguageSelector'
|
||||||
|
) + $resourcePaths;
|
||||||
|
|
||||||
$wgResourceModules['ext.uls.displaysettings'] = array(
|
$wgResourceModules['ext.uls.displaysettings'] = array(
|
||||||
'scripts' => 'resources/js/ext.uls.displaysettings.js',
|
'scripts' => 'resources/js/ext.uls.displaysettings.js',
|
||||||
'styles' => 'resources/css/ext.uls.displaysettings.css',
|
'styles' => 'resources/css/ext.uls.displaysettings.css',
|
||||||
'localBasePath' => $dir,
|
|
||||||
'dependencies' => array(
|
'dependencies' => array(
|
||||||
'ext.uls.languagesettings',
|
'ext.uls.languagesettings',
|
||||||
'ext.uls.webfonts',
|
'ext.uls.webfonts',
|
||||||
'jquery.i18n',
|
'jquery.i18n',
|
||||||
),
|
),
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
) + $resourcePaths;
|
||||||
);
|
|
||||||
|
|
||||||
$wgResourceModules['ext.uls.geoclient'] = array(
|
$wgResourceModules['ext.uls.geoclient'] = array(
|
||||||
'scripts' => 'resources/js/ext.uls.geoclient.js',
|
'scripts' => 'resources/js/ext.uls.geoclient.js',
|
||||||
'localBasePath' => $dir,
|
) + $resourcePaths;
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
);
|
|
||||||
|
|
||||||
$wgResourceModules['ext.uls.ime'] = array(
|
$wgResourceModules['ext.uls.ime'] = array(
|
||||||
'scripts' => 'resources/js/ext.uls.ime.js',
|
'scripts' => 'resources/js/ext.uls.ime.js',
|
||||||
'localBasePath' => $dir,
|
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
'dependencies' => array(
|
'dependencies' => array(
|
||||||
'jquery.ime',
|
'jquery.ime',
|
||||||
'ext.uls.preferences',
|
'ext.uls.preferences',
|
||||||
),
|
),
|
||||||
);
|
) + $resourcePaths;
|
||||||
|
|
||||||
// Base ULS module
|
// Base ULS module
|
||||||
$wgResourceModules['ext.uls.init'] = array(
|
$wgResourceModules['ext.uls.init'] = array(
|
||||||
@@ -42,8 +40,6 @@ $wgResourceModules['ext.uls.init'] = array(
|
|||||||
'skinStyles' => array(
|
'skinStyles' => array(
|
||||||
'monobook' => 'resources/css/ext.uls-monobook.css',
|
'monobook' => 'resources/css/ext.uls-monobook.css',
|
||||||
),
|
),
|
||||||
'localBasePath' => $dir,
|
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
'dependencies' => array(
|
'dependencies' => array(
|
||||||
'mediawiki.Uri',
|
'mediawiki.Uri',
|
||||||
'mediawiki.util',
|
'mediawiki.util',
|
||||||
@@ -52,26 +48,21 @@ $wgResourceModules['ext.uls.init'] = array(
|
|||||||
'jquery.i18n',
|
'jquery.i18n',
|
||||||
),
|
),
|
||||||
'position' => 'top',
|
'position' => 'top',
|
||||||
);
|
) + $resourcePaths;
|
||||||
|
|
||||||
|
|
||||||
$wgResourceModules['ext.uls.inputsettings'] = array(
|
$wgResourceModules['ext.uls.inputsettings'] = array(
|
||||||
'scripts' => 'resources/js/ext.uls.inputsettings.js',
|
'scripts' => 'resources/js/ext.uls.inputsettings.js',
|
||||||
'styles' => 'resources/css/ext.uls.inputsettings.css',
|
'styles' => 'resources/css/ext.uls.inputsettings.css',
|
||||||
'localBasePath' => $dir,
|
|
||||||
'dependencies' => array(
|
'dependencies' => array(
|
||||||
'ext.uls.languagesettings',
|
'ext.uls.languagesettings',
|
||||||
'ext.uls.ime',
|
'ext.uls.ime',
|
||||||
'jquery.i18n',
|
'jquery.i18n',
|
||||||
),
|
),
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
) + $resourcePaths;
|
||||||
);
|
|
||||||
|
|
||||||
// Interface language selection module
|
// Interface language selection module
|
||||||
$wgResourceModules['ext.uls.interface'] = array(
|
$wgResourceModules['ext.uls.interface'] = array(
|
||||||
'scripts' => 'resources/js/ext.uls.interface.js',
|
'scripts' => 'resources/js/ext.uls.interface.js',
|
||||||
'localBasePath' => $dir,
|
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
'dependencies' => array(
|
'dependencies' => array(
|
||||||
'ext.uls.init',
|
'ext.uls.init',
|
||||||
'jquery.tipsy',
|
'jquery.tipsy',
|
||||||
@@ -80,61 +71,49 @@ $wgResourceModules['ext.uls.interface'] = array(
|
|||||||
'ext.uls.geoclient',
|
'ext.uls.geoclient',
|
||||||
),
|
),
|
||||||
'position' => 'top',
|
'position' => 'top',
|
||||||
);
|
) + $resourcePaths;
|
||||||
|
|
||||||
$wgResourceModules['ext.uls.languagesettings'] = array(
|
$wgResourceModules['ext.uls.languagesettings'] = array(
|
||||||
'scripts' => 'resources/js/ext.uls.languagesettings.js',
|
'scripts' => 'resources/js/ext.uls.languagesettings.js',
|
||||||
'styles' => 'resources/css/ext.uls.languagesettings.css',
|
'styles' => 'resources/css/ext.uls.languagesettings.css',
|
||||||
'localBasePath' => $dir,
|
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
'dependencies' => array(
|
'dependencies' => array(
|
||||||
'ext.uls.preferences',
|
'ext.uls.preferences',
|
||||||
),
|
),
|
||||||
);
|
) + $resourcePaths;
|
||||||
|
|
||||||
$wgResourceModules['ext.uls.preferences'] = array(
|
$wgResourceModules['ext.uls.preferences'] = array(
|
||||||
'scripts' => 'resources/js/ext.uls.preferences.js',
|
'scripts' => 'resources/js/ext.uls.preferences.js',
|
||||||
'localBasePath' => $dir,
|
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
'dependencies' => array(
|
'dependencies' => array(
|
||||||
'mediawiki.user',
|
'mediawiki.user',
|
||||||
'mediawiki.api',
|
'mediawiki.api',
|
||||||
'jquery.jStorage',
|
'jquery.jStorage',
|
||||||
),
|
),
|
||||||
);
|
) + $resourcePaths;
|
||||||
|
|
||||||
$wgResourceModules['ext.uls.webfonts'] = array(
|
$wgResourceModules['ext.uls.webfonts'] = array(
|
||||||
'scripts' => 'resources/js/ext.uls.webfonts.js',
|
'scripts' => 'resources/js/ext.uls.webfonts.js',
|
||||||
'localBasePath' => $dir,
|
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
'dependencies' => array(
|
'dependencies' => array(
|
||||||
'jquery.webfonts',
|
'jquery.webfonts',
|
||||||
'ext.uls.webfonts.repository',
|
'ext.uls.webfonts.repository',
|
||||||
'ext.uls.preferences',
|
'ext.uls.preferences',
|
||||||
),
|
),
|
||||||
);
|
) + $resourcePaths;
|
||||||
|
|
||||||
$wgResourceModules['ext.uls.webfonts.repository'] = array(
|
$wgResourceModules['ext.uls.webfonts.repository'] = array(
|
||||||
'scripts' => 'resources/js/ext.uls.webfonts.repository.js',
|
'scripts' => 'resources/js/ext.uls.webfonts.repository.js',
|
||||||
'localBasePath' => $dir,
|
) + $resourcePaths;
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
$wgResourceModules['jquery.i18n'] = array(
|
$wgResourceModules['jquery.i18n'] = array(
|
||||||
'scripts' => 'lib/jquery.i18n.js',
|
'scripts' => 'lib/jquery.i18n.js',
|
||||||
'localBasePath' => $dir,
|
) + $resourcePaths;
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
);
|
|
||||||
|
|
||||||
$wgResourceModules['jquery.ime'] = array(
|
$wgResourceModules['jquery.ime'] = array(
|
||||||
'scripts' => 'lib/jquery.ime/jquery.ime.js',
|
'scripts' => 'lib/jquery.ime/jquery.ime.js',
|
||||||
'styles' => array(
|
'styles' => array(
|
||||||
'lib/jquery.ime/css/jquery.ime.css',
|
'lib/jquery.ime/css/jquery.ime.css',
|
||||||
),
|
),
|
||||||
'localBasePath' => $dir,
|
) + $resourcePaths;
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
);
|
|
||||||
|
|
||||||
$wgResourceModules['jquery.uls'] = array(
|
$wgResourceModules['jquery.uls'] = array(
|
||||||
'scripts' => array(
|
'scripts' => array(
|
||||||
@@ -147,49 +126,39 @@ $wgResourceModules['jquery.uls'] = array(
|
|||||||
'lib/jquery.uls/css/jquery.uls.css',
|
'lib/jquery.uls/css/jquery.uls.css',
|
||||||
'lib/jquery.uls/css/jquery.uls.lcd.css',
|
'lib/jquery.uls/css/jquery.uls.lcd.css',
|
||||||
),
|
),
|
||||||
'localBasePath' => $dir,
|
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
'dependencies' => array(
|
'dependencies' => array(
|
||||||
'jquery.i18n',
|
'jquery.i18n',
|
||||||
'jquery.uls.grid',
|
'jquery.uls.grid',
|
||||||
'jquery.uls.data',
|
'jquery.uls.data',
|
||||||
),
|
),
|
||||||
'position' => 'top',
|
'position' => 'top',
|
||||||
);
|
) + $resourcePaths;
|
||||||
|
|
||||||
$wgResourceModules['jquery.uls.compact'] = array(
|
$wgResourceModules['jquery.uls.compact'] = array(
|
||||||
'styles' => array(
|
'styles' => array(
|
||||||
'lib/jquery.uls/css/jquery.uls.compact.css',
|
'lib/jquery.uls/css/jquery.uls.compact.css',
|
||||||
),
|
),
|
||||||
'localBasePath' => $dir,
|
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
'dependencies' => array(
|
'dependencies' => array(
|
||||||
'jquery.uls',
|
'jquery.uls',
|
||||||
),
|
),
|
||||||
'position' => 'top',
|
'position' => 'top',
|
||||||
);
|
) + $resourcePaths;
|
||||||
|
|
||||||
$wgResourceModules['jquery.uls.data'] = array(
|
$wgResourceModules['jquery.uls.data'] = array(
|
||||||
'scripts' => array(
|
'scripts' => array(
|
||||||
'lib/jquery.uls/src/jquery.uls.data.js',
|
'lib/jquery.uls/src/jquery.uls.data.js',
|
||||||
'lib/jquery.uls/src/jquery.uls.data.utils.js',
|
'lib/jquery.uls/src/jquery.uls.data.utils.js',
|
||||||
),
|
),
|
||||||
'localBasePath' => $dir,
|
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
'position' => 'top',
|
'position' => 'top',
|
||||||
);
|
) + $resourcePaths;
|
||||||
|
|
||||||
$wgResourceModules['jquery.uls.grid'] = array(
|
$wgResourceModules['jquery.uls.grid'] = array(
|
||||||
'styles' => array(
|
'styles' => array(
|
||||||
'lib/jquery.uls/css/jquery.uls.grid.css',
|
'lib/jquery.uls/css/jquery.uls.grid.css',
|
||||||
),
|
),
|
||||||
'localBasePath' => $dir,
|
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
'position' => 'top',
|
'position' => 'top',
|
||||||
);
|
) + $resourcePaths;
|
||||||
|
|
||||||
$wgResourceModules['jquery.webfonts'] = array(
|
$wgResourceModules['jquery.webfonts'] = array(
|
||||||
'scripts' => 'lib/jquery.webfonts.js',
|
'scripts' => 'lib/jquery.webfonts.js',
|
||||||
'localBasePath' => $dir,
|
) + $resourcePaths;
|
||||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
|
||||||
);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user