7 require_once( 'LanguageUtf8.php' );
9 /* private */ $wgNamespaceNamesBr = array(
11 NS_SPECIAL
=> 'Dibar',
14 NS_USER
=> 'Implijer',
15 NS_USER_TALK
=> 'Kaozeadenn_Implijer',
16 NS_PROJECT
=> $wgMetaNamespace,
17 NS_PROJECT_TALK
=> 'Kaozeadenn_'.$wgMetaNamespace,
18 NS_IMAGE
=> 'Skeudenn',
19 NS_IMAGE_TALK
=> 'Kaozeadenn_Skeudenn',
20 NS_MEDIAWIKI
=> 'MediaWiki',
21 NS_MEDIAWIKI_TALK
=> 'Kaozeadenn_MediaWiki',
22 NS_TEMPLATE
=> 'Patrom',
23 NS_TEMPLATE_TALK
=> 'Kaozeadenn_Patrom',
24 NS_HELP
=> 'Skoazell',
25 NS_HELP_TALK
=> 'Kaozeadenn_Skoazell',
26 NS_CATEGORY
=> 'Rummad',
27 NS_CATEGORY_TALK
=> 'Kaozeadenn_Rummad'
28 ) +
$wgNamespaceNamesEn;
30 /* private */ $wgQuickbarSettingsBr = array(
31 'Hini ebet', 'Kleiz', 'Dehou', 'War-neuñv a-gleiz'
34 /* private */ $wgSkinNamesBr = array(
35 'standard' => 'Standard',
36 'nostalgia' => 'Melkoni',
37 'cologneblue' => 'Glaz Kologn',
38 'smarty' => 'Paddington',
39 'montparnasse' => 'Montparnasse',
40 'davinci' => 'DaVinci',
42 'monobook' => 'MonoBook',
48 /* private */ $wgBookstoreListBr = array(
49 'Amazon.fr' => 'http://www.amazon.fr/exec/obidos/ISBN=$1',
50 'alapage.fr' => 'http://www.alapage.com/mx/?tp=F&type=101&l_isbn=$1&donnee_appel=ALASQ&devise=&',
51 'fnac.com' => 'http://www3.fnac.com/advanced/book.do?isbn=$1',
52 'chapitre.com' => 'http://www.chapitre.com/frame_rec.asp?isbn=$1',
55 if (!$wgCachedMessageArrays) {
56 require_once('MessagesAf.php');
59 class LanguageBr
extends LanguageUtf8
{
61 function getBookstoreList () {
62 global $wgBookstoreListBr ;
63 return $wgBookstoreListBr ;
66 function getNamespaces() {
67 global $wgNamespaceNamesBr;
68 return $wgNamespaceNamesBr;
71 function getDateFormats() {
75 function getNsIndex( $text ) {
76 global $wgNamespaceNamesBr, $wgSitename;
78 foreach ( $wgNamespaceNamesBr as $i => $n ) {
79 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
81 if( $wgSitename == "Wikipedia" ) {
82 if( 0 == strcasecmp( "Discussion_Wikipedia", $text ) ) return 5;
87 function getQuickbarSettings() {
88 global $wgQuickbarSettingsBr;
89 return $wgQuickbarSettingsBr;
92 function getSkinNames() {
93 global $wgSkinNamesBr;
94 return $wgSkinNamesBr;
98 function date( $ts, $adj = false ) {
99 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
101 $d = (0 +
substr( $ts, 6, 2 )) . " " .
102 $this->getMonthAbbreviation( substr( $ts, 4, 2 ) ) .
103 " " . substr( $ts, 0, 4 );
107 function timeanddate( $ts, $adj = false ) {
108 return $this->date( $ts, $adj ) . " da " . $this->time( $ts, $adj );
111 var $digitTransTable = array(
112 ',' => "\xc2\xa0", // @bug 2749
116 function formatNum( $number, $year = false ) {
117 return $year ?
$number : strtr($this->commafy($number), $this->digitTransTable
);
120 function getMessage( $key ) {
121 global $wgAllMessagesBr, $wgAllMessagesEn;
122 if( isset( $wgAllMessagesBr[$key] ) ) {
123 return $wgAllMessagesBr[$key];
125 return parent
::getMessage( $key );