Resources.php File Reference

JavaScript and CSS resource definitions. More...

Go to the source code of this file.

Variables

 $resourcePaths
 $wgResourceModules ['ext.translate']
 $wgResourceModules ['ext.translate.base']
 $wgResourceModules ['ext.translate.dropdownmenu']
 $wgResourceModules ['ext.translate.editor']
 $wgResourceModules ['ext.translate.groupselector']
 $wgResourceModules ['ext.translate.helplink']
 $wgResourceModules ['ext.translate.hooks']
 $wgResourceModules ['ext.translate.loader']
 $wgResourceModules ['ext.translate.messagetable']
 $wgResourceModules ['ext.translate.messagewebimporter']
 $wgResourceModules ['ext.translate.multiselectautocomplete']
 $wgResourceModules ['ext.translate.navitoggle']
 $wgResourceModules ['ext.translate.pagetranslation.uls']
 $wgResourceModules ['ext.translate.parsers']
 $wgResourceModules ['ext.translate.quickedit']
 $wgResourceModules ['ext.translate.selecttoinput']
 $wgResourceModules ['ext.translate.special.aggregategroups']
 $wgResourceModules ['ext.translate.special.importtranslations']
 $wgResourceModules ['ext.translate.special.languagestats']
 $wgResourceModules ['ext.translate.special.managegroups']
 $wgResourceModules ['ext.translate.special.pagetranslation']
 $wgResourceModules ['ext.translate.special.searchtranslations']
 $wgResourceModules ['ext.translate.special.supportedlanguages']
 $wgResourceModules ['ext.translate.special.translate']
 $wgResourceModules ['ext.translate.special.translatesandbox']
 $wgResourceModules ['ext.translate.special.translationstash']
 $wgResourceModules ['ext.translate.special.translationstats']
 $wgResourceModules ['ext.translate.statsbar']
 $wgResourceModules ['ext.translate.storage']
 $wgResourceModules ['ext.translate.tabgroup']
 $wgResourceModules ['ext.translate.translationstashstorage']
 $wgResourceModules ['ext.translate.workflowselector']
 $wgResourceModules ['jquery.autosize']
 $wgResourceModules ['jquery.textchange']
 $wgResourceModules ['jquery.ui.position.custom']
 $wgHooks ['ResourceLoaderTestModules'][]

Detailed Description

JavaScript and CSS resource definitions.

Note:
GPL-2.0+

Definition in file Resources.php.


Variable Documentation

$resourcePaths
Initial value:
 array(
    'localBasePath' => __DIR__,
    'remoteExtPath' => 'Translate'
)

Definition at line 9 of file Resources.php.

$wgHooks['ResourceLoaderTestModules'][]
Initial value:
    
    function ( array &$modules ) use ( $resourcePaths ) {
        $modules['qunit']['ext.translate.parsers.test'] = array(
            'scripts' => array( 'tests/qunit/ext.translate.parsers.test.js' ),
            'dependencies' => array( 'ext.translate.parsers' ),
        ) + $resourcePaths;

        return true;
    }

Definition at line 457 of file Resources.php.

Referenced by TranslationFuzzyUpdaterTest::setUp(), TranslateHooksTest::setUp(), SolrTTMServerTest::setUp(), PageTranslationTaggingText::setUp(), MessageGroupsTest::setUp(), MessageGroupStatesUpdaterJobTest::setUp(), MessageCollectionTest::setUp(), ApiTranslationReviewTest::setUp(), ApiQueryMessageGroupsTest::setUp(), TranslateHooks::setupTranslate(), and SolrTTMServerTest::testSearchableTTMServer().

$wgResourceModules['jquery.ui.position.custom']
Initial value:
 array(
    'scripts' => 'resources/js/jquery.ui.position.js',
) + $resourcePaths

Definition at line 453 of file Resources.php.

$wgResourceModules['jquery.textchange']
Initial value:
 array(
    'scripts' => 'resources/js/jquery.textchange.js',
) + $resourcePaths

Definition at line 447 of file Resources.php.

$wgResourceModules['jquery.autosize']
Initial value:
 array(
    'scripts' => 'resources/js/jquery.autosize.js',
) + $resourcePaths

Definition at line 443 of file Resources.php.

$wgResourceModules['ext.translate.workflowselector']
Initial value:
 array(
    'styles' => 'resources/css/ext.translate.workflowselector.css',
    'scripts' => 'resources/js/ext.translate.workflowselector.js',
    'messages' => array(
        'translate-workflow-set-doing',
        'translate-workflowstatus',
    ),
    'dependencies' => array(
        'ext.translate.dropdownmenu',
    ),
) + $resourcePaths

Definition at line 430 of file Resources.php.

$wgResourceModules['ext.translate.translationstashstorage']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.translationstashstorage.js',
) + $resourcePaths

Definition at line 426 of file Resources.php.

$wgResourceModules['ext.translate.tabgroup']
Initial value:
 array(
    'styles' => 'resources/css/ext.translate.tabgroup.css',
    'position' => 'top',
) + $resourcePaths

Definition at line 421 of file Resources.php.

$wgResourceModules['ext.translate.storage']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.storage.js',
) + $resourcePaths

Definition at line 416 of file Resources.php.

$wgResourceModules['ext.translate.statsbar']
Initial value:
 array(
    'styles' => 'resources/css/ext.translate.statsbar.css',
    'scripts' => 'resources/js/ext.translate.statsbar.js',
    'messages' => array(
        'translate-statsbar-tooltip',
        'translate-statsbar-tooltip-with-fuzzy',
    ),
    'position' => 'top',
) + $resourcePaths

Definition at line 406 of file Resources.php.

$wgResourceModules['ext.translate.special.translationstats']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.special.translationstats.js',
    'dependencies' => array(
        'jquery.ui.datepicker',
    ),
) + $resourcePaths

Definition at line 399 of file Resources.php.

$wgResourceModules['ext.translate.special.translationstash']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.special.translationstash.js',
    'styles' => 'resources/css/ext.translate.special.translationstash.css',
    'position' => 'top',
    'dependencies' => array(
        'ext.translate.editor',
        'ext.translate.messagetable',
        'ext.translate.translationstashstorage',
        'mediawiki.language',
    ),
    'messages' => array(
        'translate-translationstash-translations',
        'translate-translationstash-skip-button-label',
        'tsb-limit-reached-title',
        'tsb-limit-reached-body',
    ),
) + $resourcePaths

Definition at line 381 of file Resources.php.

$wgResourceModules['ext.translate.special.translatesandbox']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.special.translatesandbox.js',
    'styles' => 'resources/css/ext.translate.special.translatesandbox.css',
    'position' => 'top',
    'dependencies' => array(
        'ext.translate.translationstashstorage',
        'mediawiki.api',
        'jquery.uls.grid',
        'jquery.ui.dialog',
        'mediawiki.jqueryMsg',
    ),
    'messages' => array(
        'tsb-accept-button-label',
        'tsb-reject-button-label',
        'tsb-accept-all-button-label',
        'tsb-reject-all-button-label',
        'tsb-reminder-link-text',
        'tsb-translations-source',
        'tsb-translations-user',
        'tsb-translations-current',
        'tsb-request-count',
    ),
) + $resourcePaths

Definition at line 357 of file Resources.php.

$wgResourceModules['ext.translate.special.translate']
Initial value:
 array(
    'styles' => 'resources/css/ext.translate.special.translate.css',
    'scripts' => 'resources/js/ext.translate.special.translate.js',
    'position' => 'top',
    'dependencies' => array(
        'mediawiki.jqueryMsg',
        'mediawiki.Uri',
        'mediawiki.api.parse',
        'ext.translate.base',
        'ext.translate.groupselector',
        'ext.translate.messagetable',
        'ext.translate.navitoggle',
        'ext.translate.workflowselector',
        'ext.uls.init',
    ),
    'messages' => array(
        'translate-workflow-set-do',
        'translate-workflow-set-doing',
        'translate-workflow-set-done',
        'translate-workflow-set-error-alreadyset',
        'translate-documentation-language',
        'translate-workflow-state-',
        'tpt-discouraged-language-force',
        'tpt-discouraged-language',
        'tux-editor-proofreading-hide-own-translations',
        'tux-editor-proofreading-show-own-translations',
    ),
) + $resourcePaths

Definition at line 328 of file Resources.php.

$wgResourceModules['ext.translate.special.supportedlanguages']
Initial value:
 array(
    'styles' => 'resources/css/ext.translate.special.supportedlanguages.css',
    'position' => 'top',
) + $resourcePaths

Definition at line 323 of file Resources.php.

$wgResourceModules['ext.translate.special.searchtranslations']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.special.searchtranslations.js',
    'styles' => 'resources/css/ext.translate.special.searchtranslations.css',
    'dependencies' => array(
        'ext.translate.editor',
        'ext.uls.init',
        'ext.uls.geoclient',
        'ext.translate.groupselector',
    ),
    'messages' => array(
        'translate-documentation-language',
        'translate-search-more-languages-info',
        'translate-search-more-groups-info',
    ),
    'position' => 'top',
) + $resourcePaths

Definition at line 306 of file Resources.php.

$wgResourceModules['ext.translate.special.pagetranslation']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.special.pagetranslation.js',
    'styles' => 'resources/css/ext.translate.special.pagetranslation.css',
    'dependencies' => array(
        'ext.translate.multiselectautocomplete',
    ),
    'position' => 'top',
) + $resourcePaths

Definition at line 297 of file Resources.php.

$wgResourceModules['ext.translate.special.managegroups']
Initial value:
 array(
    'styles' => 'resources/css/ext.translate.special.managegroups.css',
    'position' => 'top',
) + $resourcePaths

Definition at line 292 of file Resources.php.

$wgResourceModules['ext.translate.special.languagestats']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.special.languagestats.js',
    'styles' => 'resources/css/ext.translate.special.languagestats.css',
    'messages' => array(
        'translate-langstats-expandall',
        'translate-langstats-collapseall',
        'translate-langstats-expand',
        'translate-langstats-collapse'
    ),
    'dependencies' => 'jquery.tablesorter',
) + $resourcePaths

Definition at line 280 of file Resources.php.

$wgResourceModules['ext.translate.special.importtranslations']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.special.importtranslations.js',
    'dependencies' => array(
        'jquery.ui.autocomplete',
    ),
) + $resourcePaths

Definition at line 273 of file Resources.php.

$wgResourceModules['ext.translate.special.aggregategroups']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.special.aggregategroups.js',
    'styles' => 'resources/css/ext.translate.special.aggregategroups.css',
    'position' => 'top',
    'dependencies' => array(
        'mediawiki.util',
        'jquery.async',
        'jquery.chosen'
    ),
    'messages' => array(
        'tpt-aggregategroup-remove-confirm',
    ),
) + $resourcePaths

Definition at line 259 of file Resources.php.

$wgResourceModules['ext.translate.selecttoinput']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.selecttoinput.js',
) + $resourcePaths

Definition at line 255 of file Resources.php.

$wgResourceModules['ext.translate.quickedit']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.quickedit.js',
    'styles' => 'resources/css/ext.translate.quickedit.css',
    'messages' => array( 'translate-js-nonext', 'translate-js-save-failed' ),
    'dependencies' => array(
        'jquery.form',
        'jquery.ui.dialog',
        'jquery.autosize',
        'mediawiki.util',
    ),
) + $resourcePaths

Definition at line 243 of file Resources.php.

$wgResourceModules['ext.translate.parsers']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.parsers.js',
    'dependencies' => array(
        'mediawiki.util',
    ),
) + $resourcePaths

Definition at line 236 of file Resources.php.

$wgResourceModules['ext.translate.pagetranslation.uls']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.pagetranslation.uls.js',
    'dependencies' => array(
        'ext.uls.init',
        'mediawiki.util',
    ),
) + $resourcePaths

Definition at line 228 of file Resources.php.

$wgResourceModules['ext.translate.navitoggle']
Initial value:
 array(
    'skinScripts' => array(
        'vector' => 'resources/js/ext.translate.navitoggle.js',
    ),
    'skinStyles' => array(
        'vector' => 'resources/css/ext.translate.navitoggle.css',
    ),
) + $resourcePaths

Definition at line 219 of file Resources.php.

$wgResourceModules['ext.translate.multiselectautocomplete']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.multiselectautocomplete.js',
    'dependencies' => array(
        'jquery.ui.autocomplete',
    ),
    'position' => 'top',
) + $resourcePaths

Definition at line 211 of file Resources.php.

$wgResourceModules['ext.translate.messagewebimporter']
Initial value:
 array(
    'styles' => 'resources/css/ext.translate.messagewebimporter.css',
    'position' => 'top',
) + $resourcePaths

Definition at line 206 of file Resources.php.

$wgResourceModules['ext.translate.messagetable']

Definition at line 148 of file Resources.php.

$wgResourceModules['ext.translate.loader']
Initial value:
 array(
    'styles' => 'resources/css/ext.translate.loader.css',
    'position' => 'top',
) + $resourcePaths

Definition at line 143 of file Resources.php.

$wgResourceModules['ext.translate.hooks']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.hooks.js',
    'position' => 'top',
) + $resourcePaths

Definition at line 138 of file Resources.php.

$wgResourceModules['ext.translate.helplink']
Initial value:
 array(
    'styles' => 'resources/css/ext.translate.helplink.css',
    'position' => 'top',
) + $resourcePaths

Definition at line 133 of file Resources.php.

$wgResourceModules['ext.translate.groupselector']
Initial value:
 array(
    'styles' => 'resources/css/ext.translate.groupselector.css',
    'scripts' => 'resources/js/ext.translate.groupselector.js',
    'position' => 'top',
    'dependencies' => array(
        'ext.translate.base',
        'jquery.uls.grid',
        'ext.translate.statsbar',
        'mediawiki.jqueryMsg',
        'ext.translate.loader',
        'jquery.ui.position.custom',
    ),
    'messages' => array(
        'translate-msggroupselector-projects',
        'translate-msggroupselector-search-placeholder',
        'translate-msggroupselector-search-all',
        'translate-msggroupselector-search-recent',
        'translate-msggroupselector-view-subprojects',
    ),
) + $resourcePaths

Definition at line 112 of file Resources.php.

$wgResourceModules['ext.translate.editor']

Definition at line 36 of file Resources.php.

$wgResourceModules['ext.translate.dropdownmenu']
Initial value:
 array(
    'styles' => 'resources/css/ext.translate.dropdownmenu.css',
    'scripts' => 'resources/js/ext.translate.dropdownmenu.js',
) + $resourcePaths

Definition at line 31 of file Resources.php.

$wgResourceModules['ext.translate.base']
Initial value:
 array(
    'scripts' => 'resources/js/ext.translate.base.js',
    'dependencies' => array(
        'mediawiki.util',
        'mediawiki.api',
        'ext.translate.hooks'
    ),
    'messages' => array(
        'translate-js-support-unsaved-warning',
    ),
) + $resourcePaths

Definition at line 19 of file Resources.php.

$wgResourceModules['ext.translate']
Initial value:
 array(
    'styles' => 'resources/css/ext.translate.css',
    'position' => 'top',
) + $resourcePaths

Definition at line 14 of file Resources.php.

Referenced by ResourcesTest::testAlphabeticalOrder().

Generated on Tue Oct 29 00:00:26 2013 for MediaWiki Translate Extension by  doxygen 1.6.3