(bug 37178) Allow pagination link l10n
authorDereckson <dereckson@espace-win.org>
Sat, 2 Jun 2012 12:43:00 +0000 (14:43 +0200)
committerjeremyb <jeremy@tuxmachine.com>
Sun, 3 Jun 2012 10:16:11 +0000 (10:16 +0000)
Change-Id: I1035c1e85246c8f9ce09f35405dfa3a5b6d4ba1c

includes/CategoryViewer.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messageTypes.inc
maintenance/language/messages.inc

index d83e0e0..0af7d7c 100644 (file)
@@ -604,7 +604,7 @@ class CategoryViewer extends ContextSource {
                        );
                }
 
-               return "($prevLink) ($nextLink)";
+               return $this->msg('categoryviewer-pagedlinks')->rawParams($prevLink, $nextLink)->escaped();
        }
 
        /**
index 017c7aa..a42be02 100644 (file)
@@ -758,6 +758,7 @@ XHTML id names.
 'index-category'                 => 'Indexed pages',
 'noindex-category'               => 'Noindexed pages',
 'broken-file-category'           => 'Pages with broken file links',
+'categoryviewer-pagedlinks'      => '($1) ($2)',
 
 'linkprefix' => '/^(.*?)([a-zA-Z\\x80-\\xff]+)$/sD', # only translate this message to other languages if you have to change it
 
index 07ff798..0e9c872 100644 (file)
@@ -310,6 +310,9 @@ See http://test.wikipedia.org/wiki/Category:Test_ko?uselang={{SUBPAGENAME}}, for
 'index-category' => 'Name of the [[mw:Help:Tracking categories|tracking category]] where pages with the <nowiki>__INDEX__</nowiki> behaviour switch are listed. For description of this behaviour switch see [//www.mediawiki.org/wiki/Help:Magic_words#Behavior_switches mediawiki].',
 'noindex-category' => 'Name of the [[mw:Help:Tracking categories|tracking category]] where pages with the <nowiki>__NOINDEX__</nowiki> behaviour switch are listed. For description of this behaviour switch see [//www.mediawiki.org/wiki/Help:Magic_words#Behavior_switches mediawiki].',
 'broken-file-category' => 'Name of [[mw:Help:Tracking categories|tracking category]] where pages that embed files that do not exist ("broken images") are listed.',
+'categoryviewer-pagedlinks' => 'The pagination links in category viewer. Parameters:
+* $1 is the previous link,
+* $2 is the next link',
 
 'linkprefix' => '{{optional}}',
 
index 295b684..bca4c34 100644 (file)
@@ -472,6 +472,7 @@ $wgOptionalMessages = array(
        'version-entrypoints-articlepath',
        'version-entrypoints-scriptpath',
        'mergehistory-revisionrow',
+       'categoryviewer-pagedlinks',
 );
 
 /** EXIF messages, which may be set as optional in several checks, but are generally mandatory */
index 3196c81..d5ec209 100644 (file)
@@ -157,6 +157,7 @@ $wgMessageStructure = array(
                'index-category',
                'noindex-category',
                'broken-file-category',
+               'categoryviewer-pagedlinks',
        ),
        'mainpage' => array(
                'linkprefix',