From: Siebrand Mazeland Date: Thu, 27 Dec 2012 22:54:54 +0000 (+0100) Subject: Add plural support for protocols in 'linksearch-text' X-Git-Tag: 1.31.0-rc.0~21200 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=0086df3c586cf192d51e10d6e4fb860ee2b743a4;p=lhc%2Fweb%2Fwiklou.git Add plural support for protocols in 'linksearch-text' Change-Id: I6b043b4b3f7bba585abe6bd44d29a300a35d697c --- diff --git a/includes/specials/SpecialLinkSearch.php b/includes/specials/SpecialLinkSearch.php index 5de60769bd..9a224b6f73 100644 --- a/includes/specials/SpecialLinkSearch.php +++ b/includes/specials/SpecialLinkSearch.php @@ -84,7 +84,11 @@ class LinkSearchPage extends QueryPage { $protocol = ''; } - $out->addWikiMsg( 'linksearch-text', '' . $this->getLanguage()->commaList( $protocols_list ) . '' ); + $out->addWikiMsg( + 'linksearch-text', + '' . $this->getLanguage()->commaList( $protocols_list ) . '', + count( $protocols_list ) + ); $s = Xml::openElement( 'form', array( 'id' => 'mw-linksearch-form', 'method' => 'get', 'action' => $GLOBALS['wgScript'] ) ) . Html::hidden( 'title', $this->getTitle()->getPrefixedDbKey() ) . '
' . diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index e1ffb68d0e..e4acd18bde 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2760,7 +2760,7 @@ Also see [[Special:WantedCategories|wanted categories]].', '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 (defaults to http:// if no protocol is specified).', +Supported {{PLURAL:$2|protocol|protocols}}: $1 (defaults to http:// if no protocol is specified).', 'linksearch-line' => '$1 is linked from $2', 'linksearch-error' => 'Wildcards may appear only at the start of the hostname.',