Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -804,6 +804,7 @@ |
805 | 805 | 'searchmenu-legend', |
806 | 806 | 'searchmenu-exists', |
807 | 807 | 'searchmenu-new', |
| 808 | + 'searchmenu-new-nocreate', |
808 | 809 | 'searchhelp-url', |
809 | 810 | 'searchmenu-prefix', |
810 | 811 | 'searchmenu-help', |
Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -327,6 +327,8 @@ |
328 | 328 | $messageName = 'searchmenu-exists'; |
329 | 329 | } elseif( $t->userCan( 'create' ) ) { |
330 | 330 | $messageName = 'searchmenu-new'; |
| 331 | + } else { |
| 332 | + $messageName = 'searchmenu-new-nocreate'; |
331 | 333 | } |
332 | 334 | } |
333 | 335 | if( $messageName ) { |
Index: trunk/phase3/languages/messages/MessagesQqq.php |
— | — | @@ -1121,6 +1121,7 @@ |
1122 | 1122 | 'searchmenu-legend' => '{{Identical|Search options}}', |
1123 | 1123 | 'searchmenu-exists' => 'An option shown in a menu beside search form offering a link to the existing page having the specified title (when using the default MediaWiki search engine).', |
1124 | 1124 | 'searchmenu-new' => 'An option shown in a menu beside search form offering a red link to the not yet existing page having the specified title (when using the default MediaWiki search engine).', |
| 1125 | +'searchmenu-new-nocreate' => 'An option shown in a menu beside search form when users are not allowed to create new pages (when using the default MediaWiki search engine).', |
1125 | 1126 | 'searchhelp-url' => '{{Identical|HelpContent}} |
1126 | 1127 | Description: The URL of the search help page. |
1127 | 1128 | {{doc-important|Do not change "Help:" part.}}', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1611,6 +1611,7 @@ |
1612 | 1612 | 'searchmenu-legend' => 'Search options', |
1613 | 1613 | 'searchmenu-exists' => "'''There is a page named \"[[:\$1]]\" on this wiki'''", |
1614 | 1614 | 'searchmenu-new' => "'''Create the page \"[[:\$1]]\" on this wiki!'''", |
| 1615 | +'searchmenu-new-nocreate' => '', # do not translate or duplicate this message to other languages |
1615 | 1616 | 'searchhelp-url' => 'Help:Contents', |
1616 | 1617 | 'searchmenu-prefix' => '[[Special:PrefixIndex/$1|Browse pages with this prefix]]', |
1617 | 1618 | 'searchmenu-help' => '[[{{MediaWiki:Searchhelp-url}}|{{int:help}}]]?', # do not translate or duplicate this message to other languages |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -65,6 +65,8 @@ |
66 | 66 | which causes Vector to render the variants drop-down menu with a label |
67 | 67 | showing the current variant name. This is off by default, pending further |
68 | 68 | research into its user experience implications. |
| 69 | +* (bug 20976) "searchmenu-new-nocreate" message now displayed when when there |
| 70 | + is no title match in search and the user has no rights to create pages. |
69 | 71 | |
70 | 72 | === Bug fixes in 1.17 === |
71 | 73 | * (bug 17560) Half-broken deletion moved image files to deletion archive |