mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Editcount
synced 2024-11-27 17:50:50 +00:00
* (bug 8453) French translation for the Editcount extension
* Translated the same extension to german
This commit is contained in:
parent
6bf9510e18
commit
d354a6b36f
Notes:
Raimond Spekking
2010-04-07 18:54:28 +00:00
36
SpecialEditcount.i18n.php
Normal file
36
SpecialEditcount.i18n.php
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Internationalisation file for CountEdits extension
|
||||
*
|
||||
* @package MediaWiki
|
||||
* @subpackage Extensions
|
||||
* @author Bertrand GRONDIN <bertrand.grondinr@tiscali.fr>
|
||||
*/
|
||||
|
||||
function efEditCountMessages() {
|
||||
$messages = array(
|
||||
// English Version by Rob Church
|
||||
'en' => array(
|
||||
'editcount' => 'Edit count',
|
||||
'editcount_username' => 'User: ',
|
||||
'editcount_submit' => 'Submit',
|
||||
'editcount_total' => 'Total',
|
||||
),
|
||||
// French Version by Bertrand Grondin
|
||||
'fr' => array(
|
||||
'editcount' => 'Compteur d\'éditions individuel',
|
||||
'editcount_username' => 'Utilisateur: ',
|
||||
'editcount_submit' => 'Soumettre',
|
||||
'editcount_total' => 'Total',
|
||||
),
|
||||
// German by Leon Weber
|
||||
'de' => array(
|
||||
'editcount' => 'Anzahl der Seitenbearbeitungen',
|
||||
'editcount_username' => 'Benutzer: ',
|
||||
'editcount_submit' => 'Absenden',
|
||||
'editcount_total' => 'Gesamt',
|
||||
),
|
||||
);
|
||||
return $messages;
|
||||
}
|
|
@ -23,14 +23,9 @@ $wgExtensionCredits['specialpage'][] = array(
|
|||
function wfSpecialEditcount() {
|
||||
global $IP, $wgMessageCache;
|
||||
|
||||
$wgMessageCache->addMessages(
|
||||
array(
|
||||
'editcount' => 'Edit count',
|
||||
'editcount_username' => 'User: ',
|
||||
'editcount_submit' => 'Submit',
|
||||
'editcount_total' => 'Total',
|
||||
)
|
||||
);
|
||||
require_once ('SpecialEditcount.i18n.php' );
|
||||
foreach( efEditCountMessages() as $lang => $messages )
|
||||
$wgMessageCache->addMessages( $messages, $lang );
|
||||
|
||||
require_once "$IP/includes/SpecialPage.php";
|
||||
class Editcount extends SpecialPage {
|
||||
|
|
Loading…
Reference in a new issue