From f0650d874c4491d5825a59d310e807d0d7339553 Mon Sep 17 00:00:00 2001 From: Tina Johnson Date: Fri, 27 Mar 2015 00:11:59 +0530 Subject: [PATCH] Change labels of paging links in Category page Links 'next 200' and 'previous 200' don't always list 200 items. Hence changed the labels to 'previous page' and 'next page'. Also, added new messages for the same. Bug: T59414 Change-Id: Id5c30e92227e863acdeb3cadc132200ef2bc48c8 --- includes/CategoryViewer.php | 4 ++-- languages/i18n/en.json | 2 ++ languages/i18n/qqq.json | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index 48436c5d67..66079c0179 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -603,7 +603,7 @@ class CategoryViewer extends ContextSource { * @return string HTML */ private function pagingLinks( $first, $last, $type = '' ) { - $prevLink = $this->msg( 'prevn' )->numParams( $this->limit )->escaped(); + $prevLink = $this->msg( 'prev-page' )->text(); if ( $first != '' ) { $prevQuery = $this->query; @@ -617,7 +617,7 @@ class CategoryViewer extends ContextSource { ); } - $nextLink = $this->msg( 'nextn' )->numParams( $this->limit )->escaped(); + $nextLink = $this->msg( 'next-page' )->text(); if ( $last != '' ) { $lastQuery = $this->query; diff --git a/languages/i18n/en.json b/languages/i18n/en.json index bf65202db3..ebdc22d43e 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -879,6 +879,8 @@ "notextmatches": "No page text matches", "prevn": "previous {{PLURAL:$1|$1}}", "nextn": "next {{PLURAL:$1|$1}}", + "prev-page": "previous page", + "next-page": "next page", "prevn-title": "Previous $1 {{PLURAL:$1|result|results}}", "nextn-title": "Next $1 {{PLURAL:$1|result|results}}", "shown-title": "Show $1 {{PLURAL:$1|result|results}} per page", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index f573d457f8..47e9881250 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -1044,6 +1044,8 @@ "notextmatches": "Error message when there are no results", "prevn": "This is part of the navigation message on the top and bottom of Special pages (lists of things in alphabetical order, i.e. the '[[Special:Categories]]' page), where it is used as the first argument of {{msg-mw|Viewprevnext}}.\nIt is also used by Category pages (which do ''not'' use {{msg-mw|Viewprevnext}}).\n{{PLURAL:$1|$1}} is the number of items shown per page. It is not used when {{PLURAL:$1|$1}} is zero; not sure what happens when {{PLURAL:$1|$1}} is one.\n[[Special:WhatLinksHere|Whatlinkshere]] pages use {{msg-mw|Whatlinkshere-prev}} instead (still as an argument to {{msg-mw|Viewprevnext}}).\n\n{{Identical|Previous}}", "nextn": "This is part of the navigation message on the top and bottom of Special pages (lists of things in alphabetical order, i.e. the '[[Special:Categories]]' page), where it is used as the second argument of {{msg-mw|Viewprevnext}}.\n\nIt is also used by Category pages (which do ''not'' use {{msg-mw|Viewprevnext}}).\n\nParameters:\n* $1 - the number of items shown per page. It is not used when $1 is zero; not sure what happens when $1 is one.\n[[Special:WhatLinksHere|Whatlinkshere]] pages use {{msg-mw|Whatlinkshere-next}} instead (still as an argument to {{msg-mw|Viewprevnext}}).\n\n{{Identical|Next}}", + "prev-page": "This is part of the navigation message on the top and bottom of Category pages which links to the previous page", + "next-page": "This is part of the navigation message on the top and bottom of Category pages which links to the next page", "prevn-title": "Parameters:\n* $1 - number of search results\nSee also:\n* {{msg-mw|Viewprevnext}}", "nextn-title": "Parameters:\n* $1 - number of search results\nSee also:\n* {{msg-mw|Viewprevnext}}", "shown-title": "Parameters:\n* $1 - number of search results", -- 2.20.1