Index: trunk/extensions/ImageMap/ImageMap_body.php |
— | — | @@ -17,11 +17,6 @@ |
18 | 18 | * |
19 | 19 | */ |
20 | 20 | |
21 | | -require_once( dirname( __FILE__ ) . '/ImageMap.i18n.php' ); |
22 | | -global $wgMessageCache; |
23 | | -foreach( efImageMapMessages() as $lang => $messages ) |
24 | | - $wgMessageCache->addMessages( $messages, $lang ); |
25 | | - |
26 | 21 | class ImageMap { |
27 | 22 | static public $id = 0; |
28 | 23 | |
— | — | @@ -33,6 +28,7 @@ |
34 | 29 | |
35 | 30 | static function render( $input, $params, $parser ) { |
36 | 31 | global $wgScriptPath, $wgUser, $wgUrlProtocols, $wgNoFollowLinks; |
| 32 | + wfLoadExtensionMessages( 'ImageMap' ); |
37 | 33 | |
38 | 34 | $lines = explode( "\n", $input ); |
39 | 35 | |
Index: trunk/extensions/ImageMap/ImageMap.i18n.php |
— | — | @@ -1,14 +1,16 @@ |
2 | 2 | <?php |
3 | | - |
4 | 3 | /** |
5 | | - * Internationalisation file for ImageMap extension |
6 | | - */ |
| 4 | + * Internationalisation file for extension FindSpam. |
| 5 | + * |
| 6 | + * @addtogroup Extensions |
| 7 | +*/ |
7 | 8 | |
8 | | -function efImageMapMessages() { |
9 | | - $messages = array( |
| 9 | +$messages = array(); |
10 | 10 | |
11 | | -/* English (Tim Starling) */ |
12 | | -'en' => array( |
| 11 | +/* English |
| 12 | + * @author Tim Starling |
| 13 | + */ |
| 14 | +$messages['en'] = array( |
13 | 15 | 'imagemap_no_image' => '<imagemap>: must specify an image in the first line', |
14 | 16 | 'imagemap_invalid_image' => '<imagemap>: image is invalid or non-existent', |
15 | 17 | 'imagemap_no_link' => '<imagemap>: no valid link was found at the end of line $1', |
— | — | @@ -22,9 +24,9 @@ |
23 | 25 | 'imagemap_description' => 'About this image', |
24 | 26 | # Note to translators: keep the same order |
25 | 27 | 'imagemap_desc_types' => 'top-right, bottom-right, bottom-left, top-left, none', |
26 | | -), |
| 28 | +); |
27 | 29 | |
28 | | -'ar' => array( |
| 30 | +$messages['ar'] = array( |
29 | 31 | 'imagemap_no_image' => '<imagemap>: يجب تحديد صورة في الخط الأول', |
30 | 32 | 'imagemap_invalid_image' => '<imagemap>: الصورة غير صحيحة أو غير موجودة', |
31 | 33 | 'imagemap_no_link' => '<imagemap>: لم يتم العثور على وصلة صحيحة في نهاية السطر $1', |
— | — | @@ -35,16 +37,16 @@ |
36 | 38 | 'imagemap_invalid_coord' => '<imagemap>: إحداثي غير صحيح عند الخط $1، يجب أن يكون رقما', |
37 | 39 | 'imagemap_invalid_desc' => '<imagemap>: محدد وصف غير صحيح، يجب أن يكون واحدا من: <tt>$1</tt>', |
38 | 40 | 'imagemap_description' => 'حول هذه الصورة', |
39 | | -), |
| 41 | +); |
40 | 42 | |
41 | | -'bcl' => array( |
| 43 | +$messages['bcl'] = array( |
42 | 44 | 'imagemap_description' => 'Manónongod sa retratong ini', |
43 | | -), |
| 45 | +); |
44 | 46 | |
45 | 47 | /** Bulgarian (Български) |
46 | 48 | * @author Spiritia |
47 | 49 | */ |
48 | | -'bg' => array( |
| 50 | +$messages['bg'] = array( |
49 | 51 | 'imagemap_no_image' => '<imagemap>: трябва да се укаже изображение на първия ред', |
50 | 52 | 'imagemap_invalid_image' => '<imagemap>: невалидно или липсващо изображение', |
51 | 53 | 'imagemap_no_link' => '<imagemap>: липсва валидна препратка в края на ред $1', |
— | — | @@ -53,12 +55,12 @@ |
54 | 56 | 'imagemap_unrecognised_shape' => '<imagemap>: неразпозната фигура на ред $1; всеки ред трябва да са започва с някое от следните: default (по подразбиране), rect (правоъгълник), circle (кръг) или poly (многоъгълник)', |
55 | 57 | 'imagemap_invalid_coord' => '<imagemap>: невалидна координата на ред $1, трябва да бъде число', |
56 | 58 | 'imagemap_description' => 'Информация за изображението', |
57 | | -), |
| 59 | +); |
58 | 60 | |
59 | 61 | /** Czech (Česky) |
60 | 62 | * @author Li-sung |
61 | 63 | */ |
62 | | -'cs' => array( |
| 64 | +$messages['cs'] = array( |
63 | 65 | 'imagemap_no_image' => '<imagemap>: na první řádce musí být určen obrázek', |
64 | 66 | 'imagemap_invalid_image' => '<imagemap>: soubor není platný nebo neexistuje', |
65 | 67 | 'imagemap_no_link' => '<imagemap>: nebyl nalezen žádný platný odkaz na konci řádku $1', |
— | — | @@ -69,10 +71,10 @@ |
70 | 72 | 'imagemap_invalid_coord' => '<imagemap>: neplatné souřadnice na řádku $1, je očekáváno číslo', |
71 | 73 | 'imagemap_invalid_desc' => '<imagemap>: neplatné určení oblasti desc, je očekávána jedna z možností: <tt>$1</tt>', |
72 | 74 | 'imagemap_description' => 'O tomto obrázku', |
73 | | -), |
| 75 | +); |
74 | 76 | |
75 | 77 | /* Danish (Wegge) */ |
76 | | -'da' => array( |
| 78 | +$messages['da'] = array( |
77 | 79 | 'imagemap_no_image' => '<imagemap>: Der skal angives et billednavn i første linje', |
78 | 80 | 'imagemap_invalid_image' => '<imagemap>: Billedet er ugyldigt eller findes ikke', |
79 | 81 | 'imagemap_no_link' => '<imagemap>: Fandt ikke en brugbar henvisning i slutningen af linje $1', |
— | — | @@ -86,10 +88,10 @@ |
87 | 89 | 'imagemap_description' => 'Om dette billede', |
88 | 90 | # Note to translators: keep the same order |
89 | 91 | 'imagemap_desc_types' => 'top-højre, bund-højre, bund-venstre, top-venstre, ingen', |
90 | | -), |
| 92 | +); |
91 | 93 | |
92 | 94 | /* German (Raymond) */ |
93 | | -'de' => array( |
| 95 | +$messages['de'] = array( |
94 | 96 | 'imagemap_no_image' => '<imagemap>-Fehler: In der ersten Zeile muss ein Bild angegeben werden', |
95 | 97 | 'imagemap_invalid_image' => '<imagemap>-Fehler: Bild ist ungültig oder nicht vorhanden', |
96 | 98 | 'imagemap_no_link' => '<imagemap>-Fehler: Am Ende von Zeile $1 wurde kein gültiger Link gefunden', |
— | — | @@ -103,18 +105,18 @@ |
104 | 106 | 'imagemap_description' => 'Über dieses Bild', |
105 | 107 | # Note to translators: keep the same order |
106 | 108 | 'imagemap_desc_types' => 'oben rechts, unten rechts, unten links, oben links, keine', |
107 | | -), |
| 109 | +); |
108 | 110 | |
109 | | -'el' => array( |
| 111 | +$messages['el'] = array( |
110 | 112 | 'imagemap_description' => 'Σχετικά με αυτήν την εικόνα', |
111 | | -), |
| 113 | +); |
112 | 114 | |
113 | | -'ext' => array( |
| 115 | +$messages['ext'] = array( |
114 | 116 | 'imagemap_description' => 'Al tentu esta imahin', |
115 | | -), |
| 117 | +); |
116 | 118 | |
117 | 119 | # فارسی (Huji) |
118 | | -'fa' => array( |
| 120 | +$messages['fa'] = array( |
119 | 121 | 'imagemap_no_image' => '<imagemap>: باید در اولین سطر یک تصویر را مشخص کنید', |
120 | 122 | 'imagemap_invalid_image' => '<imagemap>: تصویر غیرمجاز است یا وجود ندارد', |
121 | 123 | 'imagemap_no_link' => '<imagemap>: هیچ پیوند مجازی تا انتهای سطر $1 پیدا نشد', |
— | — | @@ -126,10 +128,10 @@ |
127 | 129 | 'imagemap_invalid_desc' => '<imagemap>: توضیحات غیرمجاز، باید یکی از این موارد باشد: <tt>$1</tt>', |
128 | 130 | 'imagemap_description' => 'دربارهٔ این تصویر', |
129 | 131 | |
130 | | -), |
| 132 | +); |
131 | 133 | |
132 | 134 | /* French */ |
133 | | -'fr' => array( |
| 135 | +$messages['fr'] = array( |
134 | 136 | 'imagemap_no_image' => '<imagemap> : vous devez spécifier une image dans la première ligne', |
135 | 137 | 'imagemap_invalid_image' => '<imagemap> : l’image est invalide ou n’existe pas', |
136 | 138 | 'imagemap_no_link' => '<imagemap> : aucun lien valide n’a été trouvé à la fin de la ligne $1', |
— | — | @@ -141,12 +143,12 @@ |
142 | 144 | 'imagemap_invalid_coord' => '<imagemap> : coordonnée invalide à la ligne $1, doit être un nombre', |
143 | 145 | 'imagemap_invalid_desc' => '<imagemap> : paramètre « desc » invalide, les paramètres possibles sont : $1', |
144 | 146 | 'imagemap_description' => 'À propos de cette image', |
145 | | -), |
| 147 | +); |
146 | 148 | |
147 | 149 | /** Franco-Provençal (Arpetan) |
148 | 150 | * @author ChrisPtDe |
149 | 151 | */ |
150 | | -'frp' => array( |
| 152 | +$messages['frp'] = array( |
151 | 153 | 'imagemap_no_image' => '<imagemap> : vos dête spècefiar una émâge dens la premiére legne', |
152 | 154 | 'imagemap_invalid_image' => '<imagemap> : l’émâge est envalida ou ègziste pas', |
153 | 155 | 'imagemap_no_link' => '<imagemap> : nion lim valido at étâ trovâ a la fin de la legne $1', |
— | — | @@ -157,13 +159,13 @@ |
158 | 160 | 'imagemap_invalid_coord' => '<imagemap> : coordonâ envalida a la legne $1, dêt étre un nombro', |
159 | 161 | 'imagemap_invalid_desc' => '<imagemap> : paramètre « dèsc » envalido, los paramètres possiblos sont : <tt>$1</tt>', |
160 | 162 | 'imagemap_description' => 'A propôs de ceta émâge', |
161 | | -), |
| 163 | +); |
162 | 164 | |
163 | 165 | /** Galician (Galego) |
164 | 166 | * @author Alma |
165 | 167 | * @author Xosé |
166 | 168 | */ |
167 | | -'gl' => array( |
| 169 | +$messages['gl'] = array( |
168 | 170 | 'imagemap_no_image' => '<imagemap>: debe especificar unha imaxe na primeira liña', |
169 | 171 | 'imagemap_invalid_image' => '<imagemap>: a imaxe non é válida ou non existe', |
170 | 172 | 'imagemap_no_link' => '<imagemap>: foi atopada unha ligazón non válida ao final da liña $1', |
— | — | @@ -174,15 +176,15 @@ |
175 | 177 | 'imagemap_invalid_coord' => '<imagemap>: coordinada non válida na liña $1, debe ser un número', |
176 | 178 | 'imagemap_invalid_desc' => '<imagemap>: especificación desc non válida, debe ser un de: <tt>$1</tt>', |
177 | 179 | 'imagemap_description' => 'Sobre esta imaxe', |
178 | | -), |
| 180 | +); |
179 | 181 | |
180 | 182 | /** Gujarati (ગુજરાતી) */ |
181 | | -'gu' => array( |
| 183 | +$messages['gu'] = array( |
182 | 184 | 'imagemap_description' => 'આ ચિત્ર વિષે', |
183 | | -), |
| 185 | +); |
184 | 186 | |
185 | 187 | /* Hebrew (Rotem Liss) */ |
186 | | -'he' => array( |
| 188 | +$messages['he'] = array( |
187 | 189 | 'imagemap_no_image' => '<imagemap>: יש לציין תמונה בשורה הראשונה', |
188 | 190 | 'imagemap_invalid_image' => '<imagemap>: התמונה שגויה או שאינה קיימת', |
189 | 191 | 'imagemap_no_link' => '<imagemap>: לא נמצא קישור תקף בסוף שורה $1', |
— | — | @@ -194,9 +196,9 @@ |
195 | 197 | 'imagemap_invalid_coord' => '<imagemap>: קוארדינאטה שגויה בשורה $1, היא חייבת להיות מספר', |
196 | 198 | 'imagemap_invalid_desc' => '<imagemap>: הגדרת פרמטר desc שגויה, צריך להיות אחד מהבאים: $1', |
197 | 199 | 'imagemap_description' => 'אודות התמונה', |
198 | | -), |
| 200 | +); |
199 | 201 | |
200 | | -'hr' => array( |
| 202 | +$messages['hr'] = array( |
201 | 203 | 'imagemap_no_image' => '<imagemap>: morate navesti ime slike koju rabite u prvom retku', |
202 | 204 | 'imagemap_invalid_image' => '<imagemap>: slika ne postoji ili je krivog tipa', |
203 | 205 | 'imagemap_no_link' => '<imagemap>: nema (ispravne) poveznice na kraju retka $1', |
— | — | @@ -207,9 +209,9 @@ |
208 | 210 | 'imagemap_invalid_coord' => '<imagemap>: nevaljane koordinate u retku $1, mora biti broj', |
209 | 211 | 'imagemap_invalid_desc' => '<imagemap>: nevaljan opis, mora biti jedan od: <tt>$1</tt>', |
210 | 212 | 'imagemap_description' => 'Ovo je slika/karta s poveznicama (\'\'imagemap\'\')', |
211 | | -), |
| 213 | +); |
212 | 214 | |
213 | | -'hsb' => array( |
| 215 | +$messages['hsb'] = array( |
214 | 216 | 'imagemap_no_image' => '<imagemap> zmylk: Dyrbiš w prěnjej lince wobraz podać', |
215 | 217 | 'imagemap_invalid_image' => '<imagemap> zmylk: Wobraz je njepłaćiwy abo njeeksistuje', |
216 | 218 | 'imagemap_no_link' => '<imagemap> zmylk: Na kóncu linki $1 njebu płaćiwy wotkaz namakany', |
— | — | @@ -220,13 +222,13 @@ |
221 | 223 | 'imagemap_invalid_coord' => '<imagemap> zmylk: njepłaćiwa koordinata w lince $1: su jenož ličby dowolene', |
222 | 224 | 'imagemap_invalid_desc' => '<imagemap> zmylk: Njepłaćiwy parameter "desc", móžne su: <tt>$1</tt>', |
223 | 225 | 'imagemap_description' => 'Wo tutym wobrazu', |
224 | | -), |
| 226 | +); |
225 | 227 | |
226 | 228 | /** Hungarian (Magyar) |
227 | 229 | * @author KossuthRad |
228 | 230 | * @author Bdanee |
229 | 231 | */ |
230 | | -'hu' => array( |
| 232 | +$messages['hu'] = array( |
231 | 233 | 'imagemap_no_image' => '<imagemap>: kell egy előírt kép az első sorban', |
232 | 234 | 'imagemap_invalid_image' => '<imagemap>: érvénytelen vagy nem létező kép', |
233 | 235 | 'imagemap_no_link' => '<imagemap>: nincs érvényes link a(z) $1. sor végén', |
— | — | @@ -237,10 +239,10 @@ |
238 | 240 | 'imagemap_invalid_coord' => '<imagemap>: érvénytelen koordináta a $1 vonalban, számnak kell lennie', |
239 | 241 | 'imagemap_invalid_desc' => '<imagemap>: hibás desc leírás, ezek egyike kell: <tt>$1</tt>', |
240 | 242 | 'imagemap_description' => 'Kép leírása', |
241 | | -), |
| 243 | +); |
242 | 244 | |
243 | 245 | /* Indonesian (Ivan Lanin) */ |
244 | | -'id' => array( |
| 246 | +$messages['id'] = array( |
245 | 247 | 'imagemap_no_image' => '<imagemap>: harus memberikan suatu gambar di baris pertama', |
246 | 248 | 'imagemap_invalid_image' => '<imagemap>: gambar tidak sah atau tidak ditemukan', |
247 | 249 | 'imagemap_no_link' => '<imagemap>: tidak ditemukan pranala yang sah di akhir baris ke $1', |
— | — | @@ -252,17 +254,17 @@ |
253 | 255 | 'imagemap_invalid_coord' => '<imagemap>: koordinat tidak sah pada baris ke $1, haruslah berupa angka', |
254 | 256 | 'imagemap_invalid_desc' => '<imagemap>: spesifikasi desc tidak sah, harus salah satu dari: $1', |
255 | 257 | 'imagemap_description' => 'Tentang gambar ini', |
256 | | -), |
| 258 | +); |
257 | 259 | |
258 | 260 | /** Icelandic (Íslenska) |
259 | 261 | * @author SPQRobin |
260 | 262 | */ |
261 | | -'is' => array( |
| 263 | +$messages['is'] = array( |
262 | 264 | 'imagemap_description' => 'Um þessa mynd', |
263 | | -), |
| 265 | +); |
264 | 266 | |
265 | 267 | /* Italian (AnyFile, fixed typos by BrokenArrow) */ |
266 | | -'it' => array( |
| 268 | +$messages['it'] = array( |
267 | 269 | 'imagemap_no_image' => "<imagemap>: si deve specificare un'immagine nella prima riga", |
268 | 270 | 'imagemap_invalid_image' => "<imagemap>: l'immagine non è valida o non esiste", |
269 | 271 | 'imagemap_no_link' => '<imagemap>: non è stato trovato alcun collegamento valido alla fine della riga $1', |
— | — | @@ -273,10 +275,10 @@ |
274 | 276 | 'imagemap_invalid_coord' => '<imagemap>: coordinata non valida nella riga $1, deve essere un numero', |
275 | 277 | 'imagemap_invalid_desc' => '<imagemap>: Valore non valido per il parametro desc, deve essere uno dei seguenti: $1', |
276 | 278 | 'imagemap_description' => 'Informazioni sull\'immagine', |
277 | | -), |
| 279 | +); |
278 | 280 | |
279 | 281 | /* Kazakh Cyrillic (AlefZet) */ |
280 | | -'kk-cyrl' => array( |
| 282 | +$messages['kk-cyrl'] = array( |
281 | 283 | 'imagemap_no_image' => '<imagemap>: бірінші жолда суретті көрсету қажет', |
282 | 284 | 'imagemap_invalid_image' => '<imagemap>: сурет жарамсыз немесе жоқ', |
283 | 285 | 'imagemap_no_link' => '<imagemap>: $1 жол аяғында жарамды сілтеме табылмады', |
— | — | @@ -288,10 +290,10 @@ |
289 | 291 | 'imagemap_invalid_coord' => '<imagemap>: $1 жолында жарамсыз координата, сан болуы қажет', |
290 | 292 | 'imagemap_invalid_desc' => '<imagemap>: жарамсыз сипаттама маманданымы, мынаның біреуі болуы қажет: $1', |
291 | 293 | 'imagemap_description' => 'Бұл сурет туралы', |
292 | | -), |
| 294 | +); |
293 | 295 | |
294 | 296 | /* Kazakh Latin (AlefZet) */ |
295 | | -'kk-latn' => array( |
| 297 | +$messages['kk-latn'] = array( |
296 | 298 | 'imagemap_no_image' => '<imagemap>: birinşi jolda swretti körsetw qajet', |
297 | 299 | 'imagemap_invalid_image' => '<imagemap>: swret jaramsız nemese joq', |
298 | 300 | 'imagemap_no_link' => '<imagemap>: $1 jol ayağında jaramdı silteme tabılmadı', |
— | — | @@ -303,10 +305,10 @@ |
304 | 306 | 'imagemap_invalid_coord' => '<imagemap>: $1 jolında jaramsız koordïnata, san bolwı qajet', |
305 | 307 | 'imagemap_invalid_desc' => '<imagemap>: jaramsız sïpattama mamandanımı, mınanıñ birewi bolwı qajet: $1', |
306 | 308 | 'imagemap_description' => 'Bul swret twralı', |
307 | | -), |
| 309 | +); |
308 | 310 | |
309 | 311 | /* Kazakh Arabic (AlefZet) */ |
310 | | -'kk-arab' => array( |
| 312 | +$messages['kk-arab'] = array( |
311 | 313 | 'imagemap_no_image' => '<imagemap>: بٸرٸنشٸ جولدا سۋرەتتٸ كٶرسەتۋ قاجەت', |
312 | 314 | 'imagemap_invalid_image' => '<imagemap>: سۋرەت جارامسىز نەمەسە جوق', |
313 | 315 | 'imagemap_no_link' => '<imagemap>: $1 جول اياعىندا جارامدى سٸلتەمە تابىلمادى', |
— | — | @@ -318,20 +320,20 @@ |
319 | 321 | 'imagemap_invalid_coord' => '<imagemap>: $1 جولىندا جارامسىز كوورديناتا, سان بولۋى قاجەت', |
320 | 322 | 'imagemap_invalid_desc' => '<imagemap>: جارامسىز سيپاتتاما ماماندانىمى, مىنانىڭ بٸرەۋٸ بولۋى قاجەت: $1', |
321 | 323 | 'imagemap_description' => 'بۇل سۋرەت تۋرالى', |
322 | | -), |
| 324 | +); |
323 | 325 | |
324 | | -'la' => array( |
| 326 | +$messages['la'] = array( |
325 | 327 | 'imagemap_description' => 'De hac imagine', |
326 | | -), |
| 328 | +); |
327 | 329 | |
328 | 330 | /** Luxembourgish (Lëtzebuergesch) |
329 | 331 | * @author Robby |
330 | 332 | */ |
331 | | -'lb' => array( |
| 333 | +$messages['lb'] = array( |
332 | 334 | 'imagemap_description' => 'Iwwert dëst Bild', |
333 | | -), |
| 335 | +); |
334 | 336 | |
335 | | -'nds' => array( |
| 337 | +$messages['nds'] = array( |
336 | 338 | 'imagemap_no_image' => '<imagemap>: in de eerste Reeg mutt en Bild angeven wesen', |
337 | 339 | 'imagemap_invalid_image' => '<imagemap>: Bild geiht nich oder dat gifft dat gornich', |
338 | 340 | 'imagemap_no_link' => '<imagemap>: an dat Enn vun Reeg $1 weer keen Lenk', |
— | — | @@ -342,20 +344,20 @@ |
343 | 345 | 'imagemap_invalid_coord' => '<imagemap>: Koordinaat in Reeg $1 nich bi de Reeg, mutt en Tall wesen', |
344 | 346 | 'imagemap_invalid_desc' => '<imagemap>: Beschrieven nich bi de Reeg, mutt een vun disse wesen: <tt>$1</tt>', |
345 | 347 | 'imagemap_description' => 'Över dit Bild', |
346 | | -), |
| 348 | +); |
347 | 349 | |
348 | 350 | /** Lithuanian (Lietuvių) |
349 | 351 | * @author Matasg |
350 | 352 | * @author Garas |
351 | 353 | */ |
352 | | -'lt' => array( |
| 354 | +$messages['lt'] = array( |
353 | 355 | 'imagemap_no_image' => '<imagemap>: privalote nurodyti paveikslėlį pirmoje linijoje', |
354 | 356 | 'imagemap_invalid_image' => '<imagemap>: blogas arba neegzistuojantis paveikslėlis', |
355 | 357 | 'imagemap_description' => 'Apie šį paveikslėlį', |
356 | | -), |
| 358 | +); |
357 | 359 | |
358 | 360 | /* nld / Dutch (Siebrand Mazeland) */ |
359 | | -'nl' => array( |
| 361 | +$messages['nl'] = array( |
360 | 362 | 'imagemap_no_image' => '<imagemap>: geef een afbeelding op in de eerste regel', |
361 | 363 | 'imagemap_invalid_image' => '<imagemap>: de afbeelding is corrupt of bestaat niet', |
362 | 364 | 'imagemap_no_link' => '<imagemap>: er is geen geldige link aangetroffen aan het einde van regel $1', |
— | — | @@ -368,10 +370,10 @@ |
369 | 371 | 'imagemap_description' => 'Over deze afbeelding', |
370 | 372 | # Note to translators: keep the same order |
371 | 373 | 'imagemap_desc_types' => 'rechtsboven, rechtsonder, linksonder, linksboven, geen', |
372 | | -), |
| 374 | +); |
373 | 375 | |
374 | 376 | /* Norwegian (Jon Harald Søby) */ |
375 | | -'no' => array( |
| 377 | +$messages['no'] = array( |
376 | 378 | 'imagemap_no_image' => '<imagemap>: må angi et bilde i første linje', |
377 | 379 | 'imagemap_invalid_image' => '<imagemap>: bilde er ugyldig eller ikke-eksisterende', |
378 | 380 | 'imagemap_no_link' => '<imagemap>: ingen gyldig lenke ble funnet i slutten av linje $1', |
— | — | @@ -382,10 +384,10 @@ |
383 | 385 | 'imagemap_invalid_coord' => '<imagemap>: ugyldig koordinat i slutten av linje $1, må være et tall', |
384 | 386 | 'imagemap_invalid_desc' => '<imagemap>: ugyldig desc-spesifisering, må være enten: <tt>$1</tt>', |
385 | 387 | 'imagemap_description' => 'Om dette bildet', |
386 | | -), |
| 388 | +); |
387 | 389 | |
388 | 390 | /* Occitan (Cedric31) */ |
389 | | -'oc' => array( |
| 391 | +$messages['oc'] = array( |
390 | 392 | 'imagemap_no_image' => '<imagemap> : devètz especificar un imatge dins la primièra linha', |
391 | 393 | 'imagemap_invalid_image' => '<imagemap> : l’imatge es invalid o existís pas', |
392 | 394 | 'imagemap_no_link' => '<imagemap> : cap de ligam valid es pas estat trobat a la fin de la linha $1', |
— | — | @@ -396,9 +398,9 @@ |
397 | 399 | 'imagemap_invalid_coord' => '<imagemap> : coordenada invalida a la linha $1, deu èsser un nombre', |
398 | 400 | 'imagemap_invalid_desc' => '<imagemap> : paramètre « desc » invalid, los paramètres possibles son : $1', |
399 | 401 | 'imagemap_description' => 'A prepaus d\'aqueste imatge', |
400 | | -), |
| 402 | +); |
401 | 403 | |
402 | | -'pl' => array( |
| 404 | +$messages['pl'] = array( |
403 | 405 | 'imagemap_no_image' => '<imagemap>: należy wpisać grafikę w pierwszej linii', |
404 | 406 | 'imagemap_invalid_image' => '<imagemap>: grafika jest niepoprawna lub nie istnieje', |
405 | 407 | 'imagemap_no_link' => '<imagemap>: nie znaleziono poprawnego linku na końcu linii $1', |
— | — | @@ -409,10 +411,10 @@ |
410 | 412 | 'imagemap_invalid_coord' => '<imagemap>: nieprawidłowa współrzędna w linii $1; należy podać liczbę', |
411 | 413 | 'imagemap_invalid_desc' => '<imagemap>: nieprawidłowa specyfikacja opisu; należy wpisać jeden z wariantów: <tt>$1</tt>', |
412 | 414 | 'imagemap_description' => 'Informacje o tej grafice', |
413 | | -), |
| 415 | +); |
414 | 416 | |
415 | 417 | /* Piedmontese (Bèrto 'd Sèra) */ |
416 | | -'pms' => array( |
| 418 | +$messages['pms'] = array( |
417 | 419 | 'imagemap_no_image' => '<imagemap>: ant la prima riga a venta ch\'a-i sia la specìfica ëd na figura', |
418 | 420 | 'imagemap_invalid_image' => '<imagemap>: la figura ò ch\'a l\'ha chèich-còs ch\'a va nen, ò ch\'a-i é nen d\'autut', |
419 | 421 | 'imagemap_no_link' => '<imagemap>: pa gnun-a anliura bon-a a la fin dla riga $1', |
— | — | @@ -423,10 +425,10 @@ |
424 | 426 | 'imagemap_invalid_coord' => '<imagemap>: coordinà nen bon-a a la riga $1, a l\'ha da esse un nùmer', |
425 | 427 | 'imagemap_invalid_desc' => '<imagemap>: specìfica dla descrission nen bon-a, a l\'ha da esse un-a ëd coste-sì: <tt>$1</tt>', |
426 | 428 | 'imagemap_description' => 'Rësgoard a sta figura-sì', |
427 | | -), |
| 429 | +); |
428 | 430 | |
429 | 431 | /* Portuguese (Lugusto) */ |
430 | | -'pt' => array( |
| 432 | +$messages['pt'] = array( |
431 | 433 | 'imagemap_no_image' => '<imagemap>: é necessário especificar uma imagem na primeira linha', |
432 | 434 | 'imagemap_invalid_image' => '<imagemap>: imagem inválida ou inexistente', |
433 | 435 | 'imagemap_no_link' => '<imagemap>: não foi encontrado um link válido ao final da linha $1', |
— | — | @@ -438,12 +440,12 @@ |
439 | 441 | 'imagemap_invalid_coord' => '<imagemap>: coordenada inválida na linha $1. 0 necessário que seja um número', |
440 | 442 | 'imagemap_invalid_desc' => '<imagemap>: especificação desc inválida. 0 necessário que seja uma dentre: <tt>$1</tt>', |
441 | 443 | 'imagemap_description' => 'Sobre esta imagem', |
442 | | -), |
| 444 | +); |
443 | 445 | |
444 | 446 | /** Russian (Русский) |
445 | 447 | * @author .:Ajvol:. |
446 | 448 | */ |
447 | | -'ru' => array( |
| 449 | +$messages['ru'] = array( |
448 | 450 | 'imagemap_no_image' => '<imagemap>: в первой строке должно быть задано изображение', |
449 | 451 | 'imagemap_invalid_image' => '<imagemap>: неверное или отсутствующее изображение', |
450 | 452 | 'imagemap_no_link' => '<imagemap>: неверная ссылка в конце строки $1', |
— | — | @@ -454,10 +456,10 @@ |
455 | 457 | 'imagemap_invalid_coord' => '<imagemap>: ошибочная координата в строке $1, ожидается число', |
456 | 458 | 'imagemap_invalid_desc' => '<imagemap>: ошибочное значение desc, ожидается одно из следующих значений: <tt>$1</tt>', |
457 | 459 | 'imagemap_description' => 'Описание изображения', |
458 | | -), |
| 460 | +); |
459 | 461 | |
460 | 462 | /* Slovak (helix84) */ |
461 | | -'sk' => array( |
| 463 | +$messages['sk'] = array( |
462 | 464 | 'imagemap_no_image' => '<imagemap>: musí mať na prvom riadku uvedený obrázok', |
463 | 465 | 'imagemap_invalid_image' => '<imagemap>: obrázok je neplatný alebo neexistuje', |
464 | 466 | 'imagemap_no_link' => '<imagemap>: na konci riadka $1 nebol nájdený platný odkaz', |
— | — | @@ -469,24 +471,24 @@ |
470 | 472 | 'imagemap_invalid_coord' => '<imagemap>: neplatná súradnica na riadku $1, musí to byť číslo', |
471 | 473 | 'imagemap_invalid_desc' => '<imagemap>: neplatný popis, musí byť jedno z nasledovných: $1', |
472 | 474 | 'imagemap_description' => 'O tomto obrázku', |
473 | | -), |
| 475 | +); |
474 | 476 | |
475 | 477 | /** ћирилица (ћирилица) |
476 | 478 | * @author Sasa Stefanovic |
477 | 479 | */ |
478 | | -'sr-ec' => array( |
| 480 | +$messages['sr-ec'] = array( |
479 | 481 | 'imagemap_description' => 'О овој слици', |
480 | | -), |
| 482 | +); |
481 | 483 | |
482 | 484 | /** Seeltersk (Seeltersk) |
483 | 485 | * @author Pyt |
484 | 486 | */ |
485 | | -'stq' => array( |
| 487 | +$messages['stq'] = array( |
486 | 488 | 'imagemap_no_image' => '<imagemap>-Failer: In ju eerste Riege mout ne Bielde ounroat wäide', |
487 | | -), |
| 489 | +); |
488 | 490 | |
489 | 491 | /* Swedish */ |
490 | | -'sv' => array( |
| 492 | +$messages['sv'] = array( |
491 | 493 | 'imagemap_no_image' => '<imagemap>: en bild måste anges på första raden', |
492 | 494 | 'imagemap_invalid_image' => '<imagemap>: bilden är ogiltig eller existerar inte', |
493 | 495 | 'imagemap_no_link' => '<imagemap>: ingen giltig länk fanns i slutet av rad $1', |
— | — | @@ -500,21 +502,21 @@ |
501 | 503 | 'imagemap_description' => 'Bildinformation', |
502 | 504 | # Note to translators: keep the same order |
503 | 505 | 'imagemap_desc_types' => 'uppe till höger, nere till höger, nere till vänster, uppe till vänster, ingen', |
504 | | -), |
| 506 | +); |
505 | 507 | |
506 | | -'tet' => array( |
| 508 | +$messages['tet'] = array( |
507 | 509 | 'imagemap_description' => 'Kona-ba imajen ne\'e', |
508 | | -), |
| 510 | +); |
509 | 511 | |
510 | 512 | /** Volapük (Volapük) |
511 | 513 | * @author Malafaya |
512 | 514 | */ |
513 | | -'vo' => array( |
| 515 | +$messages['vo'] = array( |
514 | 516 | 'imagemap_description' => 'Tefü magod at', |
515 | | -), |
| 517 | +); |
516 | 518 | |
517 | 519 | /* Cantonese (Shinjiman) */ |
518 | | -'yue' => array( |
| 520 | +$messages['yue'] = array( |
519 | 521 | 'imagemap_no_image' => '<imagemap>: 一定要響第一行指定一幅圖像', |
520 | 522 | 'imagemap_invalid_image' => '<imagemap>: 圖像唔正確或者唔存在', |
521 | 523 | 'imagemap_no_link' => '<imagemap>: 響第$1行結尾度搵唔到一個正式嘅連結', |
— | — | @@ -527,10 +529,10 @@ |
528 | 530 | 'imagemap_invalid_desc' => '<imagemap>: 唔正確嘅 desc 參數,一定係要以下嘅其中之一: $1', |
529 | 531 | 'imagemap_description' => '關於呢幅圖像', |
530 | 532 | 'imagemap_desc_types' => '右上, 右下, 左下, 左上, 無', |
531 | | -), |
| 533 | +); |
532 | 534 | |
533 | 535 | /* Chinese (Simplified) (Shinjiman) */ |
534 | | -'zh-hans' => array( |
| 536 | +$messages['zh-hans'] = array( |
535 | 537 | 'imagemap_no_image' => '<imagemap>: 必须要在第一行指定一幅图像', |
536 | 538 | 'imagemap_invalid_image' => '<imagemap>: 图像不正确或者不存在', |
537 | 539 | 'imagemap_no_link' => '<imagemap>: 在第$1行结尾中找不到一个正式的链接', |
— | — | @@ -543,10 +545,10 @@ |
544 | 546 | 'imagemap_invalid_desc' => '<imagemap>: 不正确的 desc 参数,必须是以下的其中之一: $1', |
545 | 547 | 'imagemap_description' => '关于这幅图像', |
546 | 548 | 'imagemap_desc_types' => '右上, 右下, 左下, 左上, 无', |
547 | | -), |
| 549 | +); |
548 | 550 | |
549 | 551 | /* Chinese (Traditional) (Shinjiman) */ |
550 | | -'zh-hant' => array( |
| 552 | +$messages['zh-hant'] = array( |
551 | 553 | 'imagemap_no_image' => '<imagemap>: 必須要在第一行指定一幅圖像', |
552 | 554 | 'imagemap_invalid_image' => '<imagemap>: 圖像不正確或者不存在', |
553 | 555 | 'imagemap_no_link' => '<imagemap>: 在第$1行結尾中找不到一個正式的連結', |
— | — | @@ -559,24 +561,15 @@ |
560 | 562 | 'imagemap_invalid_desc' => '<imagemap>: 不正確的 desc 參數,必須是以下的其中之一: $1', |
561 | 563 | 'imagemap_description' => '關於這幅圖像', |
562 | 564 | 'imagemap_desc_types' => '右上, 右下, 左下, 左上, 無', |
563 | | -), |
| 565 | +); |
564 | 566 | |
565 | | - ); |
566 | | - |
567 | | - /* Kazakh fallbacks */ |
568 | | - $messages['kk-kz'] = $messages['kk-cyrl']; |
569 | | - $messages['kk-tr'] = $messages['kk-latn']; |
570 | | - $messages['kk-cn'] = $messages['kk-arab']; |
571 | | - $messages['kk'] = $messages['kk-cyrl']; |
572 | | - |
573 | | - /* Chinese defaults, fallback to zh-hans or zh-hant */ |
574 | | - $messages['zh'] = $messages['zh-hans']; |
575 | | - $messages['zh-cn'] = $messages['zh-hans']; |
576 | | - $messages['zh-hk'] = $messages['zh-hant']; |
577 | | - $messages['zh-tw'] = $messages['zh-hans']; |
578 | | - $messages['zh-sg'] = $messages['zh-hant']; |
579 | | - /* Cantonese default, fallback to yue */ |
580 | | - $messages['zh-yue'] = $messages['yue']; |
581 | | - |
582 | | - return $messages; |
583 | | -} |
| 567 | +$messages['kk-kz'] = $messages['kk-cyrl']; |
| 568 | +$messages['kk-tr'] = $messages['kk-latn']; |
| 569 | +$messages['kk-cn'] = $messages['kk-arab']; |
| 570 | +$messages['kk'] = $messages['kk-cyrl']; |
| 571 | +$messages['zh'] = $messages['zh-hans']; |
| 572 | +$messages['zh-cn'] = $messages['zh-hans']; |
| 573 | +$messages['zh-hk'] = $messages['zh-hant']; |
| 574 | +$messages['zh-tw'] = $messages['zh-hans']; |
| 575 | +$messages['zh-sg'] = $messages['zh-hant']; |
| 576 | +$messages['zh-yue'] = $messages['yue']; |
Index: trunk/extensions/ImageMap/ImageMap.php |
— | — | @@ -1,9 +1,13 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +$dir = dirname(__FILE__) . '/'; |
| 5 | +$wgExtensionMessagesFiles['ImageMap'] = $dir . 'ImageMap.i18n.php'; |
| 6 | +$wgAutoloadClasses['ImageMap'] = $dir . 'ImageMap_body.php'; |
4 | 7 | $wgExtensionFunctions[] = 'wfSetupImageMap'; |
5 | | -$wgAutoloadClasses['ImageMap'] = dirname(__FILE__).'/ImageMap_body.php'; |
| 8 | + |
6 | 9 | $wgExtensionCredits['parserhook']['ImageMap'] = array( |
7 | 10 | 'name' => 'ImageMap', |
| 11 | + 'version' => '2008-01-11', |
8 | 12 | 'author' => 'Tim Starling', |
9 | 13 | 'url' => 'http://www.mediawiki.org/wiki/Extension:ImageMap', |
10 | 14 | 'description' => 'Allows client-side clickable image maps using <nowiki><imagemap></nowiki> tag.', |
— | — | @@ -13,5 +17,3 @@ |
14 | 18 | global $wgParser; |
15 | 19 | $wgParser->setHook( 'imagemap', array( 'ImageMap', 'render' ) ); |
16 | 20 | } |
17 | | - |
18 | | - |
Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -1165,18 +1165,12 @@ |
1166 | 1166 | } |
1167 | 1167 | |
1168 | 1168 | class ImageMapMessageGroup extends ExtensionMessageGroup { |
1169 | | - protected $fileExporter = null; |
1170 | 1169 | protected $label = 'Image Map'; |
1171 | 1170 | protected $id = 'ext-imagemap'; |
1172 | 1171 | |
1173 | | - protected $functionName = 'efImageMapMessages'; |
| 1172 | + protected $arrName = 'messages'; |
1174 | 1173 | protected $messageFile = 'ImageMap/ImageMap.i18n.php'; |
1175 | 1174 | |
1176 | | - protected $exportStart = '\'$CODE\' => array('; |
1177 | | - protected $exportPrefix= ''; |
1178 | | - protected $exportLineP = "\t"; |
1179 | | - protected $exportEnd = '),'; |
1180 | | - |
1181 | 1175 | protected $ignored = array( |
1182 | 1176 | 'imagemap_desc_types', |
1183 | 1177 | ); |