Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -250,6 +250,7 @@ |
251 | 251 | 'ok', |
252 | 252 | 'sitetitle', |
253 | 253 | 'pagetitle', |
| 254 | + 'pagetitle-view-mainpage', |
254 | 255 | 'sitesubtitle', |
255 | 256 | 'retrievedfrom', |
256 | 257 | 'youhavenewmessages', |
Index: trunk/phase3/maintenance/language/messageTypes.inc |
— | — | @@ -150,6 +150,7 @@ |
151 | 151 | 'fewestrevisions-summary', |
152 | 152 | 'missingfiles-summary', |
153 | 153 | 'upload-summary', |
| 154 | + 'pagetitle-view-mainpage', |
154 | 155 | ); |
155 | 156 | |
156 | 157 | /** Optional messages, which may be translated only if changed in the target language. */ |
Index: trunk/phase3/CREDITS |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | * Tim Starling |
21 | 21 | |
22 | 22 | == Patch Contributors == |
23 | | -* |
| 23 | +* RememberTheDot |
24 | 24 | |
25 | 25 | == Translators == |
26 | 26 | * Anders Wegge Jakobsen |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -892,6 +892,14 @@ |
893 | 893 | $t = $wgOut->getPageTitle(); |
894 | 894 | if( empty( $t ) ) { |
895 | 895 | $wgOut->setPageTitle( $this->mTitle->getPrefixedText() ); |
| 896 | + |
| 897 | + # For the main page, overwrite the <title> element with the con- |
| 898 | + # tents of 'pagetitle-view-mainpage' instead of the default (if |
| 899 | + # that's not empty). |
| 900 | + if( $this->mTitle->equals( Title::newMainPage() ) && |
| 901 | + wfMsgForContent( 'pagetitle-view-mainpage' ) !== '' ) { |
| 902 | + $wgOut->setHTMLTitle( wfMsgForContent( 'pagetitle-view-mainpage' ) ); |
| 903 | + } |
896 | 904 | } |
897 | 905 | |
898 | 906 | # check if we're displaying a [[User talk:x.x.x.x]] anonymous talk page |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -728,6 +728,7 @@ |
729 | 729 | 'ok' => 'OK', |
730 | 730 | 'sitetitle' => '{{SITENAME}}', # do not translate or duplicate this message to other languages |
731 | 731 | 'pagetitle' => '$1 - {{SITENAME}}', # only translate this message to other languages if you have to change it |
| 732 | +'pagetitle-view-mainpage' => '', # do not translate or duplicate this message to other languages |
732 | 733 | 'sitesubtitle' => '', # do not translate or duplicate this message to other languages |
733 | 734 | 'retrievedfrom' => 'Retrieved from "$1"', |
734 | 735 | 'youhavenewmessages' => 'You have $1 ($2).', |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -44,6 +44,8 @@ |
45 | 45 | ables into into the output of Skin::makeVariablesScript |
46 | 46 | * Added $wgAddGroups and $wgRemoveGroups display on Special:ListGroupRights |
47 | 47 | * (bug 14377) Add a date selector to history pages |
| 48 | +* (bug 15007) New 'pagetitle-view-mainpage' message allows the HTML <title> of |
| 49 | + the main page to be customized |
48 | 50 | |
49 | 51 | === Bug fixes in 1.14 === |
50 | 52 | |