From: Alexandre Emsenhuber Date: Mon, 18 Aug 2008 14:19:12 +0000 (+0000) Subject: Use colon-separator message after summary, summary-preview, subject and subject-previ... X-Git-Tag: 1.31.0-rc.0~45835 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=8ffd41a986ffa318fc044689878252983dd9a7f8;p=lhc%2Fweb%2Fwiklou.git Use colon-separator message after summary, summary-preview, subject and subject-preview instead of hardcoding a ":" after it --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 41a2e6d7a0..1b86871937 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1213,8 +1213,9 @@ class EditPage { #if ( "no" == $redirect ) { $q .= "&redirect=no"; } $action = $wgTitle->escapeLocalURL( $q ); - $summary = wfMsg('summary'); - $subject = wfMsg('subject'); + $colonSep = wfMsg( 'colon-separator' ); + $summary = wfMsg( 'summary' ) . $colonSep; + $subject = wfMsg( 'subject' ) . $colonSep; $cancel = $sk->makeKnownLink( $wgTitle->getPrefixedText(), wfMsgExt('cancel', array('parseinline')) ); @@ -1291,16 +1292,16 @@ class EditPage { $autosumm = $this->autoSumm ? $this->autoSumm : md5( $this->summary ); $summaryhiddens .= Xml::hidden( 'wpAutoSummary', $autosumm ); if( $this->section == 'new' ) { - $commentsubject="\n{$summaryhiddens}
"; + $commentsubject="\n{$summaryhiddens}
"; $editsummary = "
\n"; global $wgParser; $formattedSummary = wfMsgForContent( 'newsectionsummary', $wgParser->stripSectionName( $this->summary ) ); - $subjectpreview = $summarytext && $this->preview ? "
".wfMsg('subject-preview').':'.$sk->commentBlock( $formattedSummary, $this->mTitle, true )."
\n" : ''; + $subjectpreview = $summarytext && $this->preview ? "
".wfMsg('subject-preview').$colonSep.$sk->commentBlock( $formattedSummary, $this->mTitle, true )."
\n" : ''; $summarypreview = ''; } else { $commentsubject = ''; - $editsummary="
\n\n{$summaryhiddens}
"; - $summarypreview = $summarytext && $this->preview ? "
".wfMsg('summary-preview').':'.$sk->commentBlock( $this->summary, $this->mTitle )."
\n" : ''; + $editsummary="
\n\n{$summaryhiddens}
"; + $summarypreview = $summarytext && $this->preview ? "
".wfMsg('summary-preview').$colonSep.$sk->commentBlock( $this->summary, $this->mTitle )."
\n" : ''; $subjectpreview = ''; }