7 require_once( 'LanguageUtf8.php' );
9 /* private */ $wgNamespaceNamesFr = array(
11 NS_SPECIAL
=> 'Special',
13 NS_TALK
=> 'Discuter',
14 NS_USER
=> 'Utilisateur',
15 NS_USER_TALK
=> 'Discussion_Utilisateur',
16 NS_PROJECT
=> $wgMetaNamespace,
17 NS_PROJECT_TALK
=> 'Discussion_'.$wgMetaNamespace,
19 NS_IMAGE_TALK
=> 'Discussion_Image',
20 NS_MEDIAWIKI
=> 'MediaWiki',
21 NS_MEDIAWIKI_TALK
=> 'Discussion_MediaWiki',
22 NS_TEMPLATE
=> 'Modèle',
23 NS_TEMPLATE_TALK
=> 'Discussion_Modèle',
25 NS_HELP_TALK
=> 'Discussion_Aide',
26 NS_CATEGORY
=> 'Catégorie',
27 NS_CATEGORY_TALK
=> 'Discussion_Catégorie'
28 ) +
$wgNamespaceNamesEn;
30 /* private */ $wgQuickbarSettingsFr = array(
31 'Aucune', 'Gauche', 'Droite', 'Flottante à gauche'
34 /* private */ $wgSkinNamesFr = array(
35 'standard' => 'Standard',
36 'nostalgia' => 'Nostalgie',
41 /* private */ $wgBookstoreListFr = array(
42 'Amazon.fr' => 'http://www.amazon.fr/exec/obidos/ISBN=$1',
43 'alapage.fr' => 'http://www.alapage.com/mx/?tp=F&type=101&l_isbn=$1&donnee_appel=ALASQ&devise=&',
44 'fnac.com' => 'http://www3.fnac.com/advanced/book.do?isbn=$1',
45 'chapitre.com' => 'http://www.chapitre.com/frame_rec.asp?isbn=$1',
48 if (!$wgCachedMessageArrays) {
49 require_once('MessagesFr.php');
52 class LanguageFr
extends LanguageUtf8
{
54 function getBookstoreList () {
55 global $wgBookstoreListFr ;
56 return $wgBookstoreListFr ;
59 function getNamespaces() {
60 global $wgNamespaceNamesFr;
61 return $wgNamespaceNamesFr;
64 function getNsIndex( $text ) {
65 global $wgNamespaceNamesFr, $wgSitename;
67 foreach ( $wgNamespaceNamesFr as $i => $n ) {
68 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
70 if( $wgSitename == 'Wikipédia' ) {
71 if( 0 == strcasecmp( 'Wikipedia', $text ) ) return NS_PROJECT
;
72 if( 0 == strcasecmp( 'Discussion_Wikipedia', $text ) ) return NS_PROJECT_TALK
;
77 function getQuickbarSettings() {
78 global $wgQuickbarSettingsFr;
79 return $wgQuickbarSettingsFr;
82 function getSkinNames() {
83 global $wgSkinNamesFr;
84 return $wgSkinNamesFr;
87 function timeBeforeDate( $format ) {
91 function timeDateSeparator( $format ) {
95 var $digitTransTable = array(
96 ',' => "\xc2\xa0", // @bug 2749
100 function formatNum( $number, $year = false ) {
101 return !$year ?
strtr($number, $this->digitTransTable
) : $number;
104 function getMessage( $key ) {
105 global $wgAllMessagesFr, $wgAllMessagesEn;
106 if( isset( $wgAllMessagesFr[$key] ) ) {
107 return $wgAllMessagesFr[$key];
109 return parent
::getMessage( $key );