From 1bb00b6101c6f50cf20d59b806bd5984fd3ceb76 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 5 Mar 2009 15:36:24 +0000 Subject: [PATCH] (bug 17751) The message for bad titles in WantedPages is now localized --- RELEASE-NOTES | 1 + includes/specials/SpecialWantedpages.php | 2 +- languages/messages/MessagesEn.php | 1 + maintenance/language/messages.inc | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f2430b1189..501d4686b7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -241,6 +241,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 17722) Fix regression where users are unable to change temporary passwords * (bug 17799) Special:Random no longer throws a database error when a non- namespace is given, silently falls back to NS_MAIN +* (bug 17751) The message for bad titles in WantedPages is now localized == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions diff --git a/includes/specials/SpecialWantedpages.php b/includes/specials/SpecialWantedpages.php index 6f7e727c8c..7307b33594 100644 --- a/includes/specials/SpecialWantedpages.php +++ b/includes/specials/SpecialWantedpages.php @@ -85,7 +85,7 @@ class WantedPagesPage extends QueryPage { return wfSpecialList( $pageLink, $this->makeWlhLink( $title, $skin, $result ) ); } else { $tsafe = htmlspecialchars( $result->title ); - return "Invalid title in result set; {$tsafe}"; + return wfMsg( 'wantedpages-badtitle', $tsafe ); } } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 7c311f655b..5a7f7e4f2c 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2127,6 +2127,7 @@ Each row contains links to the first and second redirect, as well as the target 'wantedcategories-summary' => '', # do not translate or duplicate this message to other languages 'wantedpages' => 'Wanted pages', 'wantedpages-summary' => '', # do not translate or duplicate this message to other languages +'wantedpages-badtitle' => 'Invalid title in result set: $1', 'wantedfiles' => 'Wanted files', 'wantedfiles-summary' => '', # do not translate or duplicate this message to other languages 'wantedtemplates' => 'Wanted templates', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 83ae613552..e4af057ddc 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1395,6 +1395,7 @@ $wgMessageStructure = array( 'wantedcategories-summary', 'wantedpages', 'wantedpages-summary', + 'wantedpages-badtitle', 'wantedfiles', 'wantedfiles-summary', 'wantedtemplates', -- 2.20.1