r80419 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80418‎ | r80419 | r80420 >
Date:20:01, 16 January 2011
Author:ialex
Status:deferred
Tags:
Comment:
Converted CustomToolbar extension to use $wgExtensionMessagesFiles instead of the pre-1.11 method
Modified paths:
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)
  • /trunk/extensions/uniwiki/CustomToolbar/CustomToolbar.i18n.php (modified) (history)
  • /trunk/extensions/uniwiki/CustomToolbar/CustomToolbar.php (modified) (history)

Diff [purge]

Index: trunk/extensions/uniwiki/CustomToolbar/CustomToolbar.i18n.php
@@ -2,9 +2,9 @@
33 /* Internationalisation file for CustomToolbar extension.
44 */
55
6 -$wgCustomToolbarMessages = array();
 6+$messages = array();
77
8 -$wgCustomToolbarMessages['en'] = array(
 8+$messages['en'] = array(
99 'ct-desc' => 'Adds an extensible toolbar',
1010
1111 'ct_bold_sample' => "Bold text",
@@ -67,7 +67,7 @@
6868 * @author Purodha
6969 * @author Siebrand
7070 */
71 -$wgCustomToolbarMessages['qqq'] = array(
 71+$messages['qqq'] = array(
7272 'ct-desc' => '{{desc}}',
7373 'ct_internal_caption' => '{{Identical|Internal link}}',
7474 'ct_external_caption' => '{{Identical|External link}}',
@@ -80,14 +80,14 @@
8181 /** Abkhazian (Аҧсуа)
8282 * @author Temuri rajavi
8383 */
84 -$wgCustomToolbarMessages['ab'] = array(
 84+$messages['ab'] = array(
8585 'ct_user_user' => 'Алахәыла',
8686 );
8787
8888 /** Afrikaans (Afrikaans)
8989 * @author Naudefj
9090 */
91 -$wgCustomToolbarMessages['af'] = array(
 91+$messages['af'] = array(
9292 'ct_bold_sample' => 'Vetgedrukte teks',
9393 'ct_bold_tip_ins' => 'Voeg vetgedrukte teks by',
9494 'ct_bold_tip_wrap' => 'Maak hierdie teks vetdruk',
@@ -126,7 +126,7 @@
127127 /** Gheg Albanian (Gegë)
128128 * @author Mdupont
129129 */
130 -$wgCustomToolbarMessages['aln'] = array(
 130+$messages['aln'] = array(
131131 'ct-desc' => 'Shton një toolbar zgjeruar',
132132 'ct_bold_sample' => 'Tekst i trashë',
133133 'ct_bold_tip_ins' => 'Vendos tekst bold',
@@ -174,7 +174,7 @@
175175 /** Amharic (አማርኛ)
176176 * @author Codex Sinaiticus
177177 */
178 -$wgCustomToolbarMessages['am'] = array(
 178+$messages['am'] = array(
179179 'ct_bold_sample' => 'ጨለማ ጽሕፈት',
180180 'ct_italic_sample' => 'ያንጋደደ ጽሕፈት',
181181 'ct_external_caption' => 'የውጭ መያያዣ',
@@ -187,7 +187,7 @@
188188 * @author OsamaK
189189 * @author Ouda
190190 */
191 -$wgCustomToolbarMessages['ar'] = array(
 191+$messages['ar'] = array(
192192 'ct-desc' => 'يضيف شريط أدوات ممدد',
193193 'ct_bold_sample' => 'نص عريض',
194194 'ct_bold_tip_ins' => 'إدراج نص عريض',
@@ -235,7 +235,7 @@
236236 /** Aramaic (ܐܪܡܝܐ)
237237 * @author Basharh
238238 */
239 -$wgCustomToolbarMessages['arc'] = array(
 239+$messages['arc'] = array(
240240 'ct_bold_sample' => 'ܟܬܒܬܐ ܥܒܝܬܐ',
241241 'ct_bold_caption' => 'ܥܒܝܬܐ',
242242 'ct_italic_sample' => 'ܟܬܒܬܐ ܦܠܝܡܬܐ',
@@ -258,7 +258,7 @@
259259 * @author Ouda
260260 * @author Ramsis II
261261 */
262 -$wgCustomToolbarMessages['arz'] = array(
 262+$messages['arz'] = array(
263263 'ct-desc' => 'بيضيف توول بار قابل للتمدد',
264264 'ct_bold_sample' => 'نص عريض',
265265 'ct_bold_tip_ins' => 'إدراج نص عريض',
@@ -309,7 +309,7 @@
310310 * @author Jim-by
311311 * @author Red Winged Duck
312312 */
313 -$wgCustomToolbarMessages['be-tarask'] = array(
 313+$messages['be-tarask'] = array(
314314 'ct-desc' => 'Дадае пашыраную панэль',
315315 'ct_bold_sample' => 'Тлусты тэкст',
316316 'ct_bold_tip_ins' => 'Уставіць тлусты тэкст',
@@ -358,7 +358,7 @@
359359 /** Bulgarian (Български)
360360 * @author DCLXVI
361361 */
362 -$wgCustomToolbarMessages['bg'] = array(
 362+$messages['bg'] = array(
363363 'ct_bold_sample' => 'Получер',
364364 'ct_bold_tip_ins' => 'Вмъкване на текст в получер',
365365 'ct_bold_caption' => 'Получер',
@@ -389,7 +389,7 @@
390390 /** Bengali (বাংলা)
391391 * @author Bellayet
392392 */
393 -$wgCustomToolbarMessages['bn'] = array(
 393+$messages['bn'] = array(
394394 'ct_bold_sample' => 'গাঢ় লেখা',
395395 'ct_bold_tip_ins' => 'গাঢ় লেখা যোগ',
396396 'ct_bold_tip_wrap' => 'এই লেখাকে গাঢ় কর',
@@ -415,7 +415,7 @@
416416 /** Breton (Brezhoneg)
417417 * @author Fulup
418418 */
419 -$wgCustomToolbarMessages['br'] = array(
 419+$messages['br'] = array(
420420 'ct-desc' => 'Ouzhpennañ a ra ur varrenn ostilhoù astennidik',
421421 'ct_bold_sample' => 'Testenn dev',
422422 'ct_bold_tip_ins' => "Ensoc'hañ un destenn e tev",
@@ -463,7 +463,7 @@
464464 /** Bosnian (Bosanski)
465465 * @author CERminator
466466 */
467 -$wgCustomToolbarMessages['bs'] = array(
 467+$messages['bs'] = array(
468468 'ct-desc' => 'Dodaje proširivu alatnu traku',
469469 'ct_bold_sample' => 'Podebljan tekst',
470470 'ct_bold_tip_ins' => 'Ubaci podebljan tekst',
@@ -513,7 +513,7 @@
514514 * @author Solde
515515 * @author Toniher
516516 */
517 -$wgCustomToolbarMessages['ca'] = array(
 517+$messages['ca'] = array(
518518 'ct_bold_sample' => 'Text en negreta',
519519 'ct_bold_tip_ins' => 'Insereix text en negreta',
520520 'ct_bold_tip_wrap' => 'Fes aquest text en negreta',
@@ -540,14 +540,14 @@
541541 /** Chechen (Нохчийн)
542542 * @author Sasan700
543543 */
544 -$wgCustomToolbarMessages['ce'] = array(
 544+$messages['ce'] = array(
545545 'ct_user_user' => 'Декъашхо',
546546 );
547547
548548 /** Sorani (کوردی)
549549 * @author Marmzok
550550 */
551 -$wgCustomToolbarMessages['ckb'] = array(
 551+$messages['ckb'] = array(
552552 'ct_bold_sample' => 'دەقی تۆخ',
553553 'ct_bold_tip_ins' => 'دەقی تۆخ دابنێ',
554554 'ct_bold_tip_wrap' => 'ئەم دەقە تۆخ بکە',
@@ -580,7 +580,7 @@
581581 * @author Kuvaly
582582 * @author Matěj Grabovský
583583 */
584 -$wgCustomToolbarMessages['cs'] = array(
 584+$messages['cs'] = array(
585585 'ct-desc' => 'Přidává rozširitelný panel nástrojů',
586586 'ct_bold_sample' => 'Tučný text',
587587 'ct_bold_tip_ins' => 'Vložit tučný text',
@@ -630,7 +630,7 @@
631631 * @author Melancholie
632632 * @author Umherirrender
633633 */
634 -$wgCustomToolbarMessages['de'] = array(
 634+$messages['de'] = array(
635635 'ct-desc' => 'Fügt eine erweiterbare Werkzeugleiste hinzu',
636636 'ct_bold_sample' => 'Fetter Text',
637637 'ct_bold_tip_ins' => 'Fetten Text einfügen',
@@ -679,14 +679,14 @@
680680 /** German (formal address) (Deutsch (Sie-Form))
681681 * @author Imre
682682 */
683 -$wgCustomToolbarMessages['de-formal'] = array(
 683+$messages['de-formal'] = array(
684684 'ct_popupblocked' => 'Das Hochladen-Popup wurde am Öffnen gehindert. Bitte überprüfen Sie Ihren Popup-Blocker.',
685685 );
686686
687687 /** Lower Sorbian (Dolnoserbski)
688688 * @author Michawiki
689689 */
690 -$wgCustomToolbarMessages['dsb'] = array(
 690+$messages['dsb'] = array(
691691 'ct-desc' => 'Pśidawa rozšyrjabnu rědowu kšomu',
692692 'ct_bold_sample' => 'Tucny tekst',
693693 'ct_bold_tip_ins' => 'Tucny tekst zasunuś',
@@ -733,7 +733,7 @@
734734 );
735735
736736 /** Ewe (Eʋegbe) */
737 -$wgCustomToolbarMessages['ee'] = array(
 737+$messages['ee'] = array(
738738 'ct_submit' => 'Yi',
739739 );
740740
@@ -742,7 +742,7 @@
743743 * @author Omnipaedista
744744 * @author ZaDiak
745745 */
746 -$wgCustomToolbarMessages['el'] = array(
 746+$messages['el'] = array(
747747 'ct-desc' => 'Προσθέτει μία επεκτάσιμη εργαλειοθήκη',
748748 'ct_bold_sample' => 'Έντονο κείμενο',
749749 'ct_bold_tip_ins' => 'Εισαγωγή έντονου κειμένου',
@@ -793,7 +793,7 @@
794794 * @author Michawiki
795795 * @author Yekrats
796796 */
797 -$wgCustomToolbarMessages['eo'] = array(
 797+$messages['eo'] = array(
798798 'ct-desc' => 'Aldonas etendeblan ilobreton',
799799 'ct_bold_sample' => 'Grasa teksto',
800800 'ct_bold_tip_ins' => 'Enmeti grasan tekston',
@@ -843,7 +843,7 @@
844844 * @author Crazymadlover
845845 * @author Imre
846846 */
847 -$wgCustomToolbarMessages['es'] = array(
 847+$messages['es'] = array(
848848 'ct-desc' => 'Agregar una barra de herramientas extensible',
849849 'ct_bold_sample' => 'Texto en negrita',
850850 'ct_bold_tip_ins' => 'Insertar texto en negrita',
@@ -892,7 +892,7 @@
893893 * @author Avjoska
894894 * @author Pikne
895895 */
896 -$wgCustomToolbarMessages['et'] = array(
 896+$messages['et'] = array(
897897 'ct_bold_sample' => 'Rasvane kiri',
898898 'ct_bold_tip_ins' => 'Sisesta rasvane tekst',
899899 'ct_bold_tip_wrap' => 'Tee see kiri paksuks',
@@ -924,7 +924,7 @@
925925 * @author An13sa
926926 * @author Kobazulo
927927 */
928 -$wgCustomToolbarMessages['eu'] = array(
 928+$messages['eu'] = array(
929929 'ct_bold_sample' => 'Testu beltza',
930930 'ct_bold_tip_ins' => 'Testu beltza txertatu',
931931 'ct_bold_tip_wrap' => 'Testu hau belztu',
@@ -967,7 +967,7 @@
968968 * @author Nike
969969 * @author Str4nd
970970 */
971 -$wgCustomToolbarMessages['fi'] = array(
 971+$messages['fi'] = array(
972972 'ct-desc' => 'Lisää laajennettavan työkalupalkin.',
973973 'ct_bold_sample' => 'Lihavoitu teksti',
974974 'ct_bold_tip_ins' => 'Lisää lihavoitu teksti',
@@ -1020,7 +1020,7 @@
10211021 * @author Sherbrooke
10221022 * @author Verdy p
10231023 */
1024 -$wgCustomToolbarMessages['fr'] = array(
 1024+$messages['fr'] = array(
10251025 'ct-desc' => 'Ajoute une barre d’outils extensible',
10261026 'ct_bold_sample' => 'Texte gras',
10271027 'ct_bold_tip_ins' => 'Insérer un texte en gras',
@@ -1069,7 +1069,7 @@
10701070 * @author Cedric31
10711071 * @author ChrisPtDe
10721072 */
1073 -$wgCustomToolbarMessages['frp'] = array(
 1073+$messages['frp'] = array(
10741074 'ct-desc' => 'Apond una bârra d’outils èxtensibla.',
10751075 'ct_bold_sample' => 'Tèxto en grâs',
10761076 'ct_bold_tip_ins' => 'Entrebetar un tèxto en grâs',
@@ -1118,7 +1118,7 @@
11191119 /** Irish (Gaeilge)
11201120 * @author Alison
11211121 */
1122 -$wgCustomToolbarMessages['ga'] = array(
 1122+$messages['ga'] = array(
11231123 'ct_bold_sample' => 'Cló trom',
11241124 'ct_bold_caption' => 'Trom',
11251125 );
@@ -1126,7 +1126,7 @@
11271127 /** Galician (Galego)
11281128 * @author Toliño
11291129 */
1130 -$wgCustomToolbarMessages['gl'] = array(
 1130+$messages['gl'] = array(
11311131 'ct-desc' => 'Engade unha caixa de ferramentas extensible',
11321132 'ct_bold_sample' => 'Texto en negra',
11331133 'ct_bold_tip_ins' => 'Inserir texto en negra',
@@ -1176,7 +1176,7 @@
11771177 * @author Crazymadlover
11781178 * @author Omnipaedista
11791179 */
1180 -$wgCustomToolbarMessages['grc'] = array(
 1180+$messages['grc'] = array(
11811181 'ct_external_caption' => 'Ἐξωτερικὸς σύνδεσμος',
11821182 'ct_submit' => 'Ἰέναι!',
11831183 'ct_user_user' => 'Χρώμενος',
@@ -1186,7 +1186,7 @@
11871187 /** Swiss German (Alemannisch)
11881188 * @author Als-Holder
11891189 */
1190 -$wgCustomToolbarMessages['gsw'] = array(
 1190+$messages['gsw'] = array(
11911191 'ct-desc' => 'Fiegt e uuswytbari Wärchzyygleischte zue',
11921192 'ct_bold_sample' => 'Fette Text',
11931193 'ct_bold_tip_ins' => 'Fette Text yyfiege',
@@ -1235,7 +1235,7 @@
12361236 /** Gujarati (ગુજરાતી)
12371237 * @author Dineshjk
12381238 */
1239 -$wgCustomToolbarMessages['gu'] = array(
 1239+$messages['gu'] = array(
12401240 'ct_user_sample' => 'સભ્ય નામ',
12411241 );
12421242
@@ -1243,7 +1243,7 @@
12441244 * @author Rotemliss
12451245 * @author YaronSh
12461246 */
1247 -$wgCustomToolbarMessages['he'] = array(
 1247+$messages['he'] = array(
12481248 'ct-desc' => 'הוספת סרגל כלים הניתן להרחבה',
12491249 'ct_bold_sample' => 'טקסט מודגש',
12501250 'ct_bold_tip_ins' => 'הוספת טקסט מודגש',
@@ -1292,7 +1292,7 @@
12931293 /** Croatian (Hrvatski)
12941294 * @author SpeedyGonsales
12951295 */
1296 -$wgCustomToolbarMessages['hr'] = array(
 1296+$messages['hr'] = array(
12971297 'ct_image_tip' => 'Umetnite sliku',
12981298 'ct_image_caption' => 'Dodajte sliku',
12991299 'ct_attachment_tip' => 'Umetanje privitaka',
@@ -1303,7 +1303,7 @@
13041304 /** Upper Sorbian (Hornjoserbsce)
13051305 * @author Michawiki
13061306 */
1307 -$wgCustomToolbarMessages['hsb'] = array(
 1307+$messages['hsb'] = array(
13081308 'ct-desc' => 'Přidawa rozšerjomnu gratowu lajstu',
13091309 'ct_bold_sample' => 'Tučny tekst',
13101310 'ct_bold_tip_ins' => 'Tučny tekst zasunyć',
@@ -1353,7 +1353,7 @@
13541354 * @author Dani
13551355 * @author Glanthor Reviol
13561356 */
1357 -$wgCustomToolbarMessages['hu'] = array(
 1357+$messages['hu'] = array(
13581358 'ct-desc' => 'Bővíthető eszköztár',
13591359 'ct_bold_sample' => 'Félkövér szöveg',
13601360 'ct_bold_tip_ins' => 'Félkövér szöveg beillesztése',
@@ -1402,7 +1402,7 @@
14031403 /** Interlingua (Interlingua)
14041404 * @author McDutchie
14051405 */
1406 -$wgCustomToolbarMessages['ia'] = array(
 1406+$messages['ia'] = array(
14071407 'ct-desc' => 'Adde un barra extensibile de instrumentos',
14081408 'ct_bold_sample' => 'Texto grasse',
14091409 'ct_bold_tip_ins' => 'Inserer texto grasse',
@@ -1451,7 +1451,7 @@
14521452 /** Indonesian (Bahasa Indonesia)
14531453 * @author Bennylin
14541454 */
1455 -$wgCustomToolbarMessages['id'] = array(
 1455+$messages['id'] = array(
14561456 'ct-desc' => 'Tambahkan batang penyuntingan berpengaya',
14571457 'ct_bold_sample' => 'Teks cetak tebal',
14581458 'ct_bold_tip_ins' => 'Masukkan teks cetak tebal',
@@ -1499,7 +1499,7 @@
15001500 /** Igbo (Igbo)
15011501 * @author Ukabia
15021502 */
1503 -$wgCustomToolbarMessages['ig'] = array(
 1503+$messages['ig'] = array(
15041504 'ct_bold_caption' => 'Shí íke',
15051505 'ct_external_caption' => 'Jikodo di èzí',
15061506 'ct_nowiki_caption' => 'Wiki àdíghị',
@@ -1514,7 +1514,7 @@
15151515 * @author Darth Kule
15161516 * @author Melos
15171517 */
1518 -$wgCustomToolbarMessages['it'] = array(
 1518+$messages['it'] = array(
15191519 'ct-desc' => 'Aggiunge una toolbar estendibile',
15201520 'ct_bold_sample' => 'Testo in grassetto',
15211521 'ct_bold_tip_ins' => 'Inserisci testo in grassetto',
@@ -1565,7 +1565,7 @@
15661566 * @author Whym
15671567 * @author 青子守歌
15681568 */
1569 -$wgCustomToolbarMessages['ja'] = array(
 1569+$messages['ja'] = array(
15701570 'ct-desc' => '拡張可能なツールバーを追加する',
15711571 'ct_bold_sample' => '太字テキスト',
15721572 'ct_bold_tip_ins' => '太字テキストを挿入する',
@@ -1613,7 +1613,7 @@
16141614 /** Javanese (Basa Jawa)
16151615 * @author Pras
16161616 */
1617 -$wgCustomToolbarMessages['jv'] = array(
 1617+$messages['jv'] = array(
16181618 'ct_bold_sample' => 'Tèks cithak kandel',
16191619 'ct_bold_tip_ins' => 'Seselaké tèks cithak kandel',
16201620 'ct_bold_tip_wrap' => 'Gawénen tèks iki cithak kandel',
@@ -1660,7 +1660,7 @@
16611661 * @author Thearith
16621662 * @author គីមស៊្រុន
16631663 */
1664 -$wgCustomToolbarMessages['km'] = array(
 1664+$messages['km'] = array(
16651665 'ct-desc' => 'បន្ថែម​របារឧបករណ៍​ដែល​អាច​ដាក់​បាន',
16661666 'ct_bold_sample' => 'អក្សរ​ដិត',
16671667 'ct_bold_tip_ins' => 'បញ្ចូល​អក្សរ​ដិត',
@@ -1707,14 +1707,14 @@
17081708 /** Kannada (ಕನ್ನಡ)
17091709 * @author Nayvik
17101710 */
1711 -$wgCustomToolbarMessages['kn'] = array(
 1711+$messages['kn'] = array(
17121712 'ct_submit' => 'ಹೋಗು!',
17131713 );
17141714
17151715 /** Colognian (Ripoarisch)
17161716 * @author Purodha
17171717 */
1718 -$wgCustomToolbarMessages['ksh'] = array(
 1718+$messages['ksh'] = array(
17191719 'ct-desc' => 'Deiht en ußboubare Reih met Werkzüch dobei.',
17201720 'ct_bold_sample' => '{{int:bold sample}}',
17211721 'ct_bold_tip_ins' => '{{int:bold tip}} enfööje',
@@ -1764,7 +1764,7 @@
17651765 /** Luxembourgish (Lëtzebuergesch)
17661766 * @author Robby
17671767 */
1768 -$wgCustomToolbarMessages['lb'] = array(
 1768+$messages['lb'] = array(
17691769 'ct-desc' => 'Eng erweiderbar Toolbar derbäisetzen',
17701770 'ct_bold_sample' => 'Fetten Text',
17711771 'ct_bold_tip_ins' => 'Fetten Text drasetzen',
@@ -1813,7 +1813,7 @@
18141814 /** Lazuri (Lazuri)
18151815 * @author Bombola
18161816 */
1817 -$wgCustomToolbarMessages['lzz'] = array(
 1817+$messages['lzz'] = array(
18181818 'ct_bold_sample' => "Mçxu nç'ara",
18191819 'ct_bold_caption' => 'Mçxu',
18201820 'ct_submit' => 'İgzali!',
@@ -1822,7 +1822,7 @@
18231823 /** Macedonian (Македонски)
18241824 * @author Bjankuloski06
18251825 */
1826 -$wgCustomToolbarMessages['mk'] = array(
 1826+$messages['mk'] = array(
18271827 'ct-desc' => 'Додава алатник на отворање',
18281828 'ct_bold_sample' => 'Дебел текст',
18291829 'ct_bold_tip_ins' => 'Вметни дебел текст',
@@ -1870,7 +1870,7 @@
18711871 /** Mongolian (Монгол)
18721872 * @author Chinneeb
18731873 */
1874 -$wgCustomToolbarMessages['mn'] = array(
 1874+$messages['mn'] = array(
18751875 'ct_submit' => 'Явах',
18761876 'ct_user_sample' => 'Хэрэглэгчийн нэр',
18771877 );
@@ -1878,14 +1878,14 @@
18791879 /** Maltese (Malti)
18801880 * @author Chrisportelli
18811881 */
1882 -$wgCustomToolbarMessages['mt'] = array(
 1882+$messages['mt'] = array(
18831883 'ct_submit' => 'Mur!',
18841884 );
18851885
18861886 /** Erzya (Эрзянь)
18871887 * @author Botuzhaleny-sodamo
18881888 */
1889 -$wgCustomToolbarMessages['myv'] = array(
 1889+$messages['myv'] = array(
18901890 'ct_bold_sample' => 'Эчкстэ текст',
18911891 'ct_italic_sample' => 'Комавтонь текст',
18921892 'ct_italic_tip_ins' => 'Совавтомс комавтонь текст',
@@ -1899,7 +1899,7 @@
19001900 /** Dutch (Nederlands)
19011901 * @author Siebrand
19021902 */
1903 -$wgCustomToolbarMessages['nl'] = array(
 1903+$messages['nl'] = array(
19041904 'ct-desc' => 'Voegt een uitbreidbare toolbar toe',
19051905 'ct_bold_sample' => 'Vetgedrukte tekst',
19061906 'ct_bold_tip_ins' => 'Vetgedrukte tekt invoegen',
@@ -1948,7 +1948,7 @@
19491949 /** Norwegian Nynorsk (‪Norsk (nynorsk)‬)
19501950 * @author Harald Khan
19511951 */
1952 -$wgCustomToolbarMessages['nn'] = array(
 1952+$messages['nn'] = array(
19531953 'ct-desc' => 'Legg til ein verktymeny som kan bli utvida',
19541954 'ct_bold_sample' => 'Feit tekst',
19551955 'ct_bold_tip_ins' => 'Set inn feit tekst',
@@ -1997,7 +1997,7 @@
19981998 /** Norwegian (bokmål)‬ (‪Norsk (bokmål)‬)
19991999 * @author Nghtwlkr
20002000 */
2001 -$wgCustomToolbarMessages['no'] = array(
 2001+$messages['no'] = array(
20022002 'ct-desc' => 'Legger til en verktøymeny som kan utvides',
20032003 'ct_bold_sample' => 'Fet tekst',
20042004 'ct_bold_tip_ins' => 'Sett inn fet tekst',
@@ -2045,7 +2045,7 @@
20462046 /** Occitan (Occitan)
20472047 * @author Cedric31
20482048 */
2049 -$wgCustomToolbarMessages['oc'] = array(
 2049+$messages['oc'] = array(
20502050 'ct-desc' => 'Apondre una barra d’espleches extensibla',
20512051 'ct_bold_sample' => 'Tèxte en gras',
20522052 'ct_bold_tip_ins' => 'Inserir un tèxte en gras',
@@ -2094,7 +2094,7 @@
20952095 /** Ossetic (Иронау)
20962096 * @author Amikeco
20972097 */
2098 -$wgCustomToolbarMessages['os'] = array(
 2098+$messages['os'] = array(
20992099 'ct_external_caption' => 'Æддаг æрвитæн',
21002100 'ct_math_caption' => 'Формулæ',
21012101 );
@@ -2102,7 +2102,7 @@
21032103 /** Deitsch (Deitsch)
21042104 * @author Xqt
21052105 */
2106 -$wgCustomToolbarMessages['pdc'] = array(
 2106+$messages['pdc'] = array(
21072107 'ct_external_caption' => 'Gewebbgleecher',
21082108 'ct_nowiki_caption' => 'Ken Wiki',
21092109 'ct_submit' => 'Go!',
@@ -2116,7 +2116,7 @@
21172117 * @author Leinad
21182118 * @author Sp5uhe
21192119 */
2120 -$wgCustomToolbarMessages['pl'] = array(
 2120+$messages['pl'] = array(
21212121 'ct-desc' => 'Dodaje rozszerzony pasek narzędzi',
21222122 'ct_bold_sample' => 'Pogrubiony tekst',
21232123 'ct_bold_tip_ins' => 'Wstaw pogrubiony tekst',
@@ -2166,7 +2166,7 @@
21672167 * @author Borichèt
21682168 * @author Dragonòt
21692169 */
2170 -$wgCustomToolbarMessages['pms'] = array(
 2170+$messages['pms'] = array(
21712171 'ct-desc' => "A gionta na bara d'utiss estendìbil",
21722172 'ct_bold_sample' => 'Test an grassèt',
21732173 'ct_bold_tip_ins' => 'Anserì un test an grassèt',
@@ -2214,7 +2214,7 @@
22152215 /** Western Punjabi (پنجابی)
22162216 * @author Khalid Mahmood
22172217 */
2218 -$wgCustomToolbarMessages['pnb'] = array(
 2218+$messages['pnb'] = array(
22192219 'ct_italic_caption' => 'ترچھا',
22202220 'ct_image_caption' => 'مورت لاؤ',
22212221 'ct_math_caption' => 'فارمولا',
@@ -2225,7 +2225,7 @@
22262226 /** Pashto (پښتو)
22272227 * @author Ahmed-Najib-Biabani-Ibrahimkhel
22282228 */
2229 -$wgCustomToolbarMessages['ps'] = array(
 2229+$messages['ps'] = array(
22302230 'ct_bold_sample' => 'زغرد متن',
22312231 'ct_bold_caption' => 'زغرد',
22322232 'ct_italic_sample' => 'د رېوندليک متن',
@@ -2247,7 +2247,7 @@
22482248 * @author Malafaya
22492249 * @author Waldir
22502250 */
2251 -$wgCustomToolbarMessages['pt'] = array(
 2251+$messages['pt'] = array(
22522252 'ct-desc' => 'Adiciona uma barra de ferramentas extensível',
22532253 'ct_bold_sample' => 'Texto a negrito',
22542254 'ct_bold_tip_ins' => 'Inserir texto a negrito',
@@ -2297,7 +2297,7 @@
22982298 * @author Giro720
22992299 * @author Luckas Blade
23002300 */
2301 -$wgCustomToolbarMessages['pt-br'] = array(
 2301+$messages['pt-br'] = array(
23022302 'ct-desc' => 'Adiciona uma barra de ferramentas extensível',
23032303 'ct_bold_sample' => 'Texto em negrito',
23042304 'ct_bold_tip_ins' => 'Digitar texto em negrito',
@@ -2347,7 +2347,7 @@
23482348 * @author KlaudiuMihaila
23492349 * @author Stelistcristi
23502350 */
2351 -$wgCustomToolbarMessages['ro'] = array(
 2351+$messages['ro'] = array(
23522352 'ct-desc' => 'Adaugă o bară de unelte extensibilă',
23532353 'ct_bold_sample' => 'Text aldin',
23542354 'ct_bold_tip_ins' => 'Inserează text aldin',
@@ -2392,7 +2392,7 @@
23932393 /** Tarandíne (Tarandíne)
23942394 * @author Joetaras
23952395 */
2396 -$wgCustomToolbarMessages['roa-tara'] = array(
 2396+$messages['roa-tara'] = array(
23972397 'ct-desc' => "Aggiunge 'na barre de le struminde estensibbele",
23982398 'ct_bold_sample' => 'Teste in grascette',
23992399 'ct_bold_tip_ins' => 'Sckaffe teste in grascette',
@@ -2432,7 +2432,7 @@
24332433 * @author Ferrer
24342434 * @author Александр Сигачёв
24352435 */
2436 -$wgCustomToolbarMessages['ru'] = array(
 2436+$messages['ru'] = array(
24372437 'ct-desc' => 'Добавляет растяжимую панель',
24382438 'ct_bold_sample' => 'Жирный текст',
24392439 'ct_bold_tip_ins' => 'Вставить жирный текст',
@@ -2481,14 +2481,14 @@
24822482 /** Rusyn (Русиньскый)
24832483 * @author Gazeb
24842484 */
2485 -$wgCustomToolbarMessages['rue'] = array(
 2485+$messages['rue'] = array(
24862486 'ct_user_user' => 'Хоснователь',
24872487 );
24882488
24892489 /** Sicilian (Sicilianu)
24902490 * @author Melos
24912491 */
2492 -$wgCustomToolbarMessages['scn'] = array(
 2492+$messages['scn'] = array(
24932493 'ct_bold_sample' => 'Testu n grassettu',
24942494 'ct_bold_tip_ins' => 'Nserisci testu n grassettu',
24952495 'ct_bold_tip_wrap' => 'Fai stu testu grassettu',
@@ -2531,7 +2531,7 @@
25322532 /** Sinhala (සිංහල)
25332533 * @author Calcey
25342534 */
2535 -$wgCustomToolbarMessages['si'] = array(
 2535+$messages['si'] = array(
25362536 'ct-desc' => 'විතන්‍ය මෙවලම් තීරුවක් එකතු කරයි',
25372537 'ct_bold_sample' => 'තද පැහැ පෙළ',
25382538 'ct_bold_tip_ins' => 'තද පැහැ පෙළ ඇතුල් කරන්න',
@@ -2579,7 +2579,7 @@
25802580 /** Slovak (Slovenčina)
25812581 * @author Helix84
25822582 */
2583 -$wgCustomToolbarMessages['sk'] = array(
 2583+$messages['sk'] = array(
25842584 'ct-desc' => 'Pridáva rozšíriteľný panel nástrojov',
25852585 'ct_bold_sample' => 'Hrubý text',
25862586 'ct_bold_tip_ins' => 'Vložiť hrubý text',
@@ -2628,7 +2628,7 @@
26292629 /** Slovenian (Slovenščina)
26302630 * @author Dbc334
26312631 */
2632 -$wgCustomToolbarMessages['sl'] = array(
 2632+$messages['sl'] = array(
26332633 'ct-desc' => 'Doda razširljivo orodno vrstico',
26342634 'ct_bold_sample' => 'Krepko besedilo',
26352635 'ct_bold_tip_ins' => 'Vstavi krepko besedilo',
@@ -2677,7 +2677,7 @@
26782678 * @author Rancher
26792679 * @author Михајло Анђелковић
26802680 */
2681 -$wgCustomToolbarMessages['sr-ec'] = array(
 2681+$messages['sr-ec'] = array(
26822682 'ct-desc' => 'Додаје проширив бар са алаткама',
26832683 'ct_bold_sample' => 'Подебљан текст',
26842684 'ct_bold_tip_ins' => 'Убаци подебљан текст',
@@ -2723,7 +2723,7 @@
27242724 /** Serbian Latin ekavian (Srpski (latinica))
27252725 * @author Michaello
27262726 */
2727 -$wgCustomToolbarMessages['sr-el'] = array(
 2727+$messages['sr-el'] = array(
27282728 'ct-desc' => 'Dodaje proširiv bar sa alatkama',
27292729 'ct_bold_sample' => 'Podebljan tekst',
27302730 'ct_bold_tip_ins' => 'Ubaci podebljan tekst',
@@ -2769,7 +2769,7 @@
27702770 /** Seeltersk (Seeltersk)
27712771 * @author Pyt
27722772 */
2773 -$wgCustomToolbarMessages['stq'] = array(
 2773+$messages['stq'] = array(
27742774 'ct-desc' => 'Föiget ne ärwiederboare Reewelieste bietou',
27752775 'ct_bold_sample' => 'Fatten Text',
27762776 'ct_bold_tip_ins' => 'Fatten Text ienföigje',
@@ -2819,7 +2819,7 @@
28202820 * @author Najami
28212821 * @author Ozp
28222822 */
2823 -$wgCustomToolbarMessages['sv'] = array(
 2823+$messages['sv'] = array(
28242824 'ct-desc' => 'Lägger till en utökad verktygslåda',
28252825 'ct_bold_sample' => 'Fet text',
28262826 'ct_bold_tip_ins' => 'Sätt in fet text',
@@ -2867,7 +2867,7 @@
28682868 /** Silesian (Ślůnski)
28692869 * @author Ozi64
28702870 */
2871 -$wgCustomToolbarMessages['szl'] = array(
 2871+$messages['szl'] = array(
28722872 'ct_internal_sample' => 'MjanoZajty',
28732873 );
28742874
@@ -2875,7 +2875,7 @@
28762876 * @author Mahir78
28772877 * @author TRYPPN
28782878 */
2879 -$wgCustomToolbarMessages['ta'] = array(
 2879+$messages['ta'] = array(
28802880 'ct_bold_sample' => 'தடித்த எழுத்து',
28812881 'ct_bold_tip_ins' => 'தடித்த எழுத்தை உள்ளிடு',
28822882 'ct_bold_tip_wrap' => 'இந்த வார்த்தையை தடிமனாக்கு',
@@ -2912,7 +2912,7 @@
29132913 /** Telugu (తెలుగు)
29142914 * @author Veeven
29152915 */
2916 -$wgCustomToolbarMessages['te'] = array(
 2916+$messages['te'] = array(
29172917 'ct_bold_sample' => 'బొద్దు పాఠ్యం',
29182918 'ct_bold_tip_ins' => 'బొద్దు పాఠ్యాన్ని చేర్చండి',
29192919 'ct_bold_tip_wrap' => 'ఈ పాఠ్యాన్ని బొద్దుగా చేయండి',
@@ -2952,7 +2952,7 @@
29532953 /** Tajik (Cyrillic) (Тоҷикӣ (Cyrillic))
29542954 * @author Ibrahim
29552955 */
2956 -$wgCustomToolbarMessages['tg-cyrl'] = array(
 2956+$messages['tg-cyrl'] = array(
29572957 'ct_external_caption' => 'Пайванди беруна',
29582958 'ct_image_tip' => 'Иловаи як акс',
29592959 'ct_image_caption' => 'Иловаи акс',
@@ -2962,7 +2962,7 @@
29632963 /** Tajik (Latin) (Тоҷикӣ (Latin))
29642964 * @author Liangent
29652965 */
2966 -$wgCustomToolbarMessages['tg-latn'] = array(
 2966+$messages['tg-latn'] = array(
29672967 'ct_external_caption' => 'Pajvandi beruna',
29682968 'ct_image_tip' => 'Ilovai jak aks',
29692969 'ct_image_caption' => 'Ilovai aks',
@@ -2972,7 +2972,7 @@
29732973 /** Thai (ไทย)
29742974 * @author Woraponboonkerd
29752975 */
2976 -$wgCustomToolbarMessages['th'] = array(
 2976+$messages['th'] = array(
29772977 'ct_bold_sample' => 'ตัวอักษรหนา',
29782978 'ct_bold_tip_ins' => 'ใส่ตัวอักษรหนา',
29792979 'ct_bold_tip_wrap' => 'ทำเป็นตัวอักษรหนา',
@@ -2986,7 +2986,7 @@
29872987 /** Turkmen (Türkmençe)
29882988 * @author Hanberke
29892989 */
2990 -$wgCustomToolbarMessages['tk'] = array(
 2990+$messages['tk'] = array(
29912991 'ct_bold_sample' => 'Goýy tekst',
29922992 'ct_bold_tip_ins' => 'Goýy tekst giriz',
29932993 'ct_bold_tip_wrap' => 'Teksti goýy et',
@@ -3017,7 +3017,7 @@
30183018 /** Tagalog (Tagalog)
30193019 * @author AnakngAraw
30203020 */
3021 -$wgCustomToolbarMessages['tl'] = array(
 3021+$messages['tl'] = array(
30223022 'ct-desc' => 'Nagdaragdag ng isang nauunat/napapahabang balansang o bareta ng mga kagamitan',
30233023 'ct_bold_sample' => 'Makapal na panitik',
30243024 'ct_bold_tip_ins' => 'Magsingit ng makapal na panitik',
@@ -3067,7 +3067,7 @@
30683068 * @author Karduelis
30693069 * @author Vito Genovese
30703070 */
3071 -$wgCustomToolbarMessages['tr'] = array(
 3071+$messages['tr'] = array(
30723072 'ct_bold_sample' => 'Kalın metin',
30733073 'ct_bold_tip_ins' => 'Kalın metin gir',
30743074 'ct_bold_caption' => 'Kalın',
@@ -3097,7 +3097,7 @@
30983098 /** ئۇيغۇرچە (ئۇيغۇرچە)
30993099 * @author Alfredie
31003100 */
3101 -$wgCustomToolbarMessages['ug-arab'] = array(
 3101+$messages['ug-arab'] = array(
31023102 'ct_submit' => 'كۆچۈش!',
31033103 'ct_user_sample' => 'ئىشلەتكۇچى ئىسمى',
31043104 );
@@ -3105,7 +3105,7 @@
31063106 /** Uighur (Latin) (ئۇيغۇرچە / Uyghurche‎ (Latin))
31073107 * @author Jose77
31083108 */
3109 -$wgCustomToolbarMessages['ug-latn'] = array(
 3109+$messages['ug-latn'] = array(
31103110 'ct_submit' => 'Köchüsh!',
31113111 'ct_user_sample' => 'Ishletkuchi ismi',
31123112 );
@@ -3115,7 +3115,7 @@
31163116 * @author Aleksandrit
31173117 * @author Prima klasy4na
31183118 */
3119 -$wgCustomToolbarMessages['uk'] = array(
 3119+$messages['uk'] = array(
31203120 'ct-desc' => 'Додає розширювану панель',
31213121 'ct_bold_sample' => 'Жирний текст',
31223122 'ct_bold_tip_ins' => 'Вставити жирний текст',
@@ -3164,7 +3164,7 @@
31653165 /** Veps (Vepsan kel')
31663166 * @author Игорь Бродский
31673167 */
3168 -$wgCustomToolbarMessages['vep'] = array(
 3168+$messages['vep'] = array(
31693169 'ct-desc' => 'Ližadab azegišt, kudambad sab levitada',
31703170 'ct_bold_sample' => 'Lihavoitud tekst',
31713171 'ct_bold_tip_ins' => 'Ližada lihavoitud tekst',
@@ -3213,7 +3213,7 @@
32143214 * @author Minh Nguyen
32153215 * @author Vinhtantran
32163216 */
3217 -$wgCustomToolbarMessages['vi'] = array(
 3217+$messages['vi'] = array(
32183218 'ct-desc' => 'Thêm thanh công cụ mở rộng',
32193219 'ct_bold_sample' => 'Văn bản in đậm',
32203220 'ct_bold_tip_ins' => 'Chèn chữ đậm',
@@ -3262,7 +3262,7 @@
32633263 * @author Malafaya
32643264 * @author Smeira
32653265 */
3266 -$wgCustomToolbarMessages['vo'] = array(
 3266+$messages['vo'] = array(
32673267 'ct_bold_sample' => 'Vödem bigik',
32683268 'ct_bold_tip_ins' => 'Nüpladön vödemi bigik',
32693269 'ct_bold_tip_wrap' => 'Bigükön vödemi at',
@@ -3301,7 +3301,7 @@
33023302 /** Yiddish (ייִדיש)
33033303 * @author פוילישער
33043304 */
3305 -$wgCustomToolbarMessages['yi'] = array(
 3305+$messages['yi'] = array(
33063306 'ct_internal_sample' => 'בלאַטנאָמען',
33073307 'ct_math_caption' => 'פֿארמל',
33083308 'ct_nowiki_caption' => 'קיין וויקי',
@@ -3314,7 +3314,7 @@
33153315 * @author Gzdavidwong
33163316 * @author Liangent
33173317 */
3318 -$wgCustomToolbarMessages['zh-hans'] = array(
 3318+$messages['zh-hans'] = array(
33193319 'ct-desc' => '增加了可扩展工具栏',
33203320 'ct_bold_sample' => '粗体文字',
33213321 'ct_bold_tip_ins' => '插入粗体文字',
@@ -3366,7 +3366,7 @@
33673367 * @author Mark85296341
33683368 * @author Wrightbus
33693369 */
3370 -$wgCustomToolbarMessages['zh-hant'] = array(
 3370+$messages['zh-hant'] = array(
33713371 'ct-desc' => '增加了可擴展工具欄',
33723372 'ct_bold_sample' => '粗體文字',
33733373 'ct_bold_tip_ins' => '插入粗體文字',
Index: trunk/extensions/uniwiki/CustomToolbar/CustomToolbar.php
@@ -29,13 +29,8 @@
3030 );
3131
3232 /* ---- INTERNATIONALIZATION ---- */
 33+$wgExtensionMessagesFiles['CustomToolbar'] = dirname( __FILE__ ) . '/CustomToolbar.i18n.php';
3334
34 -require_once( 'CustomToolbar.i18n.php' );
35 -
36 -// add the internationalization function to the list
37 -global $wgExtensionFunctions;
38 -$wgExtensionFunctions[] = 'CustomToolbar_i18n';
39 -
4035 //add file extensions for acceptable images and attachments
4136 global $wgFileExtensions;
4237 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'mp3', 'wav', 'doc', 'xls', 'csv', 'bmp', 'ppt', 'pdf', 'txt', 'rm', 'mov', 'avi' );
@@ -45,16 +40,6 @@
4641 //these will get media links
4742 //$ct_uploadable_attachments = array('ogg', 'mp3', 'wav', 'doc', 'xls', 'csv', 'bmp', 'ppt', 'pdf', 'txt', 'rm', 'mov', 'avi' );
4843
49 -
50 -
51 -function CustomToolbar_i18n() {
52 - // add this extension's messages to the message cache
53 - global $wgMessageCache, $wgCustomToolbarMessages;
54 - foreach( $wgCustomToolbarMessages as $lang => $messages )
55 - $wgMessageCache->addMessages($messages, $lang);
56 -}
57 -
58 -
5944 $wgHooks['EditPage::showEditForm:initial'][] = "CustomToolbar_turnOffToolbar";
6045 function CustomToolbar_turnOffToolbar() {
6146 global $wgUser, $wgHooks;
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -1380,7 +1380,6 @@
13811381 Uniwiki - Custom Toolbar
13821382 id = ext-uniwiki-customtoolbar
13831383 file = uniwiki/CustomToolbar/CustomToolbar.i18n.php
1384 -var = wgCustomToolbarMessages
13851384 descmsg = ct-desc
13861385 ignored = ct_external_sample
13871386

Status & tagging log