Follow-up r82285: prefix group css and js pages with "Group-", and fix license header.
authorHappy-melon <happy-melon@users.mediawiki.org>
Wed, 20 Apr 2011 17:29:24 +0000 (17:29 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Wed, 20 Apr 2011 17:29:24 +0000 (17:29 +0000)
includes/resourceloader/ResourceLoaderUserGroupsModule.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index cebe936..e51d6c7 100644 (file)
@@ -16,8 +16,6 @@
  * http://www.gnu.org/copyleft/gpl.html
  *
  * @file
- * @author Trevor Parscal
- * @author Roan Kattouw
  */
 
 /**
@@ -38,8 +36,8 @@ class ResourceLoaderUserGroupsModule extends ResourceLoaderWikiModule {
                                                continue;
                                        }
                                        $g = ucfirst( $group );
-                                       $pages["MediaWiki:$g.js"] = array( 'type' => 'script' );
-                                       $pages["MediaWiki:$g.css"] = array( 'type' => 'style' );
+                                       $pages["MediaWiki:Group-$g.js"] = array( 'type' => 'script' );
+                                       $pages["MediaWiki:Group-$g.css"] = array( 'type' => 'style' );
                                }
                                return $pages;
                        }
index 5d8c521..21acd39 100644 (file)
@@ -3512,10 +3512,10 @@ You can view its source',
 'print.css'         => '/* CSS placed here will affect the print output */', # only translate this message to other languages if you have to change it
 'handheld.css'      => '/* CSS placed here will affect handheld devices based on the skin configured in $wgHandheldStyle */', # only translate this message to other languages if you have to change it
 'noscript.css'      => '/* CSS placed here will affect users with JavaScript disabled */', # only translate this message to other languages if you have to change it
-'autoconfirmed.css' => '/* CSS placed here will affect autoconfirmed users only */', # only translate this message to other languages if you have to change it
-'bot.css'           => '/* CSS placed here will affect bots only */', # only translate this message to other languages if you have to change it
-'sysop.css'         => '/* CSS placed here will affect sysops only */', # only translate this message to other languages if you have to change it
-'bureaucrat.css'    => '/* CSS placed here will affect bureaucrats only */', # only translate this message to other languages if you have to change it
+'group-autoconfirmed.css' => '/* CSS placed here will affect autoconfirmed users only */', # only translate this message to other languages if you have to change it
+'group-bot.css'           => '/* CSS placed here will affect bots only */', # only translate this message to other languages if you have to change it
+'group-sysop.css'         => '/* CSS placed here will affect sysops only */', # only translate this message to other languages if you have to change it
+'group-bureaucrat.css'    => '/* CSS placed here will affect bureaucrats only */', # only translate this message to other languages if you have to change it
 
 # Scripts
 'common.js'        => '/* Any JavaScript here will be loaded for all users on every page load. */', # only translate this message to other languages if you have to change it
@@ -3528,10 +3528,10 @@ You can view its source',
 'simple.js'        => '/* Any JavaScript here will be loaded for users using the Simple skin */', # only translate this message to other languages if you have to change it
 'modern.js'        => '/* Any JavaScript here will be loaded for users using the Modern skin */', # only translate this message to other languages if you have to change it
 'vector.js'        => '/* Any JavaScript here will be loaded for users using the Vector skin */', # only translate this message to other languages if you have to change it
-'autoconfirmed.js' => '/* Any JavaScript here will be loaded for autoconfirmed users only */', # only translate this message to other languages if you have to change it
-'bot.js'           => '/* Any JavaScript here will be loaded for bots only */', # only translate this message to other languages if you have to change it
-'sysop.js'         => '/* Any JavaScript here will be loaded for sysops only */', # only translate this message to other languages if you have to change it
-'bureaucrat.js'    => '/* Any JavaScript here will be loaded for bureaucrats only */', # only translate this message to other languages if you have to change it
+'group-autoconfirmed.js' => '/* Any JavaScript here will be loaded for autoconfirmed users only */', # only translate this message to other languages if you have to change it
+'group-bot.js'           => '/* Any JavaScript here will be loaded for bots only */', # only translate this message to other languages if you have to change it
+'group-sysop.js'         => '/* Any JavaScript here will be loaded for sysops only */', # only translate this message to other languages if you have to change it
+'group-bureaucrat.js'    => '/* Any JavaScript here will be loaded for bureaucrats only */', # only translate this message to other languages if you have to change it
 
 # Metadata
 'nodublincore'      => 'Dublin Core RDF metadata disabled for this server.',
index bf10adb..1f7dc63 100644 (file)
@@ -2460,10 +2460,10 @@ $wgMessageStructure = array(
                'print.css',
                'handheld.css',
                'noscript.css',
-               'autoconfirmed.css',
-               'bot.css',
-               'sysop.css',
-               'bureaucrat.css',
+               'group-autoconfirmed.css',
+               'group-bot.css',
+               'group-sysop.css',
+               'group-bureaucrat.css',
        ),
        'scripts' => array(
                'common.js',
@@ -2476,10 +2476,10 @@ $wgMessageStructure = array(
                'simple.js',
                'modern.js',
                'vector.js',
-               'autoconfirmed.js',
-               'bot.js',
-               'sysop.js',
-               'bureaucrat.js',
+               'group-autoconfirmed.js',
+               'group-bot.js',
+               'group-sysop.js',
+               'group-bureaucrat.js',
        ),
        'metadata_cc' => array(
                'nodublincore',