mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 00:40:12 +00:00
* (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.
This commit is contained in:
parent
df0078fef2
commit
cb81218070
|
@ -8,10 +8,10 @@
|
|||
$messages = array();
|
||||
|
||||
$messages['en'] = array(
|
||||
'cite_desc' => 'Adds <nowiki><ref[ name=id]></nowiki> and <nowiki><references/></nowiki> 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 <nowiki><ref[ name=id]></nowiki> und <nowiki><references/></nowiki> 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.',
|
||||
|
|
5
Cite.php
5
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 <nowiki><ref[ name=id]></nowiki> and <nowiki><references/></nowiki> tags, for citations',
|
||||
'description' => 'Adds <nowiki><ref[ name=id]></nowiki> and <nowiki><references/></nowiki> 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() {
|
|||
|
||||
/**#@-*/
|
||||
|
||||
|
||||
|
|
|
@ -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:',
|
||||
|
|
|
@ -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'
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue