Bug 6031 (feature request for __NOGALLERY__ on category pages) fixed
[lhc/web/wiklou.git] / languages / LanguageOc.php
1 <?php
2 /** Occitan (Occitan)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 */
7
8 require_once( "LanguageUtf8.php" );
9
10 if (!$wgCachedMessageArrays) {
11 require_once('MessagesOc.php');
12 }
13
14 class LanguageOc extends LanguageUtf8 {
15 private $mMessagesOc, $mNamespaceNamesOc;
16
17 private $mQuickbarSettingsOc = array(
18 'Cap', 'Esquèr', 'Drech', 'Flotejant a esquèr'
19 );
20
21 private $mSkinNamesOc = array(
22 'standard' => 'Normal',
23 'nostalgia' => 'Nostalgia',
24 'cologneblue' => 'Còlonha Blau',
25 );
26
27 private $mBookstoreListOc = array(
28 'Amazon.fr' => 'http://www.amazon.fr/exec/obidos/ISBN=$1'
29 );
30
31 function LanguageOc() {
32 LanguageUtf8::LanguageUtf8();
33
34 global $wgAllMessagesOc;
35 $this->mMessagesOc =& $wgAllMessagesOc;
36
37 global $wgMetaNamespace;
38 $this->mNamespaceNamesOc = array(
39 NS_SPECIAL => 'Especial',
40 NS_MAIN => '',
41 NS_TALK => 'Discutir',
42 NS_USER => 'Utilisator',
43 NS_USER_TALK => 'Discutida_Utilisator',
44 NS_PROJECT => $wgMetaNamespace,
45 NS_PROJECT_TALK => 'Discutida_'.$wgMetaNamespace,
46 NS_IMAGE => 'Imatge',
47 NS_IMAGE_TALK => 'Discutida_Imatge',
48 NS_MEDIAWIKI => 'Mediaòiqui',
49 NS_MEDIAWIKI_TALK => 'Discutida_Mediaòiqui',
50 NS_TEMPLATE => 'Modèl',
51 NS_TEMPLATE_TALK => 'Discutida_Modèl',
52 NS_HELP => 'Ajuda',
53 NS_HELP_TALK => 'Discutida_Ajuda',
54 NS_CATEGORY => 'Categoria',
55 NS_CATEGORY_TALK => 'Discutida_Categoria',
56 );
57 }
58
59 function getBookstoreList () {
60 return $this->mBookstoreListOc;
61 }
62
63 function getNamespaces() {
64 return $this->mNamespaceNamesOc + parent::getNamespaces();
65 }
66
67 function getQuickbarSettings() {
68 return $this->mQuickbarSettingsOc;
69 }
70
71 function getSkinNames() {
72 return $this->mSkinNamesOc + parent::getSkinNames();
73 }
74
75 function getMessage( $key ) {
76 if( isset( $this->mMessagesOc[$key] ) ) {
77 return $this->mMessagesOc[$key];
78 } else {
79 return parent::getMessage( $key );
80 }
81 }
82
83 function getAllMessages() {
84 return $this->mMessagesOc;
85 }
86
87 function formatMonth( $month, $format ) {
88 return $this->getMonthAbbreviation( $month );
89 }
90
91 function timeBeforeDate() {
92 return false;
93 }
94
95 function timeDateSeparator( $format ) {
96 return ' à ';
97 }
98
99 }
100
101 ?>