Index: trunk/phase3/includes/Article.php |
— | — | @@ -1181,7 +1181,7 @@ |
1182 | 1182 | |
1183 | 1183 | if( $section == 'new' ) { |
1184 | 1184 | # Inserting a new section |
1185 | | - $subject = $summary ? "== {$summary} ==\n\n" : ''; |
| 1185 | + $subject = $summary ? wfMsgForContent('editsummaryheading',$summary) . "\n\n" : ''; |
1186 | 1186 | $text = strlen( trim( $oldtext ) ) > 0 |
1187 | 1187 | ? "{$oldtext}\n\n{$subject}{$text}" |
1188 | 1188 | : "{$subject}{$text}"; |
— | — | @@ -1207,7 +1207,7 @@ |
1208 | 1208 | |
1209 | 1209 | # If this is a comment, add the summary as headline |
1210 | 1210 | if ( $comment && $summary != "" ) { |
1211 | | - $text = "== {$summary} ==\n\n".$text; |
| 1211 | + $text = wfMsgForContent('editsummaryheading',$summary) . "\n\n" . $text; |
1212 | 1212 | } |
1213 | 1213 | |
1214 | 1214 | $this->doEdit( $text, $summary, $flags ); |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -709,6 +709,7 @@ |
710 | 710 | 'feed-rss' => 'RSS', # only translate this message to other languages if you have to change it |
711 | 711 | 'sitenotice' => '-', # the equivalent to wgSiteNotice; don't translate or duplicate this message to other languages |
712 | 712 | 'anonnotice' => '-', # don't translate or duplicate this message to other languages |
| 713 | +'editsummaryheading' => '== $1 ==', # don't translate or duplicate this message to other languages |
713 | 714 | |
714 | 715 | # Short words for each namespace, by default used in the 'article' tab in monobook |
715 | 716 | 'nstab-main' => 'Article', |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -194,7 +194,9 @@ |
195 | 195 | text for a non-existent page |
196 | 196 | * (bug 11022) Use a more accurate page title for Special:Whatlinkshere and |
197 | 197 | Special:Recentchangeslinked |
198 | | - |
| 198 | +* Add 'editsummaryheading' message to allow modification of the heading |
| 199 | + formatting for new sections (when section=new argument is supplied) |
| 200 | + |
199 | 201 | == Bugfixes since 1.10 == |
200 | 202 | |
201 | 203 | * (bug 9712) Use Arabic comma in date/time formats for Arabic and Farsi |
— | — | @@ -427,8 +429,8 @@ |
428 | 430 | * (bug 8393) <sup> and <sub> need to be preserved (without attributes) for |
429 | 431 | entries in the table of contents |
430 | 432 | * (bug 11114) Fix regression in read-only mode error display during editing |
| 433 | +* (bug 9426) Some way to specify heading level for new sections |
431 | 434 | |
432 | | - |
433 | 435 | == API changes since 1.10 == |
434 | 436 | |
435 | 437 | Full API documentation is available at http://www.mediawiki.org/wiki/API |