Fix #6015: dd spacing in the boxes "edit is minor" and "watch this"
[lhc/web/wiklou.git] / languages / LanguageWa.php
1 <?php
2 /**
3 * @package MediaWiki
4 * @subpackage Language
5 */
6
7 require_once( "LanguageUtf8.php" );
8
9 # NOTE: cweri après "NOTE:" po des racsegnes so des ratournaedjes
10 # k' i gn a.
11
12 /* private */ $wgNamespaceNamesWa = array(
13 NS_MEDIA => "Media", /* Media */
14 NS_SPECIAL => "Sipeciås", /* Special */
15 NS_MAIN => "",
16 NS_TALK => "Copene", /* Talk */
17 NS_USER => "Uzeu", /* User */
18 NS_USER_TALK => "Uzeu_copene", /* User_talk */
19 NS_PROJECT => $wgMetaNamespace,
20 NS_PROJECT_TALK => $wgMetaNamespace . "_copene",
21 NS_IMAGE => "Imådje", /* Image */
22 NS_IMAGE_TALK => "Imådje_copene", /* Image_talk */
23 NS_MEDIAWIKI => "MediaWiki", /* MediaWiki */
24 NS_MEDIAWIKI_TALK => "MediaWiki_copene", /* MediaWiki_talk */
25 NS_TEMPLATE => "Modele",
26 NS_TEMPLATE_TALK => "Modele_copene",
27 NS_HELP => "Aidance",
28 NS_HELP_TALK => "Aidance_copene",
29 NS_CATEGORY => "Categoreye",
30 NS_CATEGORY_TALK => "Categoreye_copene",
31 ) + $wgNamespaceNamesEn;
32
33 /* private */ $wgQuickbarSettingsWa = array(
34 "Nole bår", "Aclawêye a hintche", "Aclawêye a droete", "Flotante a hintche", "Flotante a droete"
35 );
36
37 /* private */ $wgDateFormatsWa = array( /* cwè fé chal ??? */
38 # "Nole preferince",
39 );
40
41 if (!$wgCachedMessageArrays) {
42 require_once('MessagesWa.php');
43 }
44
45
46 #--------------------------------------------------------------------------
47 # Internationalisation code
48 #--------------------------------------------------------------------------
49
50 class LanguageWa extends LanguageUtf8 {
51
52 function getNamespaces() {
53 global $wgNamespaceNamesWa;
54 return $wgNamespaceNamesWa;
55 }
56
57 function getQuickbarSettings() {
58 global $wgQuickbarSettingsWa;
59 return $wgQuickbarSettingsWa;
60 }
61
62 function getDateFormats() {
63 global $wgDateFormatsWa;
64 return $wgDateFormatsWa;
65 }
66
67
68 ###
69 ### Dates in Walloon are "1î d' <monthname>" for 1st of the month,
70 ### "<day> di <monthname>" for months starting by a consoun, and
71 ### "<day> d' <monthname>" for months starting with a vowel
72 ###
73 function date( $ts, $adj = false ) {
74
75 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
76
77 $m = substr( $ts, 4, 2 );
78 $n = substr( $ts, 6, 2 );
79
80 if ($n == 1) {
81 $d = "1î d' " . $this->getMonthName( $m ) .
82 " " . substr( $ts, 0, 4 );
83 } else if ($n == 2 || $n == 3 || $n == 20 || $n == 22 || $n == 23) {
84 $d = (0 + $n) . " d' " . $this->getMonthName( $m ) .
85 " " . substr( $ts, 0, 4 );
86 } else if ($m == 4 || $m == 8 || $m == 10) {
87 $d = (0 + $n) . " d' " . $this->getMonthName( $m ) .
88 " " . substr( $ts, 0, 4 );
89 } else {
90 $d = (0 + $n) . " di " . $this->getMonthName( $m ) .
91 " " . substr( $ts, 0, 4 );
92 }
93
94 return $d;
95 }
96
97 function time( $ts, $adj = false ) {
98 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
99
100 $t = substr( $ts, 8, 2 ) . ":" . substr( $ts, 10, 2 );
101 return $t;
102 }
103
104 function timeanddate( $ts, $adj = false ) {
105 #return $this->time( $ts, $adj ) . " " . $this->date( $ts, $adj );
106 return $this->date( $ts, $adj ) . " a " . $this->time( $ts, $adj );
107 }
108
109 function getMessage( $key ) {
110 global $wgAllMessagesWa;
111
112 if(array_key_exists($key, $wgAllMessagesWa))
113 return $wgAllMessagesWa[$key];
114 else
115 return parent::getMessage($key);
116 }
117
118 function getAllMessages() {
119 global $wgAllMessagesWa;
120 return $wgAllMessagesWa;
121 }
122
123 }
124
125 ?>