Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -1855,17 +1855,11 @@ |
1856 | 1856 | } |
1857 | 1857 | |
1858 | 1858 | class SyntaxHighlight_GeSHiMessageGroup extends ExtensionMessageGroup { |
1859 | | - protected $fileExporter = null; |
1860 | 1859 | protected $label = 'Syntax Highlight GeSHi'; |
1861 | 1860 | protected $id = 'ext-syntaxhighlightgeshi'; |
1862 | 1861 | |
1863 | | - protected $functionName = 'efSyntaxHighlight_GeSHiMessages'; |
| 1862 | + protected $arrName = 'messages'; |
1864 | 1863 | protected $messageFile = 'SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.i18n.php'; |
1865 | | - |
1866 | | - protected $exportStart = '\'$CODE\' => array('; |
1867 | | - protected $exportPrefix= ''; |
1868 | | - protected $exportLineP = "\t"; |
1869 | | - protected $exportEnd = '),'; |
1870 | 1864 | } |
1871 | 1865 | |
1872 | 1866 | class TalkHereExtensionGroup extends MultipleFileMessageGroup { |
Index: trunk/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.i18n.php |
— | — | @@ -1,381 +1,371 @@ |
2 | 2 | <?php |
3 | | - |
4 | 3 | /** |
5 | | - * Internationalisation file for the SyntaxHighlight extension |
| 4 | + * Internationalisation file for extension SyntaxHighlight. |
6 | 5 | * |
7 | 6 | * @addtogroup Extensions |
8 | | - */ |
| 7 | +*/ |
9 | 8 | |
10 | | -function efSyntaxHighlight_GeSHiMessages() { |
11 | | - $messages = array( |
| 9 | +$messages = array(); |
12 | 10 | |
13 | | -/* English (Brion Vibber) */ |
14 | | -'en' => array( |
| 11 | +/* English |
| 12 | + * @author Brion Vibber |
| 13 | + */ |
| 14 | +$messages['en'] = array( |
15 | 15 | 'syntaxhighlight-specify' => 'You need to specify a language like this:', |
16 | 16 | 'syntaxhighlight-supported' => 'Supported languages for syntax highlighting:', |
17 | 17 | 'syntaxhighlight-err-loading' => '(error loading supported language list)', |
18 | 18 | 'syntaxhighlight-err-language' => 'Invalid language.', |
19 | 19 | 'geshi.css' => '/* CSS placed here will be applied to GeSHi syntax highlighting */', |
20 | | -), |
| 20 | +); |
21 | 21 | |
22 | | -'ar' => array( |
| 22 | +$messages['ar'] = array( |
23 | 23 | 'syntaxhighlight-specify' => 'يجب عليك تحديد لغة مثل هذه:', |
24 | 24 | 'syntaxhighlight-supported' => 'اللغات المدعومة لتظليل الصياغة:', |
25 | 25 | 'syntaxhighlight-err-loading' => '(خطأ في تحميل قائمة اللغات المدعومة)', |
26 | 26 | 'syntaxhighlight-err-language' => 'لغة غير صحيحة.', |
27 | 27 | 'geshi.css' => '/* الأنماط المتراصة CSS المعروضة هنا ستطبق على GeSHi syntax highlighting */', |
28 | | -), |
| 28 | +); |
29 | 29 | |
30 | 30 | /** Bulgarian (Български) |
31 | 31 | * @author DCLXVI |
32 | 32 | */ |
33 | | -'bg' => array( |
| 33 | +$messages['bg'] = array( |
34 | 34 | 'syntaxhighlight-err-language' => 'Невалиден език.', |
35 | | -), |
| 35 | +); |
36 | 36 | |
37 | 37 | /** Bengali (বাংলা) |
38 | 38 | * @author Zaheen |
39 | 39 | */ |
40 | | -'bn' => array( |
| 40 | +$messages['bn'] = array( |
41 | 41 | 'syntaxhighlight-specify' => 'আপনাকে এভাবে একটি ভাষা নির্দিষ্ট করতে হবে:', |
42 | 42 | 'syntaxhighlight-supported' => 'যেসব ভাষার জন্য সিনট্যাক্স হাইলাইটিং সমর্থিত:', |
43 | 43 | 'syntaxhighlight-err-loading' => '(সমর্থিত ভাষার তালিকা আনতে ত্রুটি)', |
44 | 44 | 'syntaxhighlight-err-language' => 'অবৈধ ভাষা।', |
45 | 45 | 'geshi.css' => '/* এখানে স্থাপিত CSS কোড GeSHi সিনট্যাক্স হাইলাইটিং-এ ব্যবহার করা হবে */', |
46 | | -), |
| 46 | +); |
47 | 47 | |
48 | 48 | /** Catalan (Català) |
49 | 49 | * @author SMP |
50 | 50 | */ |
51 | | -'ca' => array( |
| 51 | +$messages['ca'] = array( |
52 | 52 | 'syntaxhighlight-specify' => "Heu d'especificar un dels llenguatges:", |
53 | 53 | 'syntaxhighlight-supported' => 'Llenguatges admesos per al ressaltament sintàctic:', |
54 | 54 | 'syntaxhighlight-err-loading' => '(error en carregar la llista de llenguatges)', |
55 | 55 | 'syntaxhighlight-err-language' => 'Llenguatge invàlid.', |
56 | | -), |
| 56 | +); |
57 | 57 | |
58 | 58 | /** Czech (Česky) |
59 | 59 | * @author Li-sung |
60 | 60 | */ |
61 | | -'cs' => array( |
| 61 | +$messages['cs'] = array( |
62 | 62 | 'syntaxhighlight-specify' => 'Musíte určit jazyk tímto způsobem:', |
63 | 63 | 'syntaxhighlight-supported' => 'Seznam jazyků, u kterých je podporováno zvýrazňování syntaxe:', |
64 | 64 | 'syntaxhighlight-err-loading' => '(chyba při načítání seznamu podporovaných jazyků)', |
65 | 65 | 'syntaxhighlight-err-language' => 'Neplatný jazyk.', |
66 | 66 | 'geshi.css' => '/* Zde uvedené CSS bude ovlivňovat zvýrazňování syntaxe GeSHi */', |
67 | | -), |
| 67 | +); |
68 | 68 | |
69 | 69 | /* German (Raymond) */ |
70 | | -'de' => array( |
| 70 | +$messages['de'] = array( |
71 | 71 | 'syntaxhighlight-specify' => 'Die gewünschte Sprache muss wie folgt definiert werden:', |
72 | 72 | 'syntaxhighlight-supported' => 'Unterstützte Sprachen für die Syntax-Hervorhebung:', |
73 | 73 | 'syntaxhighlight-err-loading' => '(Fehler beim Laden der Sprachenliste)', |
74 | 74 | 'syntaxhighlight-err-language' => 'Ungültige Sprache.', |
75 | 75 | 'geshi.css' => '/* CSS in dieser MediaWiki-Systemnachricht wird auf die GeSHi-Syntaxhervorhebung angewendet */', |
76 | | -), |
| 76 | +); |
77 | 77 | |
78 | 78 | /** Greek (Ελληνικά) |
79 | 79 | * @author Consta |
80 | 80 | */ |
81 | | -'el' => array( |
| 81 | +$messages['el'] = array( |
82 | 82 | 'syntaxhighlight-err-language' => 'Άκυρη γλώσσα.', |
83 | | -), |
| 83 | +); |
84 | 84 | |
85 | 85 | /* Estonian [[et:Kasutaja:M2s17]] */ |
86 | | -'et' => array( |
| 86 | +$messages['et'] = array( |
87 | 87 | 'syntaxhighlight-specify' => 'Sa pead täpsustama keelt nõnda:', |
88 | 88 | 'syntaxhighlight-supported' => 'Süntaksi esiletoomise on toetatud järgnevates keeltes:', |
89 | 89 | 'syntaxhighlight-err-loading' => '(toetatud keelte loetelu laadimisel esines viga)', |
90 | 90 | 'syntaxhighlight-err-language' => 'antud keel on mittekehtiv', |
91 | 91 | 'geshi.css' => '/* CSS mis on asetatud siia, määrab GeSHi süntaksi esiletoomise stiili */', |
92 | | -), |
| 92 | +); |
93 | 93 | |
94 | | -'eu' => array( |
| 94 | +$messages['eu'] = array( |
95 | 95 | 'syntaxhighlight-err-language' => 'Baliogabeko hizkuntza.', |
96 | | -), |
| 96 | +); |
97 | 97 | |
98 | 98 | # فارسی (Huji) |
99 | | -'fa' => array( |
| 99 | +$messages['fa'] = array( |
100 | 100 | 'syntaxhighlight-specify' => 'شما باید به این شکل زبانی را مشخص کنید:', |
101 | 101 | 'syntaxhighlight-supported' => 'زبانهای پشتیبانیشده برای رنگینکردن دستورات:', |
102 | 102 | 'syntaxhighlight-err-loading' => '(خطا در بارگذاری فهرست زبانهای پشتیبانیشده)', |
103 | 103 | 'syntaxhighlight-err-language' => 'زبان غیرمجاز.', |
104 | 104 | 'geshi.css' => '/* دستورات CSS اینجا توسط سامانه رنگینکردن دستورات GeSHi به کار گرفته میشوند */', |
105 | 105 | |
106 | | -), |
| 106 | +); |
107 | 107 | |
108 | 108 | /** Finnish (Suomi) |
109 | 109 | * @author Nike |
110 | 110 | */ |
111 | | -'fi' => array( |
| 111 | +$messages['fi'] = array( |
112 | 112 | 'syntaxhighlight-specify' => 'Kieli pitää määritellä seuraavasti:', |
113 | 113 | 'syntaxhighlight-supported' => 'Syntaksinkorostus on mahdollista seuraaville kielille:', |
114 | 114 | 'syntaxhighlight-err-loading' => '(tuettujen kielten luettelon lataaminen epäonnistui)', |
115 | 115 | 'syntaxhighlight-err-language' => 'Kelpaamaton kieli.', |
116 | 116 | 'geshi.css' => '/* Tänne lisätty CSS vaikuttaa GeSHi-syntaksinkorostukseen */', |
117 | | -), |
| 117 | +); |
118 | 118 | |
119 | 119 | /** French |
120 | 120 | *@author |
121 | 121 | */ |
122 | | -'fr' => array( |
| 122 | +$messages['fr'] = array( |
123 | 123 | 'syntaxhighlight-specify' => 'Vous devez spécifier un langage comme ceci :', |
124 | 124 | 'syntaxhighlight-supported' => 'Langages supportés pour la coloration syntaxique :', |
125 | 125 | 'syntaxhighlight-err-loading' => '(erreur en chargeant la liste des langages supportés)', |
126 | 126 | 'syntaxhighlight-err-language' => 'Langage invalide', |
127 | 127 | 'geshi.css' => '/* Le code CSS inséré ici sera appliqué par GeSHi pour la coloration syntaxique. */', |
128 | | -), |
| 128 | +); |
129 | 129 | |
130 | | -'gl' => array( |
| 130 | +$messages['gl'] = array( |
131 | 131 | 'syntaxhighlight-specify' => 'Ten que especificar unha linguaxe así:', |
132 | 132 | 'syntaxhighlight-supported' => 'Linguaxes coñecidas para resaltar a sintaxe:', |
133 | 133 | 'syntaxhighlight-err-loading' => '(erro ao cargar a listaxe de linguaxes coñecidas)', |
134 | 134 | 'syntaxhighlight-err-language' => 'Linguaxe non válida.', |
135 | 135 | 'geshi.css' => '/* O CSS colocado aquí será aplicado ao resalte da sintaxe de GeSHi */', |
136 | | -), |
| 136 | +); |
137 | 137 | |
138 | 138 | /* Hebrew (Rotem Liss) */ |
139 | | -'he' => array( |
| 139 | +$messages['he'] = array( |
140 | 140 | 'syntaxhighlight-specify' => 'עליכם לציין שפה באופן הבא:', |
141 | 141 | 'syntaxhighlight-supported' => 'שפות נתמכות:', |
142 | 142 | 'syntaxhighlight-err-loading' => '(שגיאה בטעינת הרשימה של השפות הנתמכות)', |
143 | 143 | 'syntaxhighlight-err-language' => 'שפה שגויה.', |
144 | 144 | 'geshi.css' => '/* סגנונות CSS שייכתבו כאן יפעלו על התגית source */', |
145 | | -), |
| 145 | +); |
146 | 146 | |
147 | | -'hr' => array( |
| 147 | +$messages['hr'] = array( |
148 | 148 | 'syntaxhighlight-specify' => 'Molimo navedite jezik na slijedeći način:', |
149 | 149 | 'syntaxhighlight-supported' => 'Jezici podržani za bojanje sintakse:', |
150 | 150 | 'syntaxhighlight-err-loading' => '(greška pri učitavanju popisa podržanih jezika)', |
151 | 151 | 'syntaxhighlight-err-language' => 'Nevaljani jezik.', |
152 | 152 | 'geshi.css' => '/* CSS kod napisan ovdje će biti primijenjen na GeSHi bojanje sintakse */', |
153 | | -), |
| 153 | +); |
154 | 154 | |
155 | | -'hsb' => array( |
| 155 | +$messages['hsb'] = array( |
156 | 156 | 'syntaxhighlight-specify' => 'Dyrbiš rěč takle definować:', |
157 | 157 | 'syntaxhighlight-supported' => 'Podpěrowane rěče za syntaksowe wuzběhnjenje:', |
158 | 158 | 'syntaxhighlight-err-loading' => '(Zmylk při začitanju lisćiny rěčow)', |
159 | 159 | 'syntaxhighlight-err-language' => 'Njepłaćiwa rěč.', |
160 | 160 | 'geshi.css' => '/* CSS w tutej zdźělence so na syntaksowe wuzběhnjenje GeSHi nałoži */', |
161 | | -), |
| 161 | +); |
162 | 162 | |
163 | | -'hu' => array( |
| 163 | +$messages['hu'] = array( |
164 | 164 | 'syntaxhighlight-specify' => 'Meg kell adnod egy nyelvet az alábbi módon:', |
165 | 165 | 'syntaxhighlight-supported' => 'Támogatott programozási nyelvek:', |
166 | 166 | 'syntaxhighlight-err-loading' => '(hiba történt a támogatott nyelvek listájának betöltése közben)', |
167 | 167 | 'syntaxhighlight-err-language' => 'Érvénytelen nyelv.', |
168 | 168 | 'geshi.css' => '/* Az itt elhelyezett CSS-t fogja alkalmazni a GeSHi szintaxiskiemelő */', |
169 | | -), |
| 169 | +); |
170 | 170 | |
171 | 171 | /* Indonesian (Ivan Lanin) */ |
172 | | -'id' => array( |
| 172 | +$messages['id'] = array( |
173 | 173 | 'syntaxhighlight-specify' => 'Anda harus menentukan suatu bahasa seperti ini:', |
174 | 174 | 'syntaxhighlight-supported' => 'Bahasa-bahasa yang didukung oleh pewarnaan sintaks:', |
175 | 175 | 'syntaxhighlight-err-loading' => '(kesalahan pemuatan daftar bahasa yang didukung)', |
176 | 176 | 'syntaxhighlight-err-language' => 'Bahasa tak sah.', |
177 | | -), |
| 177 | +); |
178 | 178 | |
179 | 179 | /** Italian (Italiano) |
180 | 180 | * @author BrokenArrow |
181 | 181 | */ |
182 | | -'it' => array( |
| 182 | +$messages['it'] = array( |
183 | 183 | 'syntaxhighlight-specify' => 'È necessario specificare un linguaggio in questo modo:', |
184 | 184 | 'syntaxhighlight-supported' => 'Linguaggi di cui è possibile evidenziare la sintassi in colore:', |
185 | 185 | 'syntaxhighlight-err-loading' => "(errore nel caricamento dell'elenco dei linguaggi supportati)", |
186 | 186 | 'syntaxhighlight-err-language' => 'Linguaggio non riconosciuto.', |
187 | 187 | 'geshi.css' => "/* Gli stili CSS inseriti qui si applicano all'evidenziazione di sintassi con GeSHi */", |
188 | | -), |
| 188 | +); |
189 | 189 | |
190 | 190 | /* Japanese */ |
191 | | -'ja' => array( |
| 191 | +$messages['ja'] = array( |
192 | 192 | 'syntaxhighlight-specify' => '以下のように言語を指定する必要があります:', |
193 | 193 | 'syntaxhighlight-supported' => 'シンタックスハイライト機能に対応している言語は以下の通りです:', |
194 | 194 | 'syntaxhighlight-err-loading' => '(対応言語のロード時にエラーが発生しました)', |
195 | 195 | 'syntaxhighlight-err-language' => '不正な言語名です。', |
196 | | -), |
| 196 | +); |
197 | 197 | |
198 | 198 | /* Kazakh Cyrillic (AlefZet) */ |
199 | | -'kk-cyrl' => array( |
| 199 | +$messages['kk-cyrl'] = array( |
200 | 200 | 'syntaxhighlight-specify' => 'Тілді былайша көрсетуіңіз қажет:', |
201 | 201 | 'syntaxhighlight-supported' => 'Синтаксисі көмескі жарықталатын сүйемелденген тілдер:', |
202 | 202 | 'syntaxhighlight-err-loading' => '(сүйемелденген тілдер тізімін жүктеу қатесі)', |
203 | 203 | 'syntaxhighlight-err-language' => 'Жарамсыз тіл.', |
204 | 204 | 'geshi.css' => '/* Мындағы CSS әмірлері GeSHi синтаксисті көмескі жарықтауға қолданылады */', |
205 | | -), |
| 205 | +); |
206 | 206 | |
207 | 207 | /* Kazakh Latin (AlefZet) */ |
208 | | -'kk-latn' => array( |
| 208 | +$messages['kk-latn'] = array( |
209 | 209 | 'syntaxhighlight-specify' => 'Tildi bılaýşa körsetwiñiz qajet:', |
210 | 210 | 'syntaxhighlight-supported' => 'Sïntaksïsi kömeski jarıqtalatın süýemeldengen tilder:', |
211 | 211 | 'syntaxhighlight-err-loading' => '(süýemeldengen tilder tizimin jüktew qatesi)', |
212 | 212 | 'syntaxhighlight-err-language' => 'Jaramsız til.', |
213 | 213 | 'geshi.css' => '/* Mındağı CSS ämirleri GeSHi sïntaksïsti kömeski jarıqtawğa qoldanıladı */', |
214 | | -), |
| 214 | +); |
215 | 215 | |
216 | 216 | /* Kazakh Arabic (AlefZet) */ |
217 | | -'kk-arab' => array( |
| 217 | +$messages['kk-arab'] = array( |
218 | 218 | 'syntaxhighlight-specify' => 'تٸلدٸ بىلايشا كٶرسەتۋٸڭٸز قاجەت:', |
219 | 219 | 'syntaxhighlight-supported' => 'سينتاكسيسٸ كٶمەسكٸ جارىقتالاتىن سٷيەمەلدەنگەن تٸلدەر:', |
220 | 220 | 'syntaxhighlight-err-loading' => '(سٷيەمەلدەنگەن تٸلدەر تٸزٸمٸن جٷكتەۋ قاتەسٸ)', |
221 | 221 | 'syntaxhighlight-err-language' => 'جارامسىز تٸل.', |
222 | 222 | 'geshi.css' => '/* مىنداعى CSS ٵمٸرلەرٸ GeSHi سينتاكسيستٸ كٶمەسكٸ جارىقتاۋعا قولدانىلادى */', |
223 | | -), |
| 223 | +); |
224 | 224 | |
225 | 225 | /** Luxembourgish (Lëtzebuergesch) |
226 | 226 | * @author Robby |
227 | 227 | */ |
228 | | -'lb' => array( |
| 228 | +$messages['lb'] = array( |
229 | 229 | 'syntaxhighlight-specify' => 'Déi gewënschte Sprooch muss esou definéiert ginn:', |
230 | 230 | 'syntaxhighlight-err-language' => 'Ongëlteg Sprooch', |
231 | | -), |
| 231 | +); |
232 | 232 | |
233 | 233 | /* nld / Dutch (Siebrand Mazeland) */ |
234 | | -'nl' => array( |
| 234 | +$messages['nl'] = array( |
235 | 235 | 'syntaxhighlight-specify' => 'Geef een taal als volgt op:', |
236 | 236 | 'syntaxhighlight-supported' => 'Ondersteunde talen voor syntaxismarkering:', |
237 | 237 | 'syntaxhighlight-err-loading' => '(fout bij het laden van de lijst met ondersteunde talen)', |
238 | 238 | 'syntaxhighlight-err-language' => 'Onjuiste taal.', |
239 | 239 | 'geshi.css' => '/* Hier geplaatste CSS wordt toegepast op GeSHi syntax highlighting */', |
240 | | -), |
| 240 | +); |
241 | 241 | |
242 | 242 | /** Norwegian (Norsk (bokmål)) |
243 | 243 | * @author Jon Harald Søby |
244 | 244 | */ |
245 | | -'no' => array( |
| 245 | +$messages['no'] = array( |
246 | 246 | 'syntaxhighlight-specify' => 'Du må oppgi et språk slik:', |
247 | 247 | 'syntaxhighlight-supported' => 'Støttede språk for syntaksutheving:', |
248 | 248 | 'syntaxhighlight-err-loading' => '(feil under last av liste over støttede språk)', |
249 | 249 | 'syntaxhighlight-err-language' => 'Ugyldig språk.', |
250 | 250 | 'geshi.css' => '/* CSS plassert her gjelder GeSHi syntaksutheving */', |
251 | | -), |
| 251 | +); |
252 | 252 | |
253 | 253 | /** Occitan (Occitan) |
254 | 254 | * @author Cedric31 |
255 | 255 | */ |
256 | | -'oc' => array( |
| 256 | +$messages['oc'] = array( |
257 | 257 | 'syntaxhighlight-specify' => 'Devètz especificar un lengatge coma aquò :', |
258 | 258 | 'syntaxhighlight-supported' => 'Lengatges suportats per la coloracion sintaxica :', |
259 | 259 | 'syntaxhighlight-err-loading' => '(error en cargant la lista dels lengatges suportats)', |
260 | 260 | 'syntaxhighlight-err-language' => 'Lengatge invalid.', |
261 | 261 | 'geshi.css' => '/* Lo còde CSS inserit aicí serà aplicat per GeSHi per la coloracion sintaxica. */', |
262 | | -), |
| 262 | +); |
263 | 263 | |
264 | | -'pl' => array( |
| 264 | +$messages['pl'] = array( |
265 | 265 | 'syntaxhighlight-specify' => 'Musisz wybrać język w następujący sposób:', |
266 | 266 | 'syntaxhighlight-supported' => 'Języki obsługiwane w podświetlaniu składni:', |
267 | 267 | 'syntaxhighlight-err-loading' => '(błąd przy wczytywaniu listy obsługiwanych języków)', |
268 | 268 | 'syntaxhighlight-err-language' => 'Niepoprawny język.', |
269 | 269 | 'geshi.css' => '/* CSS umieszczony tutaj będzie zastosowany do kolorowania składni GeSHi */', |
270 | | -), |
| 270 | +); |
271 | 271 | |
272 | | -'pms' => array( |
| 272 | +$messages['pms'] = array( |
273 | 273 | 'syntaxhighlight-specify' => 'A venta specifiché na lenga coma:', |
274 | 274 | 'syntaxhighlight-supported' => 'Lenghe dont as peul fé l\'evidensiassion dla sintassi:', |
275 | 275 | 'syntaxhighlight-err-loading' => '(eror ën cariand la lista dle lenghe dont sintassi as peul evidensié)', |
276 | 276 | 'syntaxhighlight-err-language' => 'Lenga nen bon-a', |
277 | 277 | 'geshi.css' => '/* ël CSS piassà ambelessì a sarà aplicà a l\'evidensiassion ëd sintassi GeSHi */', |
278 | | -), |
| 278 | +); |
279 | 279 | |
280 | 280 | /* Portuguese (Lugusto) */ |
281 | | -'pt' => array( |
| 281 | +$messages['pt'] = array( |
282 | 282 | 'syntaxhighlight-specify' => 'Você precisa especificar uma linguagem, tal como:', |
283 | 283 | 'syntaxhighlight-supported' => 'Linguagens suportadas no realce de sintaxe:', |
284 | 284 | 'syntaxhighlight-err-loading' => '(erro ao carregar a lista de linguagens suportadas)', |
285 | 285 | 'syntaxhighlight-err-language' => 'Linguagem inválida.', |
286 | 286 | 'geshi.css' => '/* O código CSS aqui colocado será aplicado ao realce de sintaxe GeSHi */', |
287 | | -), |
| 287 | +); |
288 | 288 | |
289 | 289 | /* Russian */ |
290 | | -'ru' => array( |
| 290 | +$messages['ru'] = array( |
291 | 291 | 'syntaxhighlight-specify' => 'Вы должны указать язык следующим образом:', |
292 | 292 | 'syntaxhighlight-supported' => 'Поддерживаемые языки:', |
293 | 293 | 'syntaxhighlight-err-loading' => '(невозможно загрузить список языков)', |
294 | 294 | 'syntaxhighlight-err-language' => 'Указан неподдерживаемый язык.', |
295 | 295 | 'geshi.css' => '/* CSS-код, размещённый здесь, будет применён для подсветки синтаксиса GeSHI */', |
296 | | -), |
| 296 | +); |
297 | 297 | |
298 | 298 | /** Slovak (Slovenčina) |
299 | 299 | * @author Helix84 |
300 | 300 | */ |
301 | | -'sk' => array( |
| 301 | +$messages['sk'] = array( |
302 | 302 | 'syntaxhighlight-specify' => 'Musíte uviesť jazyk takto:', |
303 | 303 | 'syntaxhighlight-supported' => 'Jazyky, pre ktoré je zvýrazňovanie syntaxe podporované:', |
304 | 304 | 'syntaxhighlight-err-loading' => '(chyba pri načítaní zoznamu podporovaných jazykov)', |
305 | 305 | 'syntaxhighlight-err-language' => 'Neplatný jazyk.', |
306 | 306 | 'geshi.css' => '/* Tu umiestnené CSS sa použije pre zvýrazňovanie syntaxe GeSHi */', |
307 | | -), |
| 307 | +); |
308 | 308 | |
309 | 309 | /** Seeltersk (Seeltersk) |
310 | 310 | * @author Pyt |
311 | 311 | */ |
312 | | -'stq' => array( |
| 312 | +$messages['stq'] = array( |
313 | 313 | 'syntaxhighlight-specify' => 'Ju wonskede Sproake mout as foulget definierd wäide:', |
314 | 314 | 'syntaxhighlight-supported' => 'Unnerstöände Sproaken foar ju Syntax-Betoonenge:', |
315 | 315 | 'syntaxhighlight-err-loading' => '(Failer bie dät Leeden fon ju Sproakenlieste)', |
316 | 316 | 'syntaxhighlight-err-language' => 'Uungultige Sproake.', |
317 | 317 | 'geshi.css' => '/* CSS in disse MediaWiki-Systemättergjucht wäd ap ju GeSHi-Syntaxbetoonenge anwoand */', |
318 | | -), |
| 318 | +); |
319 | 319 | |
320 | 320 | /* Swedish */ |
321 | | -'sv' => array( |
| 321 | +$messages['sv'] = array( |
322 | 322 | 'syntaxhighlight-specify' => 'Du måste ange vilket språk som används, så här:', |
323 | 323 | 'syntaxhighlight-supported' => 'Det finns stöd för följande språk:', |
324 | 324 | 'syntaxhighlight-err-loading' => '(fel vid laddning av listan över stödda språk)', |
325 | 325 | 'syntaxhighlight-err-language' => 'Ogiltigt språk.', |
326 | 326 | 'geshi.css' => '/* CSS som skrivs här används för syntax highlighting med GeSHI */', |
327 | | -), |
| 327 | +); |
328 | 328 | |
329 | 329 | /** Volapük (Volapük) |
330 | 330 | * @author Malafaya |
331 | 331 | */ |
332 | | -'vo' => array( |
| 332 | +$messages['vo'] = array( |
333 | 333 | 'syntaxhighlight-err-language' => 'Pük no dabinöl.', |
334 | | -), |
| 334 | +); |
335 | 335 | |
336 | 336 | /* Cantonese (Shinjiman) */ |
337 | | -'yue' => array( |
| 337 | +$messages['yue'] = array( |
338 | 338 | 'syntaxhighlight-specify' => '你需要指定一種語言,好似咁:', |
339 | 339 | 'syntaxhighlight-supported' => '語法醒目標示所支援嘅語言:', |
340 | 340 | 'syntaxhighlight-err-loading' => '(支援語言清單載入錯誤)', |
341 | 341 | 'syntaxhighlight-err-language' => '無效嘅語言。', |
342 | 342 | 'geshi.css' => '/* 放響呢度嘅CSS會以GeSHi語法醒目提示方式顯示 */', |
343 | | -), |
| 343 | +); |
344 | 344 | |
345 | 345 | /* Chinese (Simplified) (Shinjiman) */ |
346 | | -'zh-hans' => array( |
| 346 | +$messages['zh-hans'] = array( |
347 | 347 | 'syntaxhighlight-specify' => '您需要指定一种语言,像这样:', |
348 | 348 | 'syntaxhighlight-supported' => '语法高亮所支持的语言:', |
349 | 349 | 'syntaxhighlight-err-loading' => '(支持语言列表载入错误)', |
350 | 350 | 'syntaxhighlight-err-language' => '无效的语言。', |
351 | 351 | 'geshi.css' => '/* 放在这里的CSS会以GeSHi语法高亮方式显示 */', |
352 | | -), |
| 352 | +); |
353 | 353 | |
354 | 354 | /* Chinese (Traditional) (Shinjiman) */ |
355 | | -'zh-hant' => array( |
| 355 | +$messages['zh-hant'] = array( |
356 | 356 | 'syntaxhighlight-specify' => '您需要指定一種語言,像這樣:', |
357 | 357 | 'syntaxhighlight-supported' => '語法醒目標示所支援的語言:', |
358 | 358 | 'syntaxhighlight-err-loading' => '(支援語言清單載入錯誤)', |
359 | 359 | 'syntaxhighlight-err-language' => '無效的語言。', |
360 | 360 | 'geshi.css' => '/* 放在這裏的CSS會以GeSHi語法醒目提示方式顯示 */', |
361 | | -), |
| 361 | +); |
362 | 362 | |
363 | | - ); |
364 | | - |
365 | | - /* Kazakh fallbacks */ |
366 | | - $messages['kk-kz'] = $messages['kk-cyrl']; |
367 | | - $messages['kk-tr'] = $messages['kk-latn']; |
368 | | - $messages['kk-cn'] = $messages['kk-arab']; |
369 | | - $messages['kk'] = $messages['kk-cyrl']; |
370 | | - |
371 | | - /* Chinese defaults, fallback to zh-hans or zh-hant */ |
372 | | - $messages['zh'] = $messages['zh-hans']; |
373 | | - $messages['zh-cn'] = $messages['zh-hans']; |
374 | | - $messages['zh-hk'] = $messages['zh-hant']; |
375 | | - $messages['zh-sg'] = $messages['zh-hans']; |
376 | | - $messages['zh-tw'] = $messages['zh-hant']; |
377 | | - /* Cantonese default, fallback to yue */ |
378 | | - $messages['zh-yue'] = $messages['yue']; |
379 | | - |
380 | | - return $messages; |
381 | | - |
382 | | -} |
| 363 | +$messages['kk-kz'] = $messages['kk-cyrl']; |
| 364 | +$messages['kk-tr'] = $messages['kk-latn']; |
| 365 | +$messages['kk-cn'] = $messages['kk-arab']; |
| 366 | +$messages['kk'] = $messages['kk-cyrl']; |
| 367 | +$messages['zh'] = $messages['zh-hans']; |
| 368 | +$messages['zh-cn'] = $messages['zh-hans']; |
| 369 | +$messages['zh-hk'] = $messages['zh-hant']; |
| 370 | +$messages['zh-sg'] = $messages['zh-hans']; |
| 371 | +$messages['zh-tw'] = $messages['zh-hant']; |
| 372 | +$messages['zh-yue'] = $messages['yue']; |
Index: trunk/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php |
— | — | @@ -43,14 +43,16 @@ |
44 | 44 | |
45 | 45 | $wgExtensionCredits['parserhook']['SyntaxHighlight_GeSHi'] = array( |
46 | 46 | 'name' => 'SyntaxHighlight', |
| 47 | + 'version' => '2008-01-11', |
47 | 48 | 'author' => array( 'Brion Vibber', 'Tim Starling', 'Rob Church' ), |
48 | 49 | 'description' => 'Provides syntax highlighting using [http://qbnz.com/highlighter/ GeSHi Highlighter]', |
49 | 50 | 'url' => 'http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi', |
50 | 51 | ); |
51 | 52 | |
52 | | -$wgAutoloadClasses['SyntaxHighlight_GeSHi'] = dirname( __FILE__ ) . '/SyntaxHighlight_GeSHi.class.php'; |
| 53 | +$dir = dirname(__FILE__) . '/'; |
| 54 | +$wgExtensionMessagesFiles['SyntaxHighlight_GeSHi'] = $dir . 'SyntaxHighlight_GeSHi.i18n.php'; |
| 55 | +$wgAutoloadClasses['SyntaxHighlight_GeSHi'] = $dir . 'SyntaxHighlight_GeSHi.class.php'; |
53 | 56 | $wgHooks['ShowRawCssJs'][] = 'SyntaxHighlight_GeSHi::viewHook'; |
54 | | -$wgHooks['LoadAllMessages'][] = 'SyntaxHighlight_GeSHi::loadMessages'; |
55 | 57 | $wgExtensionFunctions[] = 'efSyntaxHighlight_GeSHiSetup'; |
56 | 58 | |
57 | 59 | /** |
— | — | @@ -59,4 +61,4 @@ |
60 | 62 | function efSyntaxHighlight_GeSHiSetup() { |
61 | 63 | global $wgParser; |
62 | 64 | $wgParser->setHook( 'source', array( 'SyntaxHighlight_GeSHi', 'parserHook' ) ); |
63 | | -} |
\ No newline at end of file |
| 65 | +} |
Index: trunk/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | * Has GeSHi been initialised this session? |
8 | 8 | */ |
9 | 9 | private static $initialised = false; |
10 | | - |
| 10 | + |
11 | 11 | /** |
12 | 12 | * List of languages available to GeSHi |
13 | 13 | */ |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | return '<div dir="ltr" style="text-align: left;">' . $out . '</div>'; |
69 | 69 | } |
70 | 70 | } |
71 | | - |
| 71 | + |
72 | 72 | /** |
73 | 73 | * Hook into Article::view() to provide syntax highlighting for |
74 | 74 | * custom CSS and JavaScript pages |
— | — | @@ -115,7 +115,7 @@ |
116 | 116 | $geshi->enable_keyword_links( false ); |
117 | 117 | return $geshi; |
118 | 118 | } |
119 | | - |
| 119 | + |
120 | 120 | /** |
121 | 121 | * Prepare a CSS snippet suitable for use as a ParserOutput/OutputPage |
122 | 122 | * head item |
— | — | @@ -142,7 +142,7 @@ |
143 | 143 | } |
144 | 144 | return implode( "\n", $css ); |
145 | 145 | } |
146 | | - |
| 146 | + |
147 | 147 | /** |
148 | 148 | * Format an error message |
149 | 149 | * |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | . self::formatLanguages(); |
161 | 161 | return "<div style=\"border: solid red 1px; padding: .5em;\">{$html}</div>"; |
162 | 162 | } |
163 | | - |
| 163 | + |
164 | 164 | /** |
165 | 165 | * Format the list of supported languages |
166 | 166 | * |
— | — | @@ -177,7 +177,7 @@ |
178 | 178 | return '<p>' . htmlspecialchars( wfMsgForContent( 'syntaxhighlight-err-loading' ) ) . '</p>'; |
179 | 179 | } |
180 | 180 | } |
181 | | - |
| 181 | + |
182 | 182 | /** |
183 | 183 | * Get the list of supported languages |
184 | 184 | * |
— | — | @@ -200,28 +200,11 @@ |
201 | 201 | */ |
202 | 202 | private static function initialise() { |
203 | 203 | if( !self::$initialised ) { |
204 | | - self::loadMessages(); |
| 204 | + wfLoadExtensionMessages( 'SyntaxHighlight_GeSHi' ); |
205 | 205 | if( !class_exists( 'GeSHi' ) ) |
206 | 206 | require( 'geshi/geshi.php' ); |
207 | 207 | self::$initialised = true; |
208 | 208 | } |
209 | 209 | return true; |
210 | 210 | } |
211 | | - |
212 | | - /** |
213 | | - * Load extension messages |
214 | | - * |
215 | | - * @return bool |
216 | | - */ |
217 | | - public static function loadMessages() { |
218 | | - static $done = false; |
219 | | - if( !$done ) { |
220 | | - global $wgMessageCache; |
221 | | - require_once( dirname( __FILE__ ) . '/SyntaxHighlight_GeSHi.i18n.php' ); |
222 | | - foreach( efSyntaxHighlight_GeSHiMessages() as $lang => $messages ) |
223 | | - $wgMessageCache->addMessages( $messages, $lang ); |
224 | | - } |
225 | | - return true; |
226 | | - } |
227 | | - |
228 | | -} |
\ No newline at end of file |
| 211 | +} |