r13937 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13936‎ | r13937 | r13938 >
Date:20:14, 29 April 2006
Author:nikerabbit
Status:old
Tags:
Comment:
tabified some line starts
Modified paths:
  • /trunk/phase3/languages/LanguageBs.php (modified) (history)
  • /trunk/phase3/languages/LanguageEt.php (modified) (history)
  • /trunk/phase3/languages/LanguageNo.php (modified) (history)
  • /trunk/phase3/languages/LanguageSu.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageEt.php
@@ -39,11 +39,11 @@
4040
4141
4242 /* private */ $wgDateFormatsEt = array(
43 - 'Eelistus puudub',
44 - '15.01.2001, kell 16.12',
45 - '15. jaanuar 2001, kell 16.12',
46 - '15. I 2005, kell 16.12',
47 - 'ISO 8601' => '2001-01-15 16:12:34'
 43+ 'Eelistus puudub',
 44+ '15.01.2001, kell 16.12',
 45+ '15. jaanuar 2001, kell 16.12',
 46+ '15. I 2005, kell 16.12',
 47+ 'ISO 8601' => '2001-01-15 16:12:34'
4848 );
4949
5050
Index: trunk/phase3/languages/LanguageNo.php
@@ -37,12 +37,12 @@
3838
3939
4040 /* private */ $wgBookstoreListNo = array(
41 - "Antikvariat.net" => "http://www.antikvariat.net/",
42 - "Frida" => "http://wo.uio.no/as/WebObjects/frida.woa/wa/fres?action=sok&isbn=$1&visParametre=1&sort=alfabetisk&bs=50",
43 - "Bibsys" => "http://ask.bibsys.no/ask/action/result?cmd=&kilde=biblio&fid=isbn&term=$1&op=and&fid=bd&term=&arstall=&sortering=sortdate-&treffPrSide=50",
44 - "Akademika" => "http://www.akademika.no/sok.php?ts=4&sok=$1",
45 - "Haugenbok" => "http://www.haugenbok.no/resultat.cfm?st=extended&isbn=$1",
46 - "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
 41+ "Antikvariat.net" => "http://www.antikvariat.net/",
 42+ "Frida" => "http://wo.uio.no/as/WebObjects/frida.woa/wa/fres?action=sok&isbn=$1&visParametre=1&sort=alfabetisk&bs=50",
 43+ "Bibsys" => "http://ask.bibsys.no/ask/action/result?cmd=&kilde=biblio&fid=isbn&term=$1&op=and&fid=bd&term=&arstall=&sortering=sortdate-&treffPrSide=50",
 44+ "Akademika" => "http://www.akademika.no/sok.php?ts=4&sok=$1",
 45+ "Haugenbok" => "http://www.haugenbok.no/resultat.cfm?st=extended&isbn=$1",
 46+ "Amazon.com" => "http://www.amazon.com/exec/obidos/ISBN=$1"
4747 );
4848
4949 if (!$wgCachedMessageArrays) {
Index: trunk/phase3/languages/LanguageSu.php
@@ -36,18 +36,18 @@
3737
3838 class LanguageSu extends LanguageUtf8 {
3939
40 - function getNamespaces() {
41 - global $wgNamespaceNamesSu;
42 - return $wgNamespaceNamesSu;
43 - }
 40+ function getNamespaces() {
 41+ global $wgNamespaceNamesSu;
 42+ return $wgNamespaceNamesSu;
 43+ }
4444
45 - function getMessage( $key ) {
46 - global $wgAllMessagesSu, $wgAllMessagesEn;
47 - if( isset( $wgAllMessagesSu[$key] ) ) {
48 - return $wgAllMessagesSu[$key];
49 - } else {
50 - return parent::getMessage( $key );
51 - }
52 - }
 45+ function getMessage( $key ) {
 46+ global $wgAllMessagesSu, $wgAllMessagesEn;
 47+ if( isset( $wgAllMessagesSu[$key] ) ) {
 48+ return $wgAllMessagesSu[$key];
 49+ } else {
 50+ return parent::getMessage( $key );
 51+ }
 52+ }
5353 }
5454 ?>
Index: trunk/phase3/languages/LanguageBs.php
@@ -29,11 +29,11 @@
3030 ) + $wgNamespaceNamesEn;
3131
3232 /* private */ $wgQuickbarSettingsBs = array(
33 - "Nikakva", "Pričvršćena lijevo", "Pričvršćena desno", "Plutajuća lijevo"
 33+ "Nikakva", "Pričvršćena lijevo", "Pričvršćena desno", "Plutajuća lijevo"
3434 );
3535
3636 /* private */ $wgSkinNamesBs = array(
37 - "Obična", "Nostalgija", "Kelnsko plavo", "Pedington", "Monparnas"
 37+ "Obična", "Nostalgija", "Kelnsko plavo", "Pedington", "Monparnas"
3838 ) + $wgSkinNamesEn;
3939
4040 /* private */ $wgUserTogglesBs = array(
@@ -125,147 +125,147 @@
126126 #--------------------------------------------------------------------------
127127
128128 class LanguageBs extends LanguageUtf8 {
129 - function LanguageBs() {
130 - global $wgNamespaceNamesBs, $wgMetaNamespace;
131 - LanguageUtf8::LanguageUtf8();
132 - $wgNamespaceNamesBs[NS_PROJECT_TALK] = 'Razgovor_' .
133 - str_replace( ' ', '_',
134 - $this->convertGrammar( $wgMetaNamespace, 'instrumental' ) );
135 - }
 129+ function LanguageBs() {
 130+ global $wgNamespaceNamesBs, $wgMetaNamespace;
 131+ LanguageUtf8::LanguageUtf8();
 132+ $wgNamespaceNamesBs[NS_PROJECT_TALK] = 'Razgovor_' .
 133+ str_replace( ' ', '_',
 134+ $this->convertGrammar( $wgMetaNamespace, 'instrumental' ) );
 135+ }
136136
137 - function getNamespaces() {
138 - global $wgNamespaceNamesBs;
139 - return $wgNamespaceNamesBs;
140 - }
 137+ function getNamespaces() {
 138+ global $wgNamespaceNamesBs;
 139+ return $wgNamespaceNamesBs;
 140+ }
141141
142 - function getQuickbarSettings() {
143 - global $wgQuickbarSettingsBs;
144 - return $wgQuickbarSettingsBs;
145 - }
 142+ function getQuickbarSettings() {
 143+ global $wgQuickbarSettingsBs;
 144+ return $wgQuickbarSettingsBs;
 145+ }
146146
147 - function getDateFormats() {
148 - global $wgDateFormatsBs;
149 - return $wgDateFormatsBs;
150 - }
 147+ function getDateFormats() {
 148+ global $wgDateFormatsBs;
 149+ return $wgDateFormatsBs;
 150+ }
151151
152 - function getMessage( $key ) {
153 - global $wgAllMessagesBs;
154 - if(array_key_exists($key, $wgAllMessagesBs))
155 - return $wgAllMessagesBs[$key];
156 - else
157 - return parent::getMessage($key);
158 - }
 152+ function getMessage( $key ) {
 153+ global $wgAllMessagesBs;
 154+ if(array_key_exists($key, $wgAllMessagesBs))
 155+ return $wgAllMessagesBs[$key];
 156+ else
 157+ return parent::getMessage($key);
 158+ }
159159
160 - function fallback8bitEncoding() {
161 - return "iso-8859-2";
162 - }
 160+ function fallback8bitEncoding() {
 161+ return "iso-8859-2";
 162+ }
163163
164 - function separatorTransformTable() {
165 - return array(',' => '.', '.' => ',' );
166 - }
 164+ function separatorTransformTable() {
 165+ return array(',' => '.', '.' => ',' );
 166+ }
167167
168 - # Convert from the nominative form of a noun to some other case
169 - # Invoked with {{GRAMMAR:case|word}}
170 - function convertGrammar( $word, $case ) {
171 - switch ( $case ) {
172 - case 'genitiv': # genitive
173 - if ( $word == 'Wikipedia' ) {
174 - $word = 'Wikipedije';
175 - } elseif ( $word == 'Wikiknjige' ) {
176 - $word = 'Wikiknjiga';
177 - } elseif ( $word == 'Wikivijesti' ) {
178 - $word = 'Wikivijesti';
179 - } elseif ( $word == 'Wikicitati' ) {
180 - $word = 'Wikicitata';
181 - } elseif ( $word == 'Wikiizvor' ) {
182 - $word = 'Wikiizvora';
183 - } elseif ( $word == 'Vikirječnik' ) {
184 - $word = 'Vikirječnika';
185 - }
186 - break;
187 - case 'dativ': # dative
188 - if ( $word == 'Wikipedia' ) {
189 - $word = 'Wikipediji';
190 - } elseif ( $word == 'Wikiknjige' ) {
191 - $word = 'Wikiknjigama';
192 - } elseif ( $word == 'Wikicitati' ) {
193 - $word = 'Wikicitatima';
194 - } elseif ( $word == 'Wikivijesti' ) {
195 - $word = 'Wikivijestima';
196 - } elseif ( $word == 'Wikiizvor' ) {
197 - $word = 'Wikiizvoru';
198 - } elseif ( $word == 'Vikirječnik' ) {
199 - $word = 'Vikirječniku';
200 - }
201 - break;
202 - case 'akuzativ': # akusative
203 - if ( $word == 'Wikipedia' ) {
204 - $word = 'Wikipediju';
205 - } elseif ( $word == 'Wikiknjige' ) {
206 - $word = 'Wikiknjige';
207 - } elseif ( $word == 'Wikicitati' ) {
208 - $word = 'Wikicitate';
209 - } elseif ( $word == 'Wikivijesti' ) {
210 - $word = 'Wikivijesti';
211 - } elseif ( $word == 'Wikiizvor' ) {
212 - $word = 'Wikiizvora';
213 - } elseif ( $word == 'Vikirječnik' ) {
214 - $word = 'Vikirječnika';
215 - }
216 - break;
217 - case 'vokativ': # vocative
218 - if ( $word == 'Wikipedia' ) {
219 - $word = 'Wikipedijo';
220 - } elseif ( $word == 'Wikiknjige' ) {
221 - $word = 'Wikiknjige';
222 - } elseif ( $word == 'Wikicitati' ) {
223 - $word = 'Wikicitati';
224 - } elseif ( $word == 'Wikivijesti' ) {
225 - $word = 'Wikivijesti';
226 - } elseif ( $word == 'Wikiizvor' ) {
227 - $word = 'Wikizivoru';
228 - } elseif ( $word == 'Vikirječnik' ) {
229 - $word = 'Vikirječniče';
230 - }
231 - break;
232 - case 'instrumental': # instrumental
233 - if ( $word == 'Wikipedia' ) {
234 - $word = 's Wikipediom';
235 - } elseif ( $word == 'Wikiknjige' ) {
236 - $word = 's Wikiknjigama';
237 - } elseif ( $word == 'Wikicitati' ) {
238 - $word = 's Wikicitatima';
239 - } elseif ( $word == 'Wikivijesti' ) {
240 - $word = 's Wikivijestima';
241 - } elseif ( $word == 'Wikiizvor' ) {
242 - $word = 's Wikiizvorom';
243 - } elseif ( $word == 'Vikirječnik' ) {
244 - $word = 's Vikirječnikom';
245 - } else {
246 - $word = 's ' . $word;
247 - }
248 - break;
249 - case 'lokativ': # locative
250 - if ( $word == 'Wikipedia' ) {
251 - $word = 'o Wikipediji';
252 - } elseif ( $word == 'Wikiknjige' ) {
253 - $word = 'o Wikiknjigama';
254 - } elseif ( $word == 'Wikicitati' ) {
255 - $word = 'o Wikicitatima';
256 - } elseif ( $word == 'Wikivijesti' ) {
257 - $word = 'o Wikivijestima';
258 - } elseif ( $word == 'Wikiizvor' ) {
259 - $word = 'o Wikiizvoru';
260 - } elseif ( $word == 'Vikirječnik' ) {
261 - $word = 'o Vikirječniku';
262 - } else {
263 - $word = 'o ' . $word;
264 - }
265 - break;
266 - }
 168+ # Convert from the nominative form of a noun to some other case
 169+ # Invoked with {{GRAMMAR:case|word}}
 170+ function convertGrammar( $word, $case ) {
 171+ switch ( $case ) {
 172+ case 'genitiv': # genitive
 173+ if ( $word == 'Wikipedia' ) {
 174+ $word = 'Wikipedije';
 175+ } elseif ( $word == 'Wikiknjige' ) {
 176+ $word = 'Wikiknjiga';
 177+ } elseif ( $word == 'Wikivijesti' ) {
 178+ $word = 'Wikivijesti';
 179+ } elseif ( $word == 'Wikicitati' ) {
 180+ $word = 'Wikicitata';
 181+ } elseif ( $word == 'Wikiizvor' ) {
 182+ $word = 'Wikiizvora';
 183+ } elseif ( $word == 'Vikirječnik' ) {
 184+ $word = 'Vikirječnika';
 185+ }
 186+ break;
 187+ case 'dativ': # dative
 188+ if ( $word == 'Wikipedia' ) {
 189+ $word = 'Wikipediji';
 190+ } elseif ( $word == 'Wikiknjige' ) {
 191+ $word = 'Wikiknjigama';
 192+ } elseif ( $word == 'Wikicitati' ) {
 193+ $word = 'Wikicitatima';
 194+ } elseif ( $word == 'Wikivijesti' ) {
 195+ $word = 'Wikivijestima';
 196+ } elseif ( $word == 'Wikiizvor' ) {
 197+ $word = 'Wikiizvoru';
 198+ } elseif ( $word == 'Vikirječnik' ) {
 199+ $word = 'Vikirječniku';
 200+ }
 201+ break;
 202+ case 'akuzativ': # akusative
 203+ if ( $word == 'Wikipedia' ) {
 204+ $word = 'Wikipediju';
 205+ } elseif ( $word == 'Wikiknjige' ) {
 206+ $word = 'Wikiknjige';
 207+ } elseif ( $word == 'Wikicitati' ) {
 208+ $word = 'Wikicitate';
 209+ } elseif ( $word == 'Wikivijesti' ) {
 210+ $word = 'Wikivijesti';
 211+ } elseif ( $word == 'Wikiizvor' ) {
 212+ $word = 'Wikiizvora';
 213+ } elseif ( $word == 'Vikirječnik' ) {
 214+ $word = 'Vikirječnika';
 215+ }
 216+ break;
 217+ case 'vokativ': # vocative
 218+ if ( $word == 'Wikipedia' ) {
 219+ $word = 'Wikipedijo';
 220+ } elseif ( $word == 'Wikiknjige' ) {
 221+ $word = 'Wikiknjige';
 222+ } elseif ( $word == 'Wikicitati' ) {
 223+ $word = 'Wikicitati';
 224+ } elseif ( $word == 'Wikivijesti' ) {
 225+ $word = 'Wikivijesti';
 226+ } elseif ( $word == 'Wikiizvor' ) {
 227+ $word = 'Wikizivoru';
 228+ } elseif ( $word == 'Vikirječnik' ) {
 229+ $word = 'Vikirječniče';
 230+ }
 231+ break;
 232+ case 'instrumental': # instrumental
 233+ if ( $word == 'Wikipedia' ) {
 234+ $word = 's Wikipediom';
 235+ } elseif ( $word == 'Wikiknjige' ) {
 236+ $word = 's Wikiknjigama';
 237+ } elseif ( $word == 'Wikicitati' ) {
 238+ $word = 's Wikicitatima';
 239+ } elseif ( $word == 'Wikivijesti' ) {
 240+ $word = 's Wikivijestima';
 241+ } elseif ( $word == 'Wikiizvor' ) {
 242+ $word = 's Wikiizvorom';
 243+ } elseif ( $word == 'Vikirječnik' ) {
 244+ $word = 's Vikirječnikom';
 245+ } else {
 246+ $word = 's ' . $word;
 247+ }
 248+ break;
 249+ case 'lokativ': # locative
 250+ if ( $word == 'Wikipedia' ) {
 251+ $word = 'o Wikipediji';
 252+ } elseif ( $word == 'Wikiknjige' ) {
 253+ $word = 'o Wikiknjigama';
 254+ } elseif ( $word == 'Wikicitati' ) {
 255+ $word = 'o Wikicitatima';
 256+ } elseif ( $word == 'Wikivijesti' ) {
 257+ $word = 'o Wikivijestima';
 258+ } elseif ( $word == 'Wikiizvor' ) {
 259+ $word = 'o Wikiizvoru';
 260+ } elseif ( $word == 'Vikirječnik' ) {
 261+ $word = 'o Vikirječniku';
 262+ } else {
 263+ $word = 'o ' . $word;
 264+ }
 265+ break;
 266+ }
267267
268 - return $word; # this will return the original value for 'nominativ' (nominative) and all undefined case values
269 - }
 268+ return $word; # this will return the original value for 'nominativ' (nominative) and all undefined case values
 269+ }
270270
271271 }
272272

Status & tagging log