From 62c438f228cdbabd7600db5621e8da15e25e7576 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Wed, 5 Mar 2008 17:20:58 +0000 Subject: [PATCH] Tweak to avoid duplication of special pages list into every language file. --- languages/messages/MessagesDe.php | 60 +++------------------------ languages/messages/MessagesEn.php | 51 ++++++++++++++--------- maintenance/language/messageTypes.inc | 5 +++ maintenance/language/messages.inc | 5 +++ 4 files changed, 47 insertions(+), 74 deletions(-) diff --git a/languages/messages/MessagesDe.php b/languages/messages/MessagesDe.php index 0a0846c273..5a0a4d73eb 100644 --- a/languages/messages/MessagesDe.php +++ b/languages/messages/MessagesDe.php @@ -1393,69 +1393,19 @@ auf die bereits die erste Weiterleitung zeigen sollte.', * special:specialpagename Alle anderen Zeilen werden als normaler (Wiki)Text ausgewertet --> == Allgemeine Listen == -* special:Allpages -* special:Prefixindex -* special:Categories -* special:Disambiguations -* special:Listredirects +{{int:specialpages-tpl-lists}} == Wartungslisten == -* special:Mostcategories -* special:Fewestrevisions -* special:Mostrevisions -* special:BrokenRedirects -* special:Deadendpages -* special:DoubleRedirects -* special:Longpages -* special:Mostlinkedcategories -* special:Mostimages -* special:Mostlinked -* special:Mostlinkedtemplates -* special:Popularpages -* special:Ancientpages -* special:Lonelypages -* special:Shortpages -* special:Withoutinterwiki -* special:Protectedpages -* special:Protectedtitles -* special:Uncategorizedcategories -* special:Uncategorizedimages -* special:Uncategorizedpages -* special:Uncategorizedtemplates -* special:Unusedcategories -* special:Unusedimages -* special:Unusedtemplates +{{int:specialpages-tpl-maint}} == Werkzeuge == -* special:Export -* special:Filepath -* special:MIMEsearch -* special:Randompage -* special:Randomredirect -* special:Search -* special:Upload +{{int:specialpages-tpl-tools}} == Logbücher und Informationen == -* special:Ipblocklist -* special:Booksources -* special:Imagelist -* special:Log -* special:Newpages -* special:Newimages -* special:Recentchanges -* special:Statistics -* special:Allmessages -* special:Contributions -* special:Listusers -* special:Version -* special:Wantedcategories -* special:Wantedpages -* special:Whatlinkshere +{{int:specialpages-tpl-info}} == Persönliche Seiten == -* special:Preferences -* special:Watchlist -* special:Userlogin', +{{int:specialpages-tpl-pers}}', # Book sources 'booksources' => 'ISBN-Suche', diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index eab1b9deab..dee2713e88 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1722,13 +1722,37 @@ The [http://meta.wikimedia.org/wiki/Help:Job_queue job queue] length is '''\$7'' * special:specialpagename All other lines are rendered as normal (wiki)text --> == General page lists == +{{int:specialpages-tpl-lists}} + +== Maintenance page lists == +{{int:specialpages-tpl-maint}} + +== Tools == +{{int:specialpages-tpl-tools}} + +== Logs and information == +{{int:specialpages-tpl-info}} + +== Personal pages == +{{int:specialpages-tpl-pers}}', + +'specialpages-tpl-lists' => ' * special:Allpages * special:Prefixindex * special:Categories * special:Disambiguations -* special:Listredirects +* special:Listredirects', # don't translate or duplicate this message to other languages -== Maintenance page lists == +'specialpages-tpl-tools' => ' +* special:Export +* special:Filepath +* special:MIMEsearch +* special:Randompage +* special:Randomredirect +* special:Search +* special:Upload', # don't translate or duplicate this message to other languages + +'specialpages-tpl-maint' => ' * special:Mostcategories * special:Fewestrevisions * special:Mostrevisions @@ -1753,18 +1777,8 @@ All other lines are rendered as normal (wiki)text --> * special:Uncategorizedtemplates * special:Unusedcategories * special:Unusedimages -* special:Unusedtemplates - -== Tools == -* special:Export -* special:Filepath -* special:MIMEsearch -* special:Randompage -* special:Randomredirect -* special:Search -* special:Upload - -== Logs and information == +* special:Unusedtemplates', # don't translate or duplicate this message to other languages +'specialpages-tpl-info' => ' * special:Ipblocklist * special:Booksources * special:Imagelist @@ -1779,12 +1793,11 @@ All other lines are rendered as normal (wiki)text --> * special:Version * special:Wantedcategories * special:Wantedpages -* special:Whatlinkshere - -== Personal pages == +* special:Whatlinkshere', # don't translate or duplicate this message to other languages +'specialpages-tpl-pers' => ' * special:Preferences * special:Watchlist -* special:Userlogin', +* special:Userlogin', # don't translate or duplicate this message to other languages # Book sources 'booksources' => 'Book sources', @@ -2079,7 +2092,7 @@ $1', 'sp-contributions-username' => 'IP Address or username:', 'sp-contributions-submit' => 'Search', 'sp-contributions-explain' => '', # only translate this message to other languages if you have to change it -'sp-contributions-footer' => '-', # don't translate or duplicate this message to other languages +'sp-contributions-footer' => '-', 'sp-contributions-footer-anon' => '-', # don't translate or duplicate this message to other languages 'sp-newimages-showfrom' => 'Show new files starting from $1', diff --git a/maintenance/language/messageTypes.inc b/maintenance/language/messageTypes.inc index d5a07f84aa..478343c19a 100644 --- a/maintenance/language/messageTypes.inc +++ b/maintenance/language/messageTypes.inc @@ -108,6 +108,11 @@ $wgIgnoredMessages = array( 'talkpagetext', 'trackback', 'trackbackexcerpt', + 'specialpages-tpl-lists', + 'specialpages-tpl-tools', + 'specialpages-tpl-maint', + 'specialpages-tpl-info', + 'specialpages-tpl-pers', ); /** Optional messages, which may be translated only if changed in the other language. */ diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index cca89de1d5..edf20cef26 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1126,6 +1126,11 @@ $wgMessageStructure = array( 'specialpages-other', 'restrictedpheading', 'specialpages-tpl', + 'specialpages-tpl-lists', + 'specialpages-tpl-tools', + 'specialpages-tpl-maint', + 'specialpages-tpl-info', + 'specialpages-tpl-pers', ), 'booksources' => array( 'booksources', -- 2.20.1