r52617 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52616‎ | r52617 | r52618 >
Date:00:52, 1 July 2009
Author:demon
Status:ok
Tags:
Comment:
(bug 19423) The initial file description page uses caption in the user's language instead of content language
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/specials/SpecialUpload.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUpload.php
@@ -1831,13 +1831,13 @@
18321832 if ( $license != '' ) {
18331833 $licensetxt = '== ' . wfMsgForContent( 'license' ) . " ==\n" . '{{' . $license . '}}' . "\n";
18341834 }
1835 - $pageText = '== ' . wfMsg ( 'filedesc' ) . " ==\n" . $comment . "\n" .
 1835+ $pageText = '== ' . wfMsgForContent ( 'filedesc' ) . " ==\n" . $comment . "\n" .
18361836 '== ' . wfMsgForContent ( 'filestatus' ) . " ==\n" . $copyStatus . "\n" .
18371837 "$licensetxt" .
18381838 '== ' . wfMsgForContent ( 'filesource' ) . " ==\n" . $source ;
18391839 } else {
18401840 if ( $license != '' ) {
1841 - $filedesc = $comment == '' ? '' : '== ' . wfMsg ( 'filedesc' ) . " ==\n" . $comment . "\n";
 1841+ $filedesc = $comment == '' ? '' : '== ' . wfMsgForContent ( 'filedesc' ) . " ==\n" . $comment . "\n";
18421842 $pageText = $filedesc .
18431843 '== ' . wfMsgForContent ( 'license' ) . " ==\n" . '{{' . $license . '}}' . "\n";
18441844 } else {
Index: trunk/phase3/RELEASE-NOTES
@@ -255,6 +255,8 @@
256256 * (bug 19323) action=parse doesn't return section tree on pages with Cite
257257 warnings
258258 * (bug 18720) Add anchor field to action=parse&prop=sections output
 259+* (bug 19423) The initial file description page used caption in user lang
 260+ rather than UI lang
259261
260262 === Languages updated in 1.16 ===
261263

Status & tagging log