From e74ac621db20c655079582ebfd41cad91211c63e Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Fri, 9 Mar 2012 23:23:01 +0000 Subject: [PATCH] Add message keys for 18 missing summary messages. * Patch for bug 34319 for Special:DeletedContributions and Special:Contributions contributed by Srikanth Lakshmanan * Other 16 instances identified by Der Umherirrende on translatewiki.net (https://translatewiki.net/wiki/Thread:Support/Missing_summary_message_keys_in_message_files), code updates by me. --- CREDITS | 3 +- .../specials/SpecialDeletedContributions.php | 1 + languages/messages/MessagesEn.php | 48 +++++++++++++------ maintenance/language/messageTypes.inc | 18 +++++++ maintenance/language/messages.inc | 18 +++++++ 5 files changed, 72 insertions(+), 16 deletions(-) diff --git a/CREDITS b/CREDITS index 8baea59394..54402b01f0 100644 --- a/CREDITS +++ b/CREDITS @@ -8,7 +8,7 @@ following names for their contribution to the product. * Alexandre Emsenhuber * Andrew Garrett * Aryeh Gregor -* Antoine Musso +* Antoine Musso * Brian Wolff * Bertrand Grondin * Brad Jorsch @@ -176,6 +176,7 @@ following names for their contribution to the product. * Simon Walker * Solitarius * Søren Løvborg +* Srikanth Lakshmanan * Stefano Codari * Str4nd * svip diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index a097d90685..0fe631afb5 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -260,6 +260,7 @@ class DeletedContributionsPage extends SpecialPage { function execute( $par ) { global $wgQueryPageDefaultLimit; $this->setHeaders(); + $this->outputHeader(); $user = $this->getUser(); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 3c682a5e21..c6d09242a7 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1062,6 +1062,7 @@ Do not forget to change your [[Special:Preferences|{{SITENAME}} preferences]].', 'userloginnocreate' => 'Log in', 'logout' => 'Log out', 'userlogout' => 'Log out', +'userlogout-summary' => '', # do not translate or duplicate this message to other languages 'notloggedin' => 'Not logged in', 'nologin' => "Don't have an account? $1.", 'nologinlink' => 'Create an account', @@ -1228,6 +1229,7 @@ Temporary password: $2', # Special:ChangeEmail 'changeemail' => 'Change e-mail address', +'changeemail-summary' => '', # do not translate or duplicate this message to other languages 'changeemail-header' => 'Change account e-mail address', 'changeemail-text' => 'Complete this form to change your e-mail address. You will need to enter your password to confirm this change.', 'changeemail-no-info' => 'You must be logged in to access this page directly.', @@ -1764,6 +1766,7 @@ Note that their indexes of {{SITENAME}} content may be out of date.', 'prefsnologin' => 'Not logged in', 'prefsnologintext' => 'You must be [{{fullurl:{{#Special:UserLogin}}|returnto=$1}} logged in] to set user preferences.', 'changepassword' => 'Change password', +'changepassword-summary' => '', # do not translate or duplicate this message to other languages 'prefs-skin' => 'Skin', 'skin-preview' => 'Preview', 'datedefault' => 'No preference', @@ -2537,7 +2540,9 @@ It now redirects to [[$2]].', 'uncategorizedtemplates' => 'Uncategorized templates', 'uncategorizedtemplates-summary' => '', # do not translate or duplicate this message to other languages 'unusedcategories' => 'Unused categories', +'unusedcategories-summary' => '', # do not translate or duplicate this message to other languages 'unusedimages' => 'Unused files', +'unusedimages-summary' => '', # do not translate or duplicate this message to other languages 'popularpages' => 'Popular pages', 'popularpages-summary' => '', # do not translate or duplicate this message to other languages 'wantedcategories' => 'Wanted categories', @@ -2662,19 +2667,21 @@ Also see [[Special:WantedCategories|wanted categories]].', # Special:DeletedContributions 'deletedcontributions' => 'Deleted user contributions', +'deletedcontributions-summary' => '', # do not translate or duplicate this message to other languages 'deletedcontributions-title' => 'Deleted user contributions', 'sp-deletedcontributions-contribs' => 'contributions', # Special:LinkSearch -'linksearch' => 'External links search', -'linksearch-pat' => 'Search pattern:', -'linksearch-ns' => 'Namespace:', -'linksearch-ok' => 'Search', -'linksearch-text' => 'Wildcards such as "*.wikipedia.org" may be used. +'linksearch' => 'External links search', +'linksearch-summary' => '', # do not translate or duplicate this message to other languages +'linksearch-pat' => 'Search pattern:', +'linksearch-ns' => 'Namespace:', +'linksearch-ok' => 'Search', +'linksearch-text' => 'Wildcards such as "*.wikipedia.org" may be used. Needs at least a top-level domain, for example "*.org".
Supported protocols: $1 (do not add any of these in your search).', -'linksearch-line' => '$1 is linked from $2', -'linksearch-error' => 'Wildcards may appear only at the start of the hostname.', +'linksearch-line' => '$1 is linked from $2', +'linksearch-error' => 'Wildcards may appear only at the start of the hostname.', # Special:ListUsers 'listusersfrom' => 'Display users starting at:', @@ -2721,6 +2728,7 @@ There may be [[{{MediaWiki:Listgrouprights-helppage}}|additional information]] a 'mailnologin' => 'No send address', 'mailnologintext' => 'You must be [[Special:UserLogin|logged in]] and have a valid e-mail address in your [[Special:Preferences|preferences]] to send e-mail to other users.', 'emailuser' => 'E-mail this user', +'emailuser-summary' => '', # do not translate or duplicate this message to other languages 'emailpage' => 'E-mail user', 'emailpagetext' => 'You can use the form below to send an e-mail message to this user. The e-mail address you entered in [[Special:Preferences|your user preferences]] will appear as the "From" address of the e-mail, so the recipient will be able to reply directly to you.', @@ -2957,6 +2965,7 @@ You can change this page's protection level, but it will not affect the cascadin # Undelete 'undelete' => 'View deleted pages', +'undelete-summary' => '', # do not translate or duplicate this message to other languages 'undeletepage' => 'View and restore deleted pages', 'undeletepagetitle' => "'''The following consists of deleted revisions of [[:$1|$1]]'''.", 'viewdeletedpage' => 'View deleted pages', @@ -3019,14 +3028,15 @@ $1', 'blanknamespace' => '(Main)', # Contributions -'contributions' => 'User contributions', -'contributions-title' => 'User contributions for $1', -'mycontris' => 'My contributions', -'contribsub2' => 'For $1 ($2)', -'nocontribs' => 'No changes were found matching these criteria.', -'uctop' => '(top)', -'month' => 'From month (and earlier):', -'year' => 'From year (and earlier):', +'contributions' => 'User contributions', +'contributions-summary' => '', # do not translate or duplicate this message to other languages +'contributions-title' => 'User contributions for $1', +'mycontris' => 'My contributions', +'contribsub2' => 'For $1 ($2)', +'nocontribs' => 'No changes were found matching these criteria.', +'uctop' => '(top)', +'month' => 'From month (and earlier):', +'year' => 'From year (and earlier):', 'sp-contributions-newbies' => 'Show contributions of new accounts only', 'sp-contributions-newbies-sub' => 'For new accounts', @@ -3073,6 +3083,7 @@ The latest block log entry is provided below for reference:', 'autoblockid' => 'Autoblock #$1', 'block' => 'Block user', 'unblock' => 'Unblock user', +'unblock-summary' => '', # do not translate or duplicate this message to other languages 'blockip' => 'Block user', 'blockip-title' => 'Block user', 'blockip-legend' => 'Block user', @@ -3226,6 +3237,7 @@ To lock or unlock the database, this needs to be writable by the web server.', # Move page 'move-page' => 'Move $1', +'movepage-summary' => '', # do not translate or duplicate this message to other languages 'move-page-legend' => 'Move page', 'movepagetext' => "Using the form below will rename a page, moving all of its history to the new name. The old title will become a redirect page to the new title. @@ -3320,6 +3332,7 @@ Please choose another name.', # Export 'export' => 'Export pages', +'export-summary' => '', # do not translate or duplicate this message to other languages 'exporttext' => 'You can export the text and editing history of a particular page or set of pages wrapped in some XML. This can be imported into another wiki using MediaWiki via the [[Special:Import|import page]]. @@ -3373,6 +3386,7 @@ Please visit [//www.mediawiki.org/wiki/Localisation MediaWiki Localisation] and # Special:Import 'import' => 'Import pages', +'import-summary' => '', # do not translate or duplicate this message to other languages 'importinterwiki' => 'Transwiki import', 'import-interwiki-text' => "Select a wiki and page title to import. Revision dates and editors' names will be preserved. @@ -4461,6 +4475,7 @@ Try normal preview.', 'lag-warn-high' => 'Due to high database server lag, changes newer than $1 {{PLURAL:$1|second|seconds}} may not be shown in this list.', # Watchlist editor +'editwatchlist-summary' => '', # do not translate or duplicate this message to other languages 'watchlistedit-numitems' => 'Your watchlist contains {{PLURAL:$1|1 title|$1 titles}}, excluding talk pages.', 'watchlistedit-noitems' => 'Your watchlist contains no titles.', 'watchlistedit-normal-title' => 'Edit watchlist', @@ -4556,6 +4571,7 @@ You can also [[Special:EditWatchlist|use the standard editor]].', # Special:Version 'version' => 'Version', +'version-summary' => '', # do not translate or duplicate this message to other languages 'version-extensions' => 'Installed extensions', 'version-specialpages' => 'Special pages', 'version-parserhooks' => 'Parser hooks', @@ -4638,6 +4654,7 @@ Images are shown in full resolution, other file types are started with their ass # Special:Tags 'tags' => 'Valid change tags', +'tags-summary' => '', # do not translate or duplicate this message to other languages 'tag-filter' => '[[Special:Tags|Tag]] filter:', 'tag-filter-submit' => 'Filter', 'tags-title' => 'Tags', @@ -4651,6 +4668,7 @@ Images are shown in full resolution, other file types are started with their ass # Special:ComparePages 'comparepages' => 'Compare pages', +'comparepages-summary' => '', # do not translate or duplicate this message to other languages 'compare-selector' => 'Compare page revisions', 'compare-page1' => 'Page 1', 'compare-page2' => 'Page 2', diff --git a/maintenance/language/messageTypes.inc b/maintenance/language/messageTypes.inc index b33e2c4f59..cc34d48e40 100644 --- a/maintenance/language/messageTypes.inc +++ b/maintenance/language/messageTypes.inc @@ -218,6 +218,24 @@ $wgIgnoredMessages = array( 'deletedarticle', // 'uploadedimage', // 'overwroteimage', + 'userlogout-summary', + 'changeemail-summary', + 'changepassword-summary', + 'unusedcategories-summary', + 'unusedimages-summary', + 'deletedcontributions-summary', + 'linksearch-summary', + 'emailuser-summary', + 'undelete-summary', + 'contributions-summary', + 'unblock-summary', + 'movepage-summary', + 'export-summary', + 'import-summary', + 'editwatchlist-summary', + 'version-summary', + 'tags-summary', + 'comparepages-summary', ); /** Optional messages, which may be translated only if changed in the target language. */ diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index f60208fd8a..c9afbfa87e 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -431,6 +431,7 @@ $wgMessageStructure = array( 'userloginnocreate', 'logout', 'userlogout', + 'userlogout-summary', 'notloggedin', 'nologin', 'nologinlink', @@ -538,6 +539,7 @@ $wgMessageStructure = array( ), 'changeemail' => array( 'changeemail', + 'changeemail-summary', 'changeemail-header', 'changeemail-text', 'changeemail-no-info', @@ -925,6 +927,7 @@ $wgMessageStructure = array( 'prefsnologin', 'prefsnologintext', 'changepassword', + 'changepassword-summary', 'prefs-skin', 'skin-preview', 'datedefault', @@ -1628,7 +1631,9 @@ $wgMessageStructure = array( 'uncategorizedtemplates', 'uncategorizedtemplates-summary', 'unusedcategories', + 'unusedcategories-summary', 'unusedimages', + 'unusedimages-summary', 'popularpages', 'popularpages-summary', 'wantedcategories', @@ -1748,11 +1753,13 @@ $wgMessageStructure = array( ), 'deletedcontribs' => array( 'deletedcontributions', + 'deletedcontributions-summary', 'deletedcontributions-title', 'sp-deletedcontributions-contribs', ), 'linksearch' => array( 'linksearch', + 'linksearch-summary', 'linksearch-pat', 'linksearch-ns', 'linksearch-ok', @@ -1805,6 +1812,7 @@ $wgMessageStructure = array( 'mailnologin', 'mailnologintext', 'emailuser', + 'emailuser-summary', 'emailpage', 'emailpagetext', 'usermailererror', @@ -1987,6 +1995,7 @@ $wgMessageStructure = array( ), 'undelete' => array( 'undelete', + 'undelete-summary', 'undeletepage', 'undeletepagetitle', 'viewdeletedpage', @@ -2037,6 +2046,7 @@ $wgMessageStructure = array( ), 'contributions' => array( 'contributions', + 'contributions-summary', 'contributions-title', 'mycontris', 'contribsub2', @@ -2089,6 +2099,7 @@ $wgMessageStructure = array( 'autoblockid', 'block', 'unblock', + 'unblock-summary', 'blockip', 'blockip-title', 'blockip-legend', @@ -2220,6 +2231,7 @@ $wgMessageStructure = array( ), 'movepage' => array( 'move-page', + 'movepage-summary', 'move-page-legend', 'movepagetext', 'movepagetext-noredirectfixer', @@ -2281,6 +2293,7 @@ $wgMessageStructure = array( ), 'export' => array( 'export', + 'export-summary', 'exporttext', 'exportall', 'exportcuronly', @@ -2327,6 +2340,7 @@ $wgMessageStructure = array( ), 'import' => array( 'import', + 'import-summary', 'importinterwiki', 'import-interwiki-text', 'import-interwiki-source', @@ -3340,6 +3354,7 @@ $wgMessageStructure = array( 'confirm-watch-button', ), 'watchlisteditor' => array( + 'editwatchlist-summary', 'watchlistedit-numitems', 'watchlistedit-noitems', 'watchlistedit-normal-title', @@ -3430,6 +3445,7 @@ $wgMessageStructure = array( ), 'version' => array( 'version', + 'version-summary', 'version-extensions', 'version-specialpages', 'version-parserhooks', @@ -3498,6 +3514,7 @@ $wgMessageStructure = array( ), 'special-tags' => array( 'tags', + 'tags-summary', 'tag-filter', 'tag-filter-submit', 'tags-title', @@ -3511,6 +3528,7 @@ $wgMessageStructure = array( ), 'comparepages' => array( 'comparepages', + 'comparepages-summary', 'compare-selector', 'compare-page1', 'compare-page2', -- 2.20.1