* (bug 8453) French translation for the Editcount extension

* Translated the same extension to german
This commit is contained in:
Leon Weber 2007-01-01 21:07:53 +00:00
parent 6bf9510e18
commit d354a6b36f
Notes: Raimond Spekking 2010-04-07 18:54:28 +00:00
2 changed files with 39 additions and 8 deletions

36
SpecialEditcount.i18n.php Normal file
View 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;
}

View file

@ -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 {