From: Raimond Spekking Date: Sat, 3 Jul 2010 19:51:54 +0000 (+0000) Subject: Follow-up r68904: Rename 'ImagePage.css' to 'Filepage.css': More generic name and... X-Git-Tag: 1.31.0-rc.0~36283 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=b65b2d79e40ed5c3ea5442132cde00292924bb4d;p=lhc%2Fweb%2Fwiklou.git Follow-up r68904: Rename 'ImagePage.css' to 'Filepage.css': More generic name and CamelCase in messages keys is uncommon Add 'Filepage.css' to MessagesEn.php to be sure that the message is shown on Special:AllMessages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index e56c263ecc..2881760b86 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -100,7 +100,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * texvc now supports \bcancel and \xcancel in addition to \cancel and \cancelto * Added scriptExtension setting to $wgForeignFileRepos * ForeignApiRepo uses scriptDirUrl if apiBase not set -* (bug 24212) Added MediaWiki:ImagePage.css which is also included on foreign +* (bug 24212) Added MediaWiki:Filepage.css which is also included on foreign client wikis. === Bug fixes in 1.17 === diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index 6229896e77..323a631058 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -379,7 +379,7 @@ abstract class FileRepo { */ function getDescriptionStylesheetUrl() { if ( $this->scriptDirUrl ) { - return self::makeUrl( 'title=MediaWiki:ImagePage.css&' . + return self::makeUrl( 'title=MediaWiki:Filepage.css&' . wfArrayToCGI( Skin::getDynamicStylesheetQuery() ) ); } } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 847b562760..ec0d66c5c9 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2294,6 +2294,7 @@ The description on its [$2 file description page] there is shown below.', 'shared-repo-from' => 'from $1', 'shared-repo' => 'a shared repository', 'shared-repo-name-wikimediacommons' => 'Wikimedia Commons', # only translate this message to other languages if you have to change it +'filepage.css' => '/* CSS placed here is included on the file description page, also included on foreign client wikis */', # only translate this message to other languages if you have to change it # File reversion 'filerevert' => 'Revert $1', diff --git a/maintenance/language/messageTypes.inc b/maintenance/language/messageTypes.inc index cb5c5cce44..6699175efd 100644 --- a/maintenance/language/messageTypes.inc +++ b/maintenance/language/messageTypes.inc @@ -362,6 +362,7 @@ $wgOptionalMessages = array( 'shared-repo-name-wikimediacommons', 'usermessage-template', 'revisionmove-backlink', + 'filepage.css', ); /** EXIF messages, which may be set as optional in several checks, but are generally mandatory */ diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index f0c8f968ad..ea3b9e13d0 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1391,6 +1391,7 @@ $wgMessageStructure = array( 'shared-repo-from', 'shared-repo', 'shared-repo-name-wikimediacommons', + 'filepage.css', ), 'filerevert' => array( 'filerevert',