r62426 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62425‎ | r62426 | r62427 >
Date:13:51, 13 February 2010
Author:siebrand
Status:deferred
Tags:
Comment:
* update code formatting, run stylize.php, whitespace updates
* rename description message
* update Translate accordingly
Modified paths:
  • /trunk/extensions/ABC/ABC.i18n.php (modified) (history)
  • /trunk/extensions/ABC/ABC.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/ABC/ABC.i18n.php
@@ -11,7 +11,7 @@
1212 $messages = array();
1313
1414 $messages['en'] = array(
15 - 'abcdesc' => 'Adds <tt>&lt;abc&gt;</tt> tag to format ABC music',
 15+ 'abc-desc' => 'Adds <tt>&lt;abc&gt;</tt> tag to format ABC music',
1616 'abcdownload' => 'Download:',
1717 'abcabc' => 'ABC',
1818 'abcpdf' => 'PDF',
@@ -27,7 +27,7 @@
2828 * @author Raymond
2929 */
3030 $messages['qqq'] = array(
31 - 'abcdesc' => 'Short description of the ABC extension, shown in [[Special:Version]]. Do not translate or change links.',
 31+ 'abc-desc' => 'Short description of the ABC extension, shown in [[Special:Version]]. Do not translate or change links.',
3232 'abcdownload' => '{{Identical|Download}}',
3333 'abcabc' => '{{optional}}',
3434 'abcpdf' => '{{optional}}',
@@ -40,7 +40,7 @@
4141 * @author Naudefj
4242 */
4343 $messages['af'] = array(
44 - 'abcdesc' => "Maak 'n <tt>&lt;abc&gt;</tt> etiket beskikbaar vir die opmaak van ABC-musiek",
 44+ 'abc-desc' => "Maak 'n <tt>&lt;abc&gt;</tt> etiket beskikbaar vir die opmaak van ABC-musiek",
4545 'abcdownload' => 'Aflaai:',
4646 );
4747
@@ -48,7 +48,7 @@
4949 * @author Bresta
5050 */
5151 $messages['aln'] = array(
52 - 'abcdesc' => "Shton tag'un <tt>&lt;abc&gt;</tt> me formatu muzikën ABC",
 52+ 'abc-desc' => "Shton tag'un <tt>&lt;abc&gt;</tt> me formatu muzikën ABC",
5353 'abcdownload' => 'Shkarko:',
5454 );
5555
@@ -56,7 +56,7 @@
5757 * @author Meno25
5858 */
5959 $messages['ar'] = array(
60 - 'abcdesc' => 'يضيف وسم <tt>&lt;abc&gt;</tt> لصياغة موسيقى ABC',
 60+ 'abc-desc' => 'يضيف وسم <tt>&lt;abc&gt;</tt> لصياغة موسيقى ABC',
6161 'abcdownload' => 'تنزيل:',
6262 'abcabc' => 'إيه بي سي',
6363 'abcpdf' => 'بي دي إف',
@@ -70,7 +70,7 @@
7171 * @author Meno25
7272 */
7373 $messages['arz'] = array(
74 - 'abcdesc' => 'يضيف وسم <tt>&lt;abc&gt;</tt> لصياغة موسيقى ABC',
 74+ 'abc-desc' => 'يضيف وسم <tt>&lt;abc&gt;</tt> لصياغة موسيقى ABC',
7575 'abcdownload' => 'تنزيل:',
7676 );
7777
@@ -79,7 +79,7 @@
8080 * @author Red Winged Duck
8181 */
8282 $messages['be-tarask'] = array(
83 - 'abcdesc' => 'Дадаецца тэг <tt>&lt;abc&gt;</tt> для музычнага фармату ABC',
 83+ 'abc-desc' => 'Дадаецца тэг <tt>&lt;abc&gt;</tt> для музычнага фармату ABC',
8484 'abcdownload' => 'Загрузіць:',
8585 );
8686
@@ -87,7 +87,7 @@
8888 * @author DCLXVI
8989 */
9090 $messages['bg'] = array(
91 - 'abcdesc' => 'Добавя етикет <tt>&lt;abc&gt;</tt> за форматиране на АВС музика',
 91+ 'abc-desc' => 'Добавя етикет <tt>&lt;abc&gt;</tt> за форматиране на АВС музика',
9292 'abcdownload' => 'Изтегляне:',
9393 );
9494
@@ -95,7 +95,7 @@
9696 * @author Bellayet
9797 */
9898 $messages['bn'] = array(
99 - 'abcdesc' => 'ABC music এর জন্য <tt>&lt;abc&gt;</tt> ফলক যোগ করুন',
 99+ 'abc-desc' => 'ABC music এর জন্য <tt>&lt;abc&gt;</tt> ফলক যোগ করুন',
100100 'abcdownload' => 'ডাউনলোড:',
101101 );
102102
@@ -103,7 +103,7 @@
104104 * @author Usingha
105105 */
106106 $messages['bpy'] = array(
107 - 'abcdesc' => 'ABC music পাজালানির কা <tt>&lt;abc&gt;</tt> টেগহান তিলকর',
 107+ 'abc-desc' => 'ABC music পাজালানির কা <tt>&lt;abc&gt;</tt> টেগহান তিলকর',
108108 'abcdownload' => 'ডাউনলোড:',
109109 );
110110
@@ -111,7 +111,7 @@
112112 * @author Fulup
113113 */
114114 $messages['br'] = array(
115 - 'abcdesc' => 'Ouzhpennañ a ra ur valizenn <tt>&lt;abc&gt;</tt> a-benn furmadiñ sonerezh ABC',
 115+ 'abc-desc' => 'Ouzhpennañ a ra ur valizenn <tt>&lt;abc&gt;</tt> a-benn furmadiñ sonerezh ABC',
116116 'abcdownload' => 'Pellgargañ :',
117117 );
118118
@@ -119,7 +119,7 @@
120120 * @author CERminator
121121 */
122122 $messages['bs'] = array(
123 - 'abcdesc' => 'Dodaje <tt>&lt;abc&gt;</tt> oznaku za formatiranje ABC muzike',
 123+ 'abc-desc' => 'Dodaje <tt>&lt;abc&gt;</tt> oznaku za formatiranje ABC muzike',
124124 'abcdownload' => 'Skidanje:',
125125 );
126126
@@ -127,7 +127,7 @@
128128 * @author Aleator
129129 */
130130 $messages['ca'] = array(
131 - 'abcdesc' => "Afegeix l'etiqueta <tt>&lt;abc&gt;</tt> per a utilitzar la notació musical ''ABC music''",
 131+ 'abc-desc' => "Afegeix l'etiqueta <tt>&lt;abc&gt;</tt> per a utilitzar la notació musical ''ABC music''",
132132 'abcdownload' => 'Descarrega:',
133133 );
134134
@@ -135,13 +135,13 @@
136136 * @author Lhademmor
137137 */
138138 $messages['da'] = array(
139 - 'abcdesc' => 'Tilføjer mærket <tt>&lt;abc&gt;</tt> for at formatere ABC-musik',
 139+ 'abc-desc' => 'Tilføjer mærket <tt>&lt;abc&gt;</tt> for at formatere ABC-musik',
140140 'abcdownload' => 'Hent:',
141141 );
142142
143143 /** German (Deutsch) */
144144 $messages['de'] = array(
145 - 'abcdesc' => 'Ergänzt das <tt>&lt;abc&gt;</tt>-Tag zur Notation von Musik in ABC',
 145+ 'abc-desc' => 'Ergänzt das <tt>&lt;abc&gt;</tt>-Tag zur Notation von Musik in ABC',
146146 'abcdownload' => 'Herunterladen:',
147147 );
148148
@@ -149,7 +149,7 @@
150150 * @author Mirzali
151151 */
152152 $messages['diq'] = array(
153 - 'abcdesc' => 'Semedê şekldaena ABC-muziki etiketê <tt>&lt;abc&gt;</tt>y ilawe keno',
 153+ 'abc-desc' => 'Semedê şekldaena ABC-muziki etiketê <tt>&lt;abc&gt;</tt>y ilawe keno',
154154 'abcdownload' => 'Bar ke:',
155155 );
156156
@@ -157,7 +157,7 @@
158158 * @author Michawiki
159159 */
160160 $messages['dsb'] = array(
161 - 'abcdesc' => 'Pśidawa toflicku <tt>&lt;abc&gt;</tt>, aby se muzika w ABC formatěrowała',
 161+ 'abc-desc' => 'Pśidawa toflicku <tt>&lt;abc&gt;</tt>, aby se muzika w ABC formatěrowała',
162162 'abcdownload' => 'Ześěgnuś:',
163163 );
164164
@@ -166,7 +166,7 @@
167167 * @author Omnipaedista
168168 */
169169 $messages['el'] = array(
170 - 'abcdesc' => 'Προσθέτει το tag <tt>&lt;abc&gt;</tt> για να μορφοποιεί μουσική ABC',
 170+ 'abc-desc' => 'Προσθέτει το tag <tt>&lt;abc&gt;</tt> για να μορφοποιεί μουσική ABC',
171171 'abcdownload' => 'Λήψη:',
172172 );
173173
@@ -175,7 +175,7 @@
176176 * @author Yekrats
177177 */
178178 $messages['eo'] = array(
179 - 'abcdesc' => 'Aldonas etikedon <tt>&lt;abc&gt;</tt> por fomati ABC-muzikon',
 179+ 'abc-desc' => 'Aldonas etikedon <tt>&lt;abc&gt;</tt> por fomati ABC-muzikon',
180180 'abcdownload' => 'Elŝuto:',
181181 );
182182
@@ -183,7 +183,7 @@
184184 * @author Sanbec
185185 */
186186 $messages['es'] = array(
187 - 'abcdesc' => "Añade la etiqueta <tt>&lt;abc&gt;</tt> para usar la notación musical ''ABC music''",
 187+ 'abc-desc' => "Añade la etiqueta <tt>&lt;abc&gt;</tt> para usar la notación musical ''ABC music''",
188188 'abcdownload' => 'Descargar:',
189189 );
190190
@@ -192,7 +192,7 @@
193193 * @author KalmerE.
194194 */
195195 $messages['et'] = array(
196 - 'abcdesc' => 'Lisab <tt>&lt;abc&gt;</tt> laiendi ABC muusika vormindamiseks.',
 196+ 'abc-desc' => 'Lisab <tt>&lt;abc&gt;</tt> laiendi ABC muusika vormindamiseks.',
197197 'abcdownload' => 'Laadi alla:',
198198 );
199199
@@ -200,7 +200,7 @@
201201 * @author Theklan
202202 */
203203 $messages['eu'] = array(
204 - 'abcdesc' => '<tt>&lt;abc&gt;</tt> etiketa gehitzen du ABC musika formatura',
 204+ 'abc-desc' => '<tt>&lt;abc&gt;</tt> etiketa gehitzen du ABC musika formatura',
205205 'abcdownload' => 'Jaitsi:',
206206 );
207207
@@ -209,7 +209,7 @@
210210 * @author Ilaiho
211211 */
212212 $messages['fi'] = array(
213 - 'abcdesc' => 'Lisää <tt>&lt;abc&gt;</tt>-elementin ABC-musiikin muotoilemiseen.',
 213+ 'abc-desc' => 'Lisää <tt>&lt;abc&gt;</tt>-elementin ABC-musiikin muotoilemiseen.',
214214 'abcdownload' => 'Lataa:',
215215 );
216216
@@ -217,7 +217,7 @@
218218 * @author Grondin
219219 */
220220 $messages['fr'] = array(
221 - 'abcdesc' => 'Ajoute une balise <tt>&lt;abc&gt;</tt> pour formater la musique ABC',
 221+ 'abc-desc' => 'Ajoute une balise <tt>&lt;abc&gt;</tt> pour formater la musique ABC',
222222 'abcdownload' => 'Télécharger :',
223223 );
224224
@@ -225,7 +225,7 @@
226226 * @author ChrisPtDe
227227 */
228228 $messages['frp'] = array(
229 - 'abcdesc' => 'Apond una balisa <tt>&lt;abc&gt;</tt> por formatar la musica ABC.',
 229+ 'abc-desc' => 'Apond una balisa <tt>&lt;abc&gt;</tt> por formatar la musica ABC.',
230230 'abcdownload' => 'Tèlèchargiér :',
231231 );
232232
@@ -233,7 +233,7 @@
234234 * @author SK-luuut
235235 */
236236 $messages['fy'] = array(
237 - 'abcdesc' => 'Foegt mark <tt>&lt;abc&gt;</tt> ta foar de opmaak fan ABC-muzyk',
 237+ 'abc-desc' => 'Foegt mark <tt>&lt;abc&gt;</tt> ta foar de opmaak fan ABC-muzyk',
238238 'abcdownload' => 'Ynlade:',
239239 );
240240
@@ -241,7 +241,7 @@
242242 * @author Alison
243243 */
244244 $messages['ga'] = array(
245 - 'abcdesc' => 'Cuir clib <tt>&lt;abc&gt;</tt> chun ceoil ABC a formáidigh',
 245+ 'abc-desc' => 'Cuir clib <tt>&lt;abc&gt;</tt> chun ceoil ABC a formáidigh',
246246 'abcdownload' => 'íoslódáil:',
247247 );
248248
@@ -249,7 +249,7 @@
250250 * @author Toliño
251251 */
252252 $messages['gl'] = array(
253 - 'abcdesc' => 'Engade a etiqueta <tt>&lt;abc&gt;</tt> para dar formato á música ABC',
 253+ 'abc-desc' => 'Engade a etiqueta <tt>&lt;abc&gt;</tt> para dar formato á música ABC',
254254 'abcdownload' => 'Descargar:',
255255 );
256256
@@ -257,7 +257,7 @@
258258 * @author Omnipaedista
259259 */
260260 $messages['grc'] = array(
261 - 'abcdesc' => 'Προσθέτει τὸ προσάρτημα <tt>&lt;abc&gt;</tt> ἵνα μορφώσῃ τὴν μουσικὴν ABC',
 261+ 'abc-desc' => 'Προσθέτει τὸ προσάρτημα <tt>&lt;abc&gt;</tt> ἵνα μορφώσῃ τὴν μουσικὴν ABC',
262262 'abcdownload' => 'Καταφόρτισις:',
263263 );
264264
@@ -265,7 +265,7 @@
266266 * @author Als-Holder
267267 */
268268 $messages['gsw'] = array(
269 - 'abcdesc' => 'Tue s <tt>&lt;abc&gt;</tt>-Tag zuefiege zum Musik in ABC notiere',
 269+ 'abc-desc' => 'Tue s <tt>&lt;abc&gt;</tt>-Tag zuefiege zum Musik in ABC notiere',
270270 'abcdownload' => 'Abelade:',
271271 );
272272
@@ -273,7 +273,7 @@
274274 * @author MacTire02
275275 */
276276 $messages['gv'] = array(
277 - 'abcdesc' => 'Cur y lipaid <tt>&lt;abc&gt;</tt> rish dys kiaull ABC y chummey',
 277+ 'abc-desc' => 'Cur y lipaid <tt>&lt;abc&gt;</tt> rish dys kiaull ABC y chummey',
278278 'abcdownload' => 'Laadey neose:',
279279 );
280280
@@ -282,7 +282,7 @@
283283 * @author YaronSh
284284 */
285285 $messages['he'] = array(
286 - 'abcdesc' => 'הוספת תגית <tt>&lt;abc&gt;</tt> למוסיקה בפורמט ABC',
 286+ 'abc-desc' => 'הוספת תגית <tt>&lt;abc&gt;</tt> למוסיקה בפורמט ABC',
287287 'abcdownload' => 'הורדה:',
288288 );
289289
@@ -301,7 +301,7 @@
302302 * @author Tagimata
303303 */
304304 $messages['hil'] = array(
305 - 'abcdesc' => 'Dugangang <tt>&lt;abc&gt;</tt> tag para ma-formatan ABC musika',
 305+ 'abc-desc' => 'Dugangang <tt>&lt;abc&gt;</tt> tag para ma-formatan ABC musika',
306306 'abcdownload' => 'i-download:',
307307 );
308308
@@ -309,7 +309,7 @@
310310 * @author Dalibor Bosits
311311 */
312312 $messages['hr'] = array(
313 - 'abcdesc' => 'Dodaje <tt>&lt;abc&gt;</tt> oznaku za formatiranje ABC glazbe',
 313+ 'abc-desc' => 'Dodaje <tt>&lt;abc&gt;</tt> oznaku za formatiranje ABC glazbe',
314314 'abcdownload' => 'Preuzimanje:',
315315 );
316316
@@ -317,7 +317,7 @@
318318 * @author Michawiki
319319 */
320320 $messages['hsb'] = array(
321 - 'abcdesc' => 'Přidawa tafličku <tt>&lt;abc&gt;</tt>, zo by so hudźba w ABC formatowała',
 321+ 'abc-desc' => 'Přidawa tafličku <tt>&lt;abc&gt;</tt>, zo by so hudźba w ABC formatowała',
322322 'abcdownload' => 'Sćahnyć',
323323 );
324324
@@ -325,7 +325,7 @@
326326 * @author Glanthor Reviol
327327 */
328328 $messages['hu'] = array(
329 - 'abcdesc' => '<tt>&lt;abc&gt;</tt> tag ABC zeneleírás formázásához',
 329+ 'abc-desc' => '<tt>&lt;abc&gt;</tt> tag ABC zeneleírás formázásához',
330330 'abcdownload' => 'Letöltés:',
331331 );
332332
@@ -333,7 +333,7 @@
334334 * @author McDutchie
335335 */
336336 $messages['ia'] = array(
337 - 'abcdesc' => 'Adde le etiquetta <tt>&lt;abc&gt;</tt> pro formatar musica in notation ABC',
 337+ 'abc-desc' => 'Adde le etiquetta <tt>&lt;abc&gt;</tt> pro formatar musica in notation ABC',
338338 'abcdownload' => 'Discargar:',
339339 );
340340
@@ -341,7 +341,7 @@
342342 * @author Bennylin
343343 */
344344 $messages['id'] = array(
345 - 'abcdesc' => 'Tambahkan tag <tt>&lt;abc&gt;</tt> untuk format musik ABC',
 345+ 'abc-desc' => 'Tambahkan tag <tt>&lt;abc&gt;</tt> untuk format musik ABC',
346346 'abcdownload' => 'Unduh:',
347347 );
348348
@@ -349,7 +349,7 @@
350350 * @author Ukabia
351351 */
352352 $messages['ig'] = array(
353 - 'abcdesc' => 'Tinyékwa <tt>&lt;abc&gt;</tt> ede nyazoro I kwaria égwú ABC',
 353+ 'abc-desc' => 'Tinyékwa <tt>&lt;abc&gt;</tt> ede nyazoro I kwaria égwú ABC',
354354 'abcdownload' => 'Danwèré:',
355355 );
356356
@@ -357,7 +357,7 @@
358358 * @author Melos
359359 */
360360 $messages['it'] = array(
361 - 'abcdesc' => 'Aggiunge il tag <tt>&lt;abc&gt;</tt> per la musica in formato ABC',
 361+ 'abc-desc' => 'Aggiunge il tag <tt>&lt;abc&gt;</tt> per la musica in formato ABC',
362362 'abcdownload' => 'Download:',
363363 );
364364
@@ -366,7 +366,7 @@
367367 * @author Fryed-peach
368368 */
369369 $messages['ja'] = array(
370 - 'abcdesc' => 'ABC譜の書式を整える <tt>&lt;abc&gt;</tt> タグを追加する',
 370+ 'abc-desc' => 'ABC譜の書式を整える <tt>&lt;abc&gt;</tt> タグを追加する',
371371 'abcdownload' => 'ダウンロード:',
372372 );
373373
@@ -374,7 +374,7 @@
375375 * @author Pras
376376 */
377377 $messages['jv'] = array(
378 - 'abcdesc' => 'Tambahna tag <tt>&lt;abc&gt;</tt> kanggo format musik ABC',
 378+ 'abc-desc' => 'Tambahna tag <tt>&lt;abc&gt;</tt> kanggo format musik ABC',
379379 'abcdownload' => 'Undhuh:',
380380 );
381381
@@ -389,7 +389,7 @@
390390 * @author Mirzali
391391 */
392392 $messages['kiu'] = array(
393 - 'abcdesc' => 'Seba sıkıldaena ABC-muziki etiketê <tt>&lt;abc&gt;</tt>y ilawe keno',
 393+ 'abc-desc' => 'Seba sıkıldaena ABC-muziki etiketê <tt>&lt;abc&gt;</tt>y ilawe keno',
394394 'abcdownload' => 'Bar ke:',
395395 );
396396
@@ -404,7 +404,7 @@
405405 * @author Kwj2772
406406 */
407407 $messages['ko'] = array(
408 - 'abcdesc' => 'ABC 음악을 포맷하기 위해 <tt>&lt;abc&gt;</tt> 태그를 추가',
 408+ 'abc-desc' => 'ABC 음악을 포맷하기 위해 <tt>&lt;abc&gt;</tt> 태그를 추가',
409409 'abcdownload' => '다운로드:',
410410 );
411411
@@ -412,7 +412,7 @@
413413 * @author Iltever
414414 */
415415 $messages['krc'] = array(
416 - 'abcdesc' => 'ABC музыканы бичер ючюн <tt>&lt;abc&gt;</tt> тегни къошады',
 416+ 'abc-desc' => 'ABC музыканы бичер ючюн <tt>&lt;abc&gt;</tt> тегни къошады',
417417 'abcdownload' => 'Джюкле:',
418418 );
419419
@@ -420,7 +420,7 @@
421421 * @author Purodha
422422 */
423423 $messages['ksh'] = array(
424 - 'abcdesc' => 'Deit dä <tt>&lt;abc&gt;</tt>-Befähl en et Wiki domet mer Mussik em ABC Fommaat opschrieve kann.',
 424+ 'abc-desc' => 'Deit dä <tt>&lt;abc&gt;</tt>-Befähl en et Wiki domet mer Mussik em ABC Fommaat opschrieve kann.',
425425 'abcdownload' => 'Eronger lahde:',
426426 );
427427
@@ -443,7 +443,7 @@
444444 * @author Robby
445445 */
446446 $messages['lb'] = array(
447 - 'abcdesc' => "Setzt den <tt>&lt;abc&gt;</tt> Tag fir ''ABC music'' ze formatéieren",
 447+ 'abc-desc' => "Setzt den <tt>&lt;abc&gt;</tt> Tag fir ''ABC music'' ze formatéieren",
448448 'abcdownload' => 'Eroflueden:',
449449 );
450450
@@ -451,7 +451,7 @@
452452 * @author Pahles
453453 */
454454 $messages['li'] = array(
455 - 'abcdesc' => 'Voog de tag <tt>&lt;abc&gt;</tt> veur de opmaak van ABC-meziek in',
 455+ 'abc-desc' => 'Voog de tag <tt>&lt;abc&gt;</tt> veur de opmaak van ABC-meziek in',
456456 'abcdownload' => 'Downloade:',
457457 );
458458
@@ -459,7 +459,7 @@
460460 * @author Insübrich
461461 */
462462 $messages['lmo'] = array(
463 - 'abcdesc' => 'A giunta el tag <tt>&lt;abc&gt;</tt> a la müsega in furmaa ABC',
 463+ 'abc-desc' => 'A giunta el tag <tt>&lt;abc&gt;</tt> a la müsega in furmaa ABC',
464464 'abcdownload' => 'Descarga:',
465465 );
466466
@@ -467,7 +467,7 @@
468468 * @author Matasg
469469 */
470470 $messages['lt'] = array(
471 - 'abcdesc' => 'Prideda <tt>&lt;abc&gt;</tt> žymę prie formato ABC music',
 471+ 'abc-desc' => 'Prideda <tt>&lt;abc&gt;</tt> žymę prie formato ABC music',
472472 'abcdownload' => 'Atsisiųsti:',
473473 );
474474
@@ -476,7 +476,7 @@
477477 * @author FnTmLV
478478 */
479479 $messages['lv'] = array(
480 - 'abcdesc' => 'Pievieno <tt>&lt;abc&gt;</tt> tagu lai formatētu ABC mūziku',
 480+ 'abc-desc' => 'Pievieno <tt>&lt;abc&gt;</tt> tagu lai formatētu ABC mūziku',
481481 'abcdownload' => 'Ielādēt:',
482482 );
483483
@@ -484,7 +484,7 @@
485485 * @author Jagwar
486486 */
487487 $messages['mg'] = array(
488 - 'abcdesc' => 'Manampy balizy <tt>&lt;abc&gt;</tt> mba hifôrmaty ny mozika ABC',
 488+ 'abc-desc' => 'Manampy balizy <tt>&lt;abc&gt;</tt> mba hifôrmaty ny mozika ABC',
489489 'abcdownload' => 'Ampidino eto:',
490490 );
491491
@@ -492,7 +492,7 @@
493493 * @author Azim
494494 */
495495 $messages['mhr'] = array(
496 - 'abcdesc' => 'ABC музыкым форматированийлан <tt>&lt;abc&gt;</tt> тегым ешара',
 496+ 'abc-desc' => 'ABC музыкым форматированийлан <tt>&lt;abc&gt;</tt> тегым ешара',
497497 'abcdownload' => 'Опташ:',
498498 );
499499
@@ -500,7 +500,7 @@
501501 * @author Bjankuloski06
502502 */
503503 $messages['mk'] = array(
504 - 'abcdesc' => 'Ја додава ознаката <tt>&lt;abc&gt;</tt> за да форматира ABC музика',
 504+ 'abc-desc' => 'Ја додава ознаката <tt>&lt;abc&gt;</tt> за да форматира ABC музика',
505505 'abcdownload' => 'Преземи:',
506506 );
507507
@@ -509,7 +509,7 @@
510510 * @author Sadik Khalid
511511 */
512512 $messages['ml'] = array(
513 - 'abcdesc' => '<tt>&lt;abc&gt;</tt> അനുബന്ധം എ.ബി.സി. സംഗീതത്തിനു ചേര്‍ക്കുന്നു',
 513+ 'abc-desc' => '<tt>&lt;abc&gt;</tt> അനുബന്ധം എ.ബി.സി. സംഗീതത്തിനു ചേര്‍ക്കുന്നു',
514514 'abcdownload' => 'ഡൌൺലോഡ്',
515515 );
516516
@@ -517,7 +517,7 @@
518518 * @author E.shijir
519519 */
520520 $messages['mn'] = array(
521 - 'abcdesc' => 'ABC хөгжимиын горимд <tt>&lt;abc&gt;</tt> шошгыг нэмэх',
 521+ 'abc-desc' => 'ABC хөгжимиын горимд <tt>&lt;abc&gt;</tt> шошгыг нэмэх',
522522 'abcdownload' => 'Өөртөө хуулах:',
523523 );
524524
@@ -525,7 +525,7 @@
526526 * @author Zamwan
527527 */
528528 $messages['ms'] = array(
529 - 'abcdesc' => 'Letak tag <tt>&lt;abc&gt;</tt> bagi memformat muzik ABC',
 529+ 'abc-desc' => 'Letak tag <tt>&lt;abc&gt;</tt> bagi memformat muzik ABC',
530530 'abcdownload' => 'Muat turun:',
531531 );
532532
@@ -533,7 +533,7 @@
534534 * @author Botuzhaleny-sodamo
535535 */
536536 $messages['myv'] = array(
537 - 'abcdesc' => 'Полады <tt>&lt;abc&gt;</tt> тег ABC музыканть форматировамонь туртов',
 537+ 'abc-desc' => 'Полады <tt>&lt;abc&gt;</tt> тег ABC музыканть форматировамонь туртов',
538538 'abcdownload' => 'Таргамс:',
539539 );
540540
@@ -541,7 +541,7 @@
542542 * @author Fluence
543543 */
544544 $messages['nah'] = array(
545 - 'abcdesc' => 'Ticcēntilīz <tt>&lt;abc&gt;</tt> ic tictequitiltīz ABC cuīcayōtlahtōl',
 545+ 'abc-desc' => 'Ticcēntilīz <tt>&lt;abc&gt;</tt> ic tictequitiltīz ABC cuīcayōtlahtōl',
546546 'abcdownload' => 'Tictemōz:',
547547 );
548548
@@ -549,7 +549,7 @@
550550 * @author Slomox
551551 */
552552 $messages['nds'] = array(
553 - 'abcdesc' => 'Föögt dat Tag <tt>&lt;abc&gt;</tt> för dat Wiesen vun ABC-Musik to',
 553+ 'abc-desc' => 'Föögt dat Tag <tt>&lt;abc&gt;</tt> för dat Wiesen vun ABC-Musik to',
554554 'abcdownload' => 'Dalladen:',
555555 );
556556
@@ -557,7 +557,7 @@
558558 * @author Servien
559559 */
560560 $messages['nds-nl'] = array(
561 - 'abcdesc' => 'Voeg de tag <tt>&lt;abc&gt;</tt> toe veur de opmaak van ABC-meziek',
 561+ 'abc-desc' => 'Voeg de tag <tt>&lt;abc&gt;</tt> toe veur de opmaak van ABC-meziek',
562562 'abcdownload' => 'Binnenhaolen:',
563563 );
564564
@@ -565,7 +565,7 @@
566566 * @author सरोज कुमार ढकाल
567567 */
568568 $messages['ne'] = array(
569 - 'abcdesc' => ' ABC संगित <tt>&lt;abc&gt;</tt> ढाँचावद्ध गर्नलाई ट्याग थप्छ।',
 569+ 'abc-desc' => ' ABC संगित <tt>&lt;abc&gt;</tt> ढाँचावद्ध गर्नलाई ट्याग थप्छ।',
570570 'abcdownload' => 'डाउनलोड गर्ने:',
571571 );
572572
@@ -573,7 +573,7 @@
574574 * @author Siebrand
575575 */
576576 $messages['nl'] = array(
577 - 'abcdesc' => 'Voegt de tag <tt>&lt;abc&gt;</tt> voor de opmaak van ABC-muziek',
 577+ 'abc-desc' => 'Voegt de tag <tt>&lt;abc&gt;</tt> voor de opmaak van ABC-muziek',
578578 'abcdownload' => 'Downloaden:',
579579 );
580580
@@ -581,7 +581,7 @@
582582 * @author Harald Khan
583583 */
584584 $messages['nn'] = array(
585 - 'abcdesc' => 'Legg til <tt>&lt;abc&gt;</tt>-merket for å formatera ABC-musikk',
 585+ 'abc-desc' => 'Legg til <tt>&lt;abc&gt;</tt>-merket for å formatera ABC-musikk',
586586 'abcdownload' => 'Last ned:',
587587 );
588588
@@ -589,7 +589,7 @@
590590 * @author Jon Harald Søby
591591 */
592592 $messages['no'] = array(
593 - 'abcdesc' => 'Lager taggen <tt>&lt;abc&gt;</tt> for å formatere ABC-musikk',
 593+ 'abc-desc' => 'Lager taggen <tt>&lt;abc&gt;</tt> for å formatere ABC-musikk',
594594 'abcdownload' => 'Last ned:',
595595 );
596596
@@ -597,7 +597,7 @@
598598 * @author Cedric31
599599 */
600600 $messages['oc'] = array(
601 - 'abcdesc' => 'Apond una balisa <tt>&lt;abc&gt;</tt> per formatar la musica ABC',
 601+ 'abc-desc' => 'Apond una balisa <tt>&lt;abc&gt;</tt> per formatar la musica ABC',
602602 'abcdownload' => 'Telecargar :',
603603 );
604604
@@ -613,7 +613,7 @@
614614 * @author Sp5uhe
615615 */
616616 $messages['pl'] = array(
617 - 'abcdesc' => 'Dodaje znacznik <tt>&lt;abc&gt;</tt> dla muzyki w formacie ABC',
 617+ 'abc-desc' => 'Dodaje znacznik <tt>&lt;abc&gt;</tt> dla muzyki w formacie ABC',
618618 'abcdownload' => 'Pobierz:',
619619 );
620620
@@ -621,7 +621,7 @@
622622 * @author Dragonòt
623623 */
624624 $messages['pms'] = array(
625 - 'abcdesc' => 'A gionta ël tag <tt>&lt;abc&gt;</tt> a la mùsica an formà ABC',
 625+ 'abc-desc' => 'A gionta ël tag <tt>&lt;abc&gt;</tt> a la mùsica an formà ABC',
626626 'abcdownload' => 'Dëscaria:',
627627 );
628628
@@ -629,7 +629,7 @@
630630 * @author Ahmed-Najib-Biabani-Ibrahimkhel
631631 */
632632 $messages['ps'] = array(
633 - 'abcdesc' => 'ABC موسيقي بڼې ته د <tt>&lt;abc&gt;</tt> لنډنوم ورګډوي',
 633+ 'abc-desc' => 'ABC موسيقي بڼې ته د <tt>&lt;abc&gt;</tt> لنډنوم ورګډوي',
634634 'abcdownload' => 'ښکته کول:',
635635 );
636636
@@ -638,7 +638,7 @@
639639 * @author Waldir
640640 */
641641 $messages['pt'] = array(
642 - 'abcdesc' => 'Adiciona a tag <tt>&lt;abc&gt;</tt> para formatar música em notação ABC',
 642+ 'abc-desc' => 'Adiciona a tag <tt>&lt;abc&gt;</tt> para formatar música em notação ABC',
643643 'abcdownload' => 'Descarregar:',
644644 );
645645
@@ -646,7 +646,7 @@
647647 * @author Eduardo.mps
648648 */
649649 $messages['pt-br'] = array(
650 - 'abcdesc' => 'Adiciona a marca <tt>&lt;abc&gt;</tt> para formatar música em notação ABC',
 650+ 'abc-desc' => 'Adiciona a marca <tt>&lt;abc&gt;</tt> para formatar música em notação ABC',
651651 'abcdownload' => 'Descarregar:',
652652 );
653653
@@ -654,7 +654,7 @@
655655 * @author Aryaz
656656 */
657657 $messages['rif'] = array(
658 - 'abcdesc' => 'Irnni tira <tt>&lt;abc&gt;</tt> afad ad isggm ABC music',
 658+ 'abc-desc' => 'Irnni tira <tt>&lt;abc&gt;</tt> afad ad isggm ABC music',
659659 'abcdownload' => 'Zdm/Download',
660660 );
661661
@@ -662,7 +662,7 @@
663663 * @author Gion
664664 */
665665 $messages['rm'] = array(
666 - 'abcdesc' => 'Agiunta il tag <tt>&lt;abc&gt;</tt> per formatar musica ABC',
 666+ 'abc-desc' => 'Agiunta il tag <tt>&lt;abc&gt;</tt> per formatar musica ABC',
667667 'abcdownload' => 'Download:',
668668 );
669669
@@ -670,7 +670,7 @@
671671 * @author Silviubogan
672672 */
673673 $messages['ro'] = array(
674 - 'abcdesc' => 'Adaugă elementul <tt>&lt;abc&gt;</tt> pentru a formata muzica ABC',
 674+ 'abc-desc' => 'Adaugă elementul <tt>&lt;abc&gt;</tt> pentru a formata muzica ABC',
675675 'abcdownload' => 'Descarcă:',
676676 );
677677
@@ -678,7 +678,7 @@
679679 * @author Joetaras
680680 */
681681 $messages['roa-tara'] = array(
682 - 'abcdesc' => "Aggiunge <tt>&lt;abc&gt;</tt> tag pe formattà 'a musiche de ABC",
 682+ 'abc-desc' => "Aggiunge <tt>&lt;abc&gt;</tt> tag pe formattà 'a musiche de ABC",
683683 'abcdownload' => 'Scareche:',
684684 );
685685
@@ -687,7 +687,7 @@
688688 * @author Александр Сигачёв
689689 */
690690 $messages['ru'] = array(
691 - 'abcdesc' => 'Добавляет тег <tt>&lt;abc&gt;</tt> для форматирования музыки ABC',
 691+ 'abc-desc' => 'Добавляет тег <tt>&lt;abc&gt;</tt> для форматирования музыки ABC',
692692 'abcdownload' => 'Загрузить:',
693693 );
694694
@@ -709,7 +709,7 @@
710710 * @author Dalinanir
711711 */
712712 $messages['shi'] = array(
713 - 'abcdesc' => 'Gen <tt>&lt;abc&gt;</tt> bac atskrt azawan ABC',
 713+ 'abc-desc' => 'Gen <tt>&lt;abc&gt;</tt> bac atskrt azawan ABC',
714714 'abcdownload' => 'Srbu',
715715 );
716716
@@ -717,7 +717,7 @@
718718 * @author Helix84
719719 */
720720 $messages['sk'] = array(
721 - 'abcdesc' => 'Pridáva značku <tt>&lt;abc&gt;</tt> na formátovanie ABC hudby',
 721+ 'abc-desc' => 'Pridáva značku <tt>&lt;abc&gt;</tt> na formátovanie ABC hudby',
722722 'abcdownload' => 'Stiahnuť:',
723723 );
724724
@@ -725,7 +725,7 @@
726726 * @author Puntori
727727 */
728728 $messages['sq'] = array(
729 - 'abcdesc' => 'Vendosë kodin <tt>&lt;abc&gt;</tt> të formatojë muzikë ABC',
 729+ 'abc-desc' => 'Vendosë kodin <tt>&lt;abc&gt;</tt> të formatojë muzikë ABC',
730730 'abcdownload' => 'Shkarko:',
731731 );
732732
@@ -733,7 +733,7 @@
734734 * @author Михајло Анђелковић
735735 */
736736 $messages['sr-ec'] = array(
737 - 'abcdesc' => 'Додаје <tt>&lt;abc&gt;</tt> таг за форматирање ABC музике',
 737+ 'abc-desc' => 'Додаје <tt>&lt;abc&gt;</tt> таг за форматирање ABC музике',
738738 'abcdownload' => 'Сними:',
739739 );
740740
@@ -741,7 +741,7 @@
742742 * @author Michaello
743743 */
744744 $messages['sr-el'] = array(
745 - 'abcdesc' => 'Dodaje <tt>&lt;abc&gt;</tt> tag za formatiranje ABC muzike',
 745+ 'abc-desc' => 'Dodaje <tt>&lt;abc&gt;</tt> tag za formatiranje ABC muzike',
746746 'abcdownload' => 'Snimi:',
747747 );
748748
@@ -749,7 +749,7 @@
750750 * @author Pyt
751751 */
752752 $messages['stq'] = array(
753 - 'abcdesc' => 'Föiget dät <tt>&lt;abc&gt;</tt>-Tag tou ju Notation fon Musik in ABC bietou',
 753+ 'abc-desc' => 'Föiget dät <tt>&lt;abc&gt;</tt>-Tag tou ju Notation fon Musik in ABC bietou',
754754 'abcdownload' => 'Deelleede:',
755755 );
756756
@@ -757,7 +757,7 @@
758758 * @author Kandar
759759 */
760760 $messages['su'] = array(
761 - 'abcdesc' => 'Nambah tag <tt>&lt;abc&gt;</tt> pikeun ngaformat musik ABC',
 761+ 'abc-desc' => 'Nambah tag <tt>&lt;abc&gt;</tt> pikeun ngaformat musik ABC',
762762 'abcdownload' => 'Unduh:',
763763 );
764764
@@ -766,7 +766,7 @@
767767 * @author Najami
768768 */
769769 $messages['sv'] = array(
770 - 'abcdesc' => 'Lägger till <tt>&lt;abc&gt;</tt>-taggen för att formatera ABC-musik',
 770+ 'abc-desc' => 'Lägger till <tt>&lt;abc&gt;</tt>-taggen för att formatera ABC-musik',
771771 'abcdownload' => 'Ladda ner:',
772772 );
773773
@@ -775,7 +775,7 @@
776776 * @author Veeven
777777 */
778778 $messages['te'] = array(
779 - 'abcdesc' => 'ABC సంగీతాన్ని చూపించడానికై <tt>&lt;abc&gt;</tt> అనే ట్యాగుని చేరుస్తుంది',
 779+ 'abc-desc' => 'ABC సంగీతాన్ని చూపించడానికై <tt>&lt;abc&gt;</tt> అనే ట్యాగుని చేరుస్తుంది',
780780 'abcdownload' => 'డౌన్‌లోడ్',
781781 );
782782
@@ -783,7 +783,7 @@
784784 * @author Manop
785785 */
786786 $messages['th'] = array(
787 - 'abcdesc' => 'เพิ่มแท็ก <tt>&lt;abc&gt;</tt> สำหรับใส่รูปแบบดนตรี ABC',
 787+ 'abc-desc' => 'เพิ่มแท็ก <tt>&lt;abc&gt;</tt> สำหรับใส่รูปแบบดนตรี ABC',
788788 'abcdownload' => 'ดาวน์โหลด:',
789789 );
790790
@@ -791,7 +791,7 @@
792792 * @author AnakngAraw
793793 */
794794 $messages['tl'] = array(
795 - 'abcdesc' => 'Nagdaragdag ng tatak na <tt>&lt;abc&gt;</tt> para maipormat ang tugtuging ABC',
 795+ 'abc-desc' => 'Nagdaragdag ng tatak na <tt>&lt;abc&gt;</tt> para maipormat ang tugtuging ABC',
796796 'abcdownload' => 'Ikargang-pakuha:',
797797 );
798798
@@ -799,7 +799,7 @@
800800 * @author Joseph
801801 */
802802 $messages['tr'] = array(
803 - 'abcdesc' => 'ABC müziğini biçimlendirmek için <tt>&lt;abc&gt;</tt> etiketini ekler',
 803+ 'abc-desc' => 'ABC müziğini biçimlendirmek için <tt>&lt;abc&gt;</tt> etiketini ekler',
804804 'abcdownload' => 'İndir:',
805805 );
806806
@@ -814,7 +814,7 @@
815815 * @author AS
816816 */
817817 $messages['uk'] = array(
818 - 'abcdesc' => 'Додає тег <tt>&lt;abc&gt;</tt> для форматування музики ABC',
 818+ 'abc-desc' => 'Додає тег <tt>&lt;abc&gt;</tt> для форматування музики ABC',
819819 'abcdownload' => 'Завантажити:',
820820 );
821821
@@ -822,7 +822,7 @@
823823 * @author Candalua
824824 */
825825 $messages['vec'] = array(
826 - 'abcdesc' => 'Zonta el tag <tt>&lt;abc&gt;</tt> par la musica in formato ABC',
 826+ 'abc-desc' => 'Zonta el tag <tt>&lt;abc&gt;</tt> par la musica in formato ABC',
827827 'abcdownload' => 'Descarga:',
828828 );
829829
@@ -830,7 +830,7 @@
831831 * @author Игорь Бродский
832832 */
833833 $messages['vep'] = array(
834 - 'abcdesc' => 'Ližadab <tt>&lt;abc&gt;</tt>-teg ABC-muzikad formatiruides',
 834+ 'abc-desc' => 'Ližadab <tt>&lt;abc&gt;</tt>-teg ABC-muzikad formatiruides',
835835 'abcdownload' => 'Jügutoitta:',
836836 );
837837
@@ -838,7 +838,7 @@
839839 * @author Vinhtantran
840840 */
841841 $messages['vi'] = array(
842 - 'abcdesc' => 'Thêm thẻ <tt>&lt;abc&gt;</tt> để định dạng nhạc ABC',
 842+ 'abc-desc' => 'Thêm thẻ <tt>&lt;abc&gt;</tt> để định dạng nhạc ABC',
843843 'abcdownload' => 'Tải xuống:',
844844 );
845845
@@ -846,7 +846,7 @@
847847 * @author Smeira
848848 */
849849 $messages['vo'] = array(
850 - 'abcdesc' => 'Läükon mali: <tt>&lt;abc&gt;</tt> musige fomätü ABC',
 850+ 'abc-desc' => 'Läükon mali: <tt>&lt;abc&gt;</tt> musige fomätü ABC',
851851 'abcdownload' => 'Donükön:',
852852 );
853853
@@ -854,7 +854,7 @@
855855 * @author Võrok
856856 */
857857 $messages['vro'] = array(
858 - 'abcdesc' => 'Pand mano <tt>&lt;abc&gt;</tt>-elemendi ABC-muusiga kujondamisõs',
 858+ 'abc-desc' => 'Pand mano <tt>&lt;abc&gt;</tt>-elemendi ABC-muusiga kujondamisõs',
859859 'abcdownload' => 'Laadiq alla',
860860 );
861861
@@ -862,8 +862,7 @@
863863 * @author Hercule
864864 */
865865 $messages['wuu'] = array(
866 - 'abcdesc' => '
867 -增加了<tt>&lt;abc&gt;</tt>树脂标记美国广播公司的音乐格式',
 866+ 'abc-desc' => '增加了<tt>&lt;abc&gt;</tt>树脂标记美国广播公司的音乐格式',
868867 'abcdownload' => '下载:',
869868 );
870869
@@ -871,7 +870,7 @@
872871 * @author פוילישער
873872 */
874873 $messages['yi'] = array(
875 - 'abcdesc' => 'לייגט צו <tt>&lt;abc&gt;</tt> טאַג צו פארמאַטירן ABC מוזיק',
 874+ 'abc-desc' => 'לייגט צו <tt>&lt;abc&gt;</tt> טאַג צו פארמאַטירן ABC מוזיק',
876875 'abcdownload' => 'אַראָפלאָדן',
877876 );
878877
@@ -886,7 +885,7 @@
887886 * @author Bencmq
888887 */
889888 $messages['zh-hans'] = array(
890 - 'abcdesc' => '加入<tt>&lt;abc&gt;</tt>标签以格式化ABC音乐',
 889+ 'abc-desc' => '加入<tt>&lt;abc&gt;</tt>标签以格式化ABC音乐',
891890 'abcdownload' => '下载:',
892891 );
893892
@@ -895,7 +894,7 @@
896895 * @author Wrightbus
897896 */
898897 $messages['zh-hant'] = array(
899 - 'abcdesc' => '加入<tt>&lt;abc&gt;</tt>標籤以格式化ABC音樂',
 898+ 'abc-desc' => '加入<tt>&lt;abc&gt;</tt>標籤以格式化ABC音樂',
900899 'abcdownload' => '下載:',
901900 );
902901
Index: trunk/extensions/ABC/ABC.php
@@ -8,13 +8,13 @@
99 */
1010 /* $Id$ */
1111
12 -if (!defined('MEDIAWIKI'))
 12+if ( !defined( 'MEDIAWIKI' ) )
1313 die();
14 -
 14+
1515 # The on-disk path where ABC files and rendered images / PDFs
1616 # will be placed.
1717 # Example: $abcPath = "/var/www/wiki/abc";
18 -$abcPath = false;
 18+$abcPath = false;
1919
2020 # The HTTP path where the above directory is found.
2121 # Example: $abcURL = "/wiki/abc";
@@ -28,12 +28,12 @@
2929
3030 # Path to the abc2midi executable. Optional; set this if you
3131 # want to enable MIDI rendering.
32 -#$abc2midi = "/usr/bin/abc2midi";
 32+# $abc2midi = "/usr/bin/abc2midi";
3333 $abc2midi = false;
3434
3535 # Path to the TiMidity++ executable. Optional; set this if you
3636 # want Ogg Vorbis rendering. Requires MIDI rendering.
37 -#$abctimidity = "/usr/bin/timidity";
 37+# $abctimidity = "/usr/bin/timidity";
3838 $abctimidity = false;
3939
4040 # Default instrument number for Vorbis.
@@ -47,7 +47,7 @@
4848 # you must enable Ogg Vorbis rendering.
4949 $abcOggHandler = false;
5050
51 -# Set this if you will render the outputs (ps, pdf, png, etc.)
 51+# Set this if you will render the outputs (ps, pdf, png, etc.)
5252 # outside of the extension. Nothing will be generated except the
5353 # .abc file.
5454 $abcDelayedRendering = false;
@@ -58,31 +58,29 @@
5959 'author' => 'River Tarnell',
6060 'url' => 'http://www.mediawiki.org/wiki/Extension:ABC',
6161 'description' => 'Adds <tt>&lt;abc&gt;</tt> tag to format ABC music',
62 - 'descriptionmsg' => 'abcdesc',
 62+ 'descriptionmsg' => 'abc-desc',
6363 );
64 -$wgExtensionMessagesFiles['ABC'] = dirname(__FILE__) . '/ABC.i18n.php';
 64+$wgExtensionMessagesFiles['ABC'] = dirname( __FILE__ ) . '/ABC.i18n.php';
6565 $wgHooks['ParserFirstCallInit'][] = 'efABCInit';
6666
67 -function
68 -efABCInit( &$parser ) {
69 -global $wgOut, $abcOggHandler;
70 - wfLoadExtensionMessages('ABC');
 67+function efABCInit( &$parser ) {
 68+ global $wgOut, $abcOggHandler;
 69+ wfLoadExtensionMessages( 'ABC' );
7170 $parser->setHook( 'abc', 'efABCRender' );
72 -
73 - if ($abcOggHandler) {
 71+
 72+ if ( $abcOggHandler ) {
7473 $oh = new OggHandler();
75 - $oh->setHeaders($wgOut);
 74+ $oh->setHeaders( $wgOut );
7675 }
77 -
 76+
7877 return true;
7978 }
80 -
81 -function
82 -efABCRender($input, $args, $parser) {
83 -global $abcPath, $abcURL, $abc2midi, $abctimidity, $abcOggHandler,
 79+
 80+function efABCRender( $input, $args, $parser ) {
 81+ global $abcPath, $abcURL, $abc2midi, $abctimidity, $abcOggHandler,
8482 $abcDelayedRendering, $wgLang;
8583
86 - if ($abcPath == false || $abcURL == false)
 84+ if ( $abcPath == false || $abcURL == false )
8785 return 'Error: $abcPath and $abcURL must be set to use the ABC extension.';
8886
8987 /*
@@ -92,22 +90,22 @@
9391 * on different pages will only cause one rendering.
9492 */
9593 $float = "left";
96 - if (isset($args['float']) && $args['float'] == 'right')
 94+ if ( isset( $args['float'] ) && $args['float'] == 'right' )
9795 $float = "right";
9896
99 - $abc = preg_replace("/^\n+/", "", $input);
100 - $hash = sha1($input);
 97+ $abc = preg_replace( "/^\n+/", "", $input );
 98+ $hash = sha1( $input );
10199 $error = "";
102100
103101 $hashbits = array(
104 - substr($hash, 0, 2),
105 - substr($hash, 2, 2),
106 - substr($hash, 4, 2));
 102+ substr( $hash, 0, 2 ),
 103+ substr( $hash, 2, 2 ),
 104+ substr( $hash, 4, 2 ) );
107105 $directory = "{$hashbits[0]}/{$hashbits[1]}/{$hashbits[2]}";
108106 $filename = "$abcPath/$directory/$hash";
109107
110 - if (!@file_exists("$abcPath/$directory"))
111 - if (!@mkdir("$abcPath/$directory", 0777, true))
 108+ if ( !@file_exists( "$abcPath/$directory" ) )
 109+ if ( !@mkdir( "$abcPath/$directory", 0777, true ) )
112110 return "Cannot create directory \"$abcPath/$directory\".";
113111
114112 /*
@@ -115,25 +113,25 @@
116114 * alt text for the image.
117115 */
118116 $title = "Unknown song";
119 - if (preg_match("/^T:\s*(.*)$/m", $input, $matches))
 117+ if ( preg_match( "/^T:\s*(.*)$/m", $input, $matches ) )
120118 $title = $matches[1];
121119
122 - if (!abcCreateABC($abc, $filename, $error))
123 - return str_replace("\n", "<br />", htmlspecialchars($error));
 120+ if ( !abcCreateABC( $abc, $filename, $error ) )
 121+ return str_replace( "\n", "<br />", htmlspecialchars( $error ) );
124122
125 - if (!$abcDelayedRendering) {
126 - if (!abcCreatePS($abc, $filename, $error))
127 - return str_replace("\n", "<br />", htmlspecialchars($error));
128 - if (!abcCreatePNG($abc, $filename, $error))
129 - return str_replace("\n", "<br />", htmlspecialchars($error));
130 - if (!abcCreatePDF($abc, $filename, $error))
131 - return str_replace("\n", "<br />", htmlspecialchars($error));
132 - if ($abc2midi)
133 - if (!abcCreateMIDI($abc, $filename, $error))
134 - return str_replace("\n", "<br />", htmlspecialchars($error));
135 - if ($abc2midi && $abctimidity)
136 - if (!abcCreateVorbis($abc, $filename, $error))
137 - return str_replace("\n", "<br />", htmlspecialchars($error));
 123+ if ( !$abcDelayedRendering ) {
 124+ if ( !abcCreatePS( $abc, $filename, $error ) )
 125+ return str_replace( "\n", "<br />", htmlspecialchars( $error ) );
 126+ if ( !abcCreatePNG( $abc, $filename, $error ) )
 127+ return str_replace( "\n", "<br />", htmlspecialchars( $error ) );
 128+ if ( !abcCreatePDF( $abc, $filename, $error ) )
 129+ return str_replace( "\n", "<br />", htmlspecialchars( $error ) );
 130+ if ( $abc2midi )
 131+ if ( !abcCreateMIDI( $abc, $filename, $error ) )
 132+ return str_replace( "\n", "<br />", htmlspecialchars( $error ) );
 133+ if ( $abc2midi && $abctimidity )
 134+ if ( !abcCreateVorbis( $abc, $filename, $error ) )
 135+ return str_replace( "\n", "<br />", htmlspecialchars( $error ) );
138136 }
139137
140138 /*
@@ -141,33 +139,33 @@
142140 * output. We produce an image from the PNG, and include
143141 * links to the ABC and PS.
144142 */
145 - $e_title = htmlspecialchars($title);
146 - $e_imgpath = htmlspecialchars("$abcURL/$directory/$hash.png");
147 - $e_abcpath = htmlspecialchars("$abcURL/$directory/$hash.abc");
148 - $e_pspath = htmlspecialchars("$abcURL/$directory/$hash.ps");
149 - $e_pdfpath = htmlspecialchars("$abcURL/$directory/$hash.pdf");
150 - $e_midipath = htmlspecialchars("$abcURL/$directory/$hash.mid");
151 - $e_vorbispath = htmlspecialchars("$abcURL/$directory/$hash.ogg");
 143+ $e_title = htmlspecialchars( $title );
 144+ $e_imgpath = htmlspecialchars( "$abcURL/$directory/$hash.png" );
 145+ $e_abcpath = htmlspecialchars( "$abcURL/$directory/$hash.abc" );
 146+ $e_pspath = htmlspecialchars( "$abcURL/$directory/$hash.ps" );
 147+ $e_pdfpath = htmlspecialchars( "$abcURL/$directory/$hash.pdf" );
 148+ $e_midipath = htmlspecialchars( "$abcURL/$directory/$hash.mid" );
 149+ $e_vorbispath = htmlspecialchars( "$abcURL/$directory/$hash.ogg" );
152150
153151 $links = array();
154 - $links[] = "<a href=\"$e_abcpath\">" . wfMsg('abcabc') . "</a>";
155 - $links[] = "<a href=\"$e_pspath\">" . wfMsg('abcps') . "</a>";
156 - $links[] = "<a href=\"$e_pdfpath\">" . wfMsg('abcpdf') . "</a>";
157 - if ($abc2midi)
158 - $links[] = "<a href=\"$e_midipath\">" . wfMsg('abcmidi') . "</a>";
159 - if ($abctimidity)
160 - $links[] = "<a href=\"$e_vorbispath\">" . wfMsg('abcvorbis') . "</a>";
 152+ $links[] = "<a href=\"$e_abcpath\">" . wfMsg( 'abcabc' ) . "</a>";
 153+ $links[] = "<a href=\"$e_pspath\">" . wfMsg( 'abcps' ) . "</a>";
 154+ $links[] = "<a href=\"$e_pdfpath\">" . wfMsg( 'abcpdf' ) . "</a>";
 155+ if ( $abc2midi )
 156+ $links[] = "<a href=\"$e_midipath\">" . wfMsg( 'abcmidi' ) . "</a>";
 157+ if ( $abctimidity )
 158+ $links[] = "<a href=\"$e_vorbispath\">" . wfMsg( 'abcvorbis' ) . "</a>";
161159
162 - $e_dllinks = wfMsg('abcdownload') . " " . $wgLang->pipeList( $links );
 160+ $e_dllinks = wfMsg( 'abcdownload' ) . " " . $wgLang->pipeList( $links );
163161
164162 $ogghtml = "";
165163
166 - if ($abcOggHandler) {
167 - $oh = new OggTransformOutput(null,
 164+ if ( $abcOggHandler ) {
 165+ $oh = new OggTransformOutput( null,
168166 "$filename.ogg", false,
169 - 250, 0, 0, false,
170 - "$filename.ogg", false);
171 - $ogghtml = $oh->toHtml(array('alt' => $title));
 167+ 250, 0, 0, false,
 168+ "$filename.ogg", false );
 169+ $ogghtml = $oh->toHtml( array( 'alt' => $title ) );
172170 }
173171
174172 $output = <<<EOF
@@ -184,36 +182,35 @@
185183 return $output;
186184 }
187185
188 -function
189 -abcCreateABC($abc, $pfx, &$error)
190 -{
191 -global $abcPath;
192 - if (!@file_exists($abcPath)) {
 186+function abcCreateABC( $abc, $pfx, &$error ) {
 187+ global $abcPath;
 188+
 189+ if ( !@file_exists( $abcPath ) ) {
193190 $error = "Error: $abcPath does not exist.";
194191 return false;
195192 }
196 -
 193+
197194 $filename = "$pfx.abc";
198 - if (file_exists($filename))
 195+ if ( file_exists( $filename ) )
199196 return true;
200 -
201 - if (($f = @fopen($filename, "w")) === false) {
 197+
 198+ if ( ( $f = @fopen( $filename, "w" ) ) === false ) {
202199 $last = error_get_last();
203200 $msg = $last['msg'];
204201 $error = "Error: cannot create $filename: $msg";
205202 return false;
206203 }
207 -
208 - if (@fwrite($f, $abc) === false) {
209 - @unlink($filename);
 204+
 205+ if ( @fwrite( $f, $abc ) === false ) {
 206+ @unlink( $filename );
210207 $last = error_get_last();
211208 $msg = $last['msg'];
212209 $error = "Error: cannot write to $filename: $msg";
213210 return false;
214211 }
215 -
216 - if (@fclose($f) === false) {
217 - @unlink($filename);
 212+
 213+ if ( @fclose( $f ) === false ) {
 214+ @unlink( $filename );
218215 $last = error_get_last();
219216 $msg = $last['msg'];
220217 $error = "Error: cannot write to $filename: $msg";
@@ -223,135 +220,130 @@
224221 return true;
225222 }
226223
227 -function
228 -abcCreatePS($abc, $pfx, &$error)
229 -{
230 -global $abcm2ps, $abcPath;
231 - if (!@file_exists($abcm2ps)) {
 224+function abcCreatePS( $abc, $pfx, &$error ) {
 225+ global $abcm2ps, $abcPath;
 226+
 227+ if ( !@file_exists( $abcm2ps ) ) {
232228 $error = "Error: $abcm2ps not found.";
233229 return false;
234230 }
235 -
 231+
236232 $input = "$pfx.abc";
237233 $output = "$pfx.ps";
238234
239 - if (file_exists($output))
 235+ if ( file_exists( $output ) )
240236 return true;
241 -
 237+
242238 $cmd = "$abcm2ps -E $input -O $pfx";
243 - @exec($cmd, $cmd_out, $ret);
244 - if ($ret != 0 || !@file_exists("{$pfx}001.eps")) {
 239+ @exec( $cmd, $cmd_out, $ret );
 240+ if ( $ret != 0 || !@file_exists( "{$pfx}001.eps" ) ) {
245241 $error = "Error: $abcm2ps failed to convert input (ret: $ret).\n";
246 - $error .= "Output: " . join("\n", $cmd_out);
 242+ $error .= "Output: " . join( "\n", $cmd_out );
247243 return false;
248244 }
249 -
250 - if (@rename("{$pfx}001.eps", "{$pfx}.ps") === false) {
 245+
 246+ if ( @rename( "{$pfx}001.eps", "{$pfx}.ps" ) === false ) {
251247 $error = "Error: cannot rename output file.";
252248 return false;
253249 }
254 -
 250+
255251 return true;
256252 }
257253
258 -function
259 -abcCreatePDF($abc, $pfx, &$error)
260 -{
261 -global $abcps2pdf, $abcPath;
262 - if (!@file_exists($abcps2pdf)) {
 254+function abcCreatePDF( $abc, $pfx, &$error ) {
 255+ global $abcps2pdf, $abcPath;
 256+
 257+ if ( !@file_exists( $abcps2pdf ) ) {
263258 $error = "Error: $abcps2pdf not found.";
264259 return false;
265260 }
266 -
 261+
267262 $input = "$pfx.ps";
268263 $output = "$pfx.pdf";
269264
270 - if (file_exists($output))
 265+ if ( file_exists( $output ) )
271266 return true;
272267
273268 $cmd = "$abcps2pdf -dEPSCrop $input $output";
274 - @exec($cmd, $cmd_out, $ret);
275 - if ($ret != 0 || !@file_exists("$pfx.pdf")) {
 269+ @exec( $cmd, $cmd_out, $ret );
 270+ if ( $ret != 0 || !@file_exists( "$pfx.pdf" ) ) {
276271 $error = "Error: $abcps2pdf failed to convert input (ret: $ret).\n";
277 - $error .= "Output: " . join("\n", $cmd_out);
 272+ $error .= "Output: " . join( "\n", $cmd_out );
278273 return false;
279274 }
280 -
 275+
281276 return true;
282277 }
283278
284 -function
285 -abcCreatePNG($abc, $pfx, &$error)
286 -{
287 -global $wgImageMagickConvertCommand, $abcPath;
288 - if (!$wgImageMagickConvertCommand) {
 279+function abcCreatePNG( $abc, $pfx, &$error ) {
 280+ global $wgImageMagickConvertCommand, $abcPath;
 281+
 282+ if ( !$wgImageMagickConvertCommand ) {
289283 $error = "Error: ImageMagick not enabled.";
290284 return false;
291285 }
292 -
 286+
293287 $input = "$pfx.ps";
294288 $output = "$pfx.png";
295289
296 - if (file_exists($output))
 290+ if ( file_exists( $output ) )
297291 return true;
298292
299293 $cmd = "$wgImageMagickConvertCommand $input $output";
300 - @exec($cmd, $cmd_out, $ret);
301 - if ($ret != 0 || !@file_exists($output)) {
 294+ @exec( $cmd, $cmd_out, $ret );
 295+ if ( $ret != 0 || !@file_exists( $output ) ) {
302296 $error = "Error: ImageMagick failed to convert input [$output] (ret: $ret).";
303 - $error .= "Output: " . join("\n", $cmd_out);
 297+ $error .= "Output: " . join( "\n", $cmd_out );
304298 return false;
305299 }
306300
307301 return true;
308302 }
309303
310 -function
311 -abcCreateMIDI($abc, $pfx, &$error)
312 -{
313 -global $abc2midi, $abcPath;
314 - if (!$abc2midi) {
 304+function abcCreateMIDI( $abc, $pfx, &$error ) {
 305+ global $abc2midi, $abcPath;
 306+
 307+ if ( !$abc2midi ) {
315308 $error = "Error: $abc2midi not found.";
316309 return false;
317310 }
318 -
 311+
319312 $input = "$pfx.abc";
320313 $output = "$pfx.mid";
321314
322 - if (file_exists($output))
 315+ if ( file_exists( $output ) )
323316 return true;
324317
325318 $cmd = "$abc2midi $input -o $output";
326 - @exec($cmd, $cmd_out, $ret);
327 - if ($ret != 0 || !@file_exists($output)) {
 319+ @exec( $cmd, $cmd_out, $ret );
 320+ if ( $ret != 0 || !@file_exists( $output ) ) {
328321 $error = "Error: $abc2midi failed to convert input [$output] (ret: $ret).";
329 - $error .= "Output: " . join("\n", $cmd_out);
 322+ $error .= "Output: " . join( "\n", $cmd_out );
330323 return false;
331324 }
332325
333326 return true;
334327 }
335328
336 -function
337 -abcCreateVorbis($abc, $pfx, &$error)
338 -{
339 -global $abctimidity, $abcMIDIvoice, $abcPath;
340 - if (!@file_exists($abctimidity)) {
 329+function abcCreateVorbis( $abc, $pfx, &$error ) {
 330+ global $abctimidity, $abcMIDIvoice, $abcPath;
 331+
 332+ if ( !@file_exists( $abctimidity ) ) {
341333 $error = "Error: TiMidity++ not enabled.";
342334 return false;
343335 }
344 -
 336+
345337 $input = "$pfx.mid";
346338 $output = "$pfx.ogg";
347339
348 - if (file_exists($output))
 340+ if ( file_exists( $output ) )
349341 return true;
350342
351343 $cmd = "$abctimidity -Ei$abcMIDIvoice -Ov -id $input";
352 - @exec($cmd, $cmd_out, $ret);
353 - if ($ret != 0 || !@file_exists($output)) {
 344+ @exec( $cmd, $cmd_out, $ret );
 345+ if ( $ret != 0 || !@file_exists( $output ) ) {
354346 $error = "Error: TiMidity++ failed to convert input [$output] (ret: $ret).";
355 - $error .= "Output: " . join("\n", $cmd_out);
 347+ $error .= "Output: " . join( "\n", $cmd_out );
356348 return false;
357349 }
358350
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -1,5 +1,4 @@
22 ABC
3 -descmsg = abcdesc
43 optional = abcabc, abcpdf, abcps, abcmidi, abcvorbis
54
65 Absentee Landlord

Status & tagging log