From cb8121807077842b545c27597492d9edb943fc20 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Thu, 31 Jan 2008 14:38:12 +0000 Subject: [PATCH] * (bug 10365) Localization of Special:Version Extension descriptions can be localized by adding the new keyword 'descriptionmsg' to $wgExtensionCredits with a message name. See the Cite extension as example. Patches for other extensions will follow in the next days. --- Cite.i18n.php | 3 ++- Cite.php | 5 +++-- SpecialCite.i18n.php | 2 ++ SpecialCite.php | 5 +++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Cite.i18n.php b/Cite.i18n.php index 06e845c6c..eb016df73 100644 --- a/Cite.i18n.php +++ b/Cite.i18n.php @@ -8,10 +8,10 @@ $messages = array(); $messages['en'] = array( + 'cite_desc' => 'Adds and tags, for citations', /* Debug and errors */ - # Internal errors 'cite_croak' => 'Cite croaked; $1: $2', 'cite_error_key_str_invalid' => 'Internal error; invalid $str and/or $key. This should never occur.', @@ -179,6 +179,7 @@ $messages['da'] = array( * @author Raimond Spekking */ $messages['de'] = array( + 'cite_desc' => 'Ergänzt für Quellennachweise die und Tags', 'cite_croak' => 'Fehler im Referenz-System. $1: $2', 'cite_error_key_str_invalid' => 'Interner Fehler: ungültiger $str und/oder $key. Dies sollte eigentlich gar nicht passieren können.', 'cite_error_stack_invalid_input' => 'Interner Fehler: ungültiger „name“-stack. Dies sollte eigentlich gar nicht passieren können.', diff --git a/Cite.php b/Cite.php index 70ab6de51..52a493312 100644 --- a/Cite.php +++ b/Cite.php @@ -21,8 +21,10 @@ if ( ! defined( 'MEDIAWIKI' ) ) $wgExtensionFunctions[] = 'wfCite'; $wgExtensionCredits['parserhook'][] = array( 'name' => 'Cite', + 'version' => '2008-01-31', 'author' => 'Ævar Arnfjörð Bjarmason', - 'description' => 'Adds and tags, for citations', + 'description' => 'Adds and tags, for citations', // kept for b/c + 'descriptionmsg' => 'cite_desc', 'url' => 'http://www.mediawiki.org/wiki/Extension:Cite/Cite.php' ); $wgParserTestFiles[] = dirname( __FILE__ ) . "/citeParserTests.txt"; @@ -662,4 +664,3 @@ function wfCite() { /**#@-*/ - diff --git a/SpecialCite.i18n.php b/SpecialCite.i18n.php index 876d2f2da..0c7c73cd4 100644 --- a/SpecialCite.i18n.php +++ b/SpecialCite.i18n.php @@ -8,6 +8,7 @@ $messages = array(); $messages['en'] = array( + 'cite_article_desc' => 'Adds a [[Special:Cite|citation]] special page & toolbox link', 'cite_article_link' => 'Cite this page', 'cite' => 'Cite', 'cite_page' => 'Page:', @@ -170,6 +171,7 @@ $messages['da'] = array( ); $messages['de'] = array( + 'cite_article_desc' => 'Ergänzt die [[Special:Cite|Zitierhilfe]]-Spezialseite und einen Link im Kasten Werkzeuge', 'cite_article_link' => 'Seite zitieren', 'cite' => 'Zitierhilfe', 'cite_page' => 'Seite:', diff --git a/SpecialCite.php b/SpecialCite.php index 697cc6eb3..4d680b1de 100644 --- a/SpecialCite.php +++ b/SpecialCite.php @@ -15,9 +15,10 @@ if (!defined('MEDIAWIKI')) die(); $wgExtensionCredits['specialpage'][] = array( 'name' => 'Cite', - 'version' => '2008-01-09', + 'version' => '2008-01-31', 'author' => 'Ævar Arnfjörð Bjarmason', - 'description' => 'adds a [[Special:Cite|citation]] special page & toolbox link', + 'description' => 'adds a [[Special:Cite|citation]] special page & toolbox link', // kept for b/c + 'descriptionmsg' => 'cite_article_desc', 'url' => 'http://www.mediawiki.org/wiki/Extension:Cite/Special:Cite.php' );