Index: trunk/extensions/timeline/Timeline.i18n.php |
— | — | @@ -9,16 +9,8 @@ |
10 | 10 | |
11 | 11 | $messages['en'] = array( |
12 | 12 | 'timeline-desc' => 'Adds <tt><timeline></tt> tag to create timelines', |
13 | | - 'timeline-install-error' => 'Timeline error: Executable not found. Command line was: $1', |
14 | 13 | ); |
15 | 14 | |
16 | | -/** Afrikaans (Afrikaans) |
17 | | - * @author Naudefj |
18 | | - */ |
19 | | -$messages['af'] = array( |
20 | | - 'timeline-desc' => 'Maak die <tt><timeline></tt> etiket beskikbaar om tydslyne te maak', |
21 | | -); |
22 | | - |
23 | 15 | /** Aragonese (Aragonés) |
24 | 16 | * @author Juanpabl |
25 | 17 | */ |
— | — | @@ -30,8 +22,7 @@ |
31 | 23 | * @author Meno25 |
32 | 24 | */ |
33 | 25 | $messages['ar'] = array( |
34 | | - 'timeline-desc' => 'يضيف الوسم <tt><timeline></tt> لإنشاء الخطوط الزمنية', |
35 | | - 'timeline-install-error' => 'خطأ إطار زمني: المنفذ لم يتم العثور عليه. سطر الأمر كان: $1', |
| 26 | + 'timeline-desc' => 'يضيف الوسم <tt><timeline></tt> لإنشاء الخطوط الزمنية', |
36 | 27 | ); |
37 | 28 | |
38 | 29 | /** Asturian (Asturianu) |
— | — | @@ -41,13 +32,6 @@ |
42 | 33 | 'timeline-desc' => 'Añade la etiqueta <tt><timeline></tt> pa crear llinies de tiempu', |
43 | 34 | ); |
44 | 35 | |
45 | | -/** Southern Balochi (بلوچی مکرانی) |
46 | | - * @author Mostafadaneshvar |
47 | | - */ |
48 | | -$messages['bcc'] = array( |
49 | | - 'timeline-desc' => 'هورکنت <tt><timeline></tt>برچسپء په شرکتن خط زمان', |
50 | | -); |
51 | | - |
52 | 36 | /** Bulgarian (Български) |
53 | 37 | * @author DCLXVI |
54 | 38 | */ |
— | — | @@ -69,13 +53,6 @@ |
70 | 54 | 'timeline-desc' => 'Fügt das <tt><timeline></tt>-Tag zur Erstellung von Zeitleisten hinzu', |
71 | 55 | ); |
72 | 56 | |
73 | | -/** Lower Sorbian (Dolnoserbski) |
74 | | - * @author Michawiki |
75 | | - */ |
76 | | -$messages['dsb'] = array( |
77 | | - 'timeline-desc' => 'Pśidawa toflicku <tt><timeline></tt> za napóranje casoweje bałki', |
78 | | -); |
79 | | - |
80 | 57 | /** Esperanto (Esperanto) |
81 | 58 | * @author Yekrats |
82 | 59 | */ |
— | — | @@ -83,11 +60,12 @@ |
84 | 61 | 'timeline-desc' => 'Aldonas etikedon <tt><timeline></tt> por krei tempoaksojn', |
85 | 62 | ); |
86 | 63 | |
87 | | -/** Persian (فارسی) |
| 64 | +/** فارسی (فارسی) |
88 | 65 | * @author Huji |
89 | 66 | */ |
90 | 67 | $messages['fa'] = array( |
91 | 68 | 'timeline-desc' => 'برچسب <tt><timeline></tt> را برای نمایش خطوط زمانی میافزاید', |
| 69 | + |
92 | 70 | ); |
93 | 71 | |
94 | 72 | /** Finnish (Suomi) |
— | — | @@ -101,8 +79,7 @@ |
102 | 80 | * @author Grondin |
103 | 81 | */ |
104 | 82 | $messages['fr'] = array( |
105 | | - 'timeline-desc' => 'Ajoute la balise <tt><timeline></tt> pour créer des frises chronologiques', |
106 | | - 'timeline-install-error' => 'Erreur de ligne de temps : Fichier exécutable introuvable. La ligne de commande était : $1', |
| 83 | + 'timeline-desc' => 'Ajoute la balise <tt><timeline></tt> pour créer des frises chronologiques', |
107 | 84 | ); |
108 | 85 | |
109 | 86 | /** Franco-Provençal (Arpetan) |
— | — | @@ -112,22 +89,6 @@ |
113 | 90 | 'timeline-desc' => 'Apond la balisa <tt><timeline></tt> por crèar des frises cronologiques.', |
114 | 91 | ); |
115 | 92 | |
116 | | -/** Galician (Galego) |
117 | | - * @author Toliño |
118 | | - */ |
119 | | -$messages['gl'] = array( |
120 | | - 'timeline-desc' => 'Engade a etiqueta <tt><timeline></tt> para crear liñas de tempo', |
121 | | - 'timeline-install-error' => 'Erro na liña de tempo: o ficheiro executable non foi atopado. A liña do comandos foi: $1', |
122 | | -); |
123 | | - |
124 | | -/** Hebrew (עברית) |
125 | | - * @author Rotem Liss |
126 | | - */ |
127 | | -$messages['he'] = array( |
128 | | - 'timeline-desc' => 'הוספת תגית <tt><timeline></tt> ליצירת צירי זמן', |
129 | | - 'timeline-install-error' => 'שגיאת ציר זמן: לא נמצא קובץ ההרצה. הפקודה הייתה:: $1', |
130 | | -); |
131 | | - |
132 | 93 | /** Hindi (हिन्दी) |
133 | 94 | * @author Kaustubh |
134 | 95 | */ |
— | — | @@ -151,11 +112,9 @@ |
152 | 113 | |
153 | 114 | /** Indonesian (Bahasa Indonesia) |
154 | 115 | * @author IvanLanin |
155 | | - * @author Rex |
156 | 116 | */ |
157 | 117 | $messages['id'] = array( |
158 | | - 'timeline-desc' => 'Menambahkan tag <tt><timeline></tt> untuk membuat garis waktu', |
159 | | - 'timeline-install-error' => 'Kesalahan garis waktu: Berkas tidak dapat dijalankan karena tidak ditemukan. Baris perintah adalah: $1', |
| 118 | + 'timeline-desc' => 'Menambahkan tag <tt><timeline></tt> untuk membuat garis waktu', |
160 | 119 | ); |
161 | 120 | |
162 | 121 | /** Italian (Italiano) |
— | — | @@ -221,14 +180,6 @@ |
222 | 181 | 'timeline-desc' => 'टाईमलाईन तयार करण्यासाठी <tt><timeline></tt> टॅग वाढवितो', |
223 | 182 | ); |
224 | 183 | |
225 | | -/** Malay (Bahasa Melayu) |
226 | | - * @author Aviator |
227 | | - */ |
228 | | -$messages['ms'] = array( |
229 | | - 'timeline-desc' => 'Menambah tag <tt><timeline></tt> untuk mencipta garis masa', |
230 | | - 'timeline-install-error' => 'Ralat garis masa: Fail boleh laksana tidak dijumpai. Baris perintah ialah: $1', |
231 | | -); |
232 | | - |
233 | 184 | /** Low German (Plattdüütsch) |
234 | 185 | * @author Slomox |
235 | 186 | */ |
— | — | @@ -240,11 +191,10 @@ |
241 | 192 | * @author Siebrand |
242 | 193 | */ |
243 | 194 | $messages['nl'] = array( |
244 | | - 'timeline-desc' => 'Voegt de tag <tt><timeline></tt> toe om tijdlijnen te maken', |
245 | | - 'timeline-install-error' => 'Fout in timeline: het uitvoerbare bestand is niet aangetroffen. De commandoregel was: $1', |
| 195 | + 'timeline-desc' => 'Voegt de tag <tt><timeline></tt> toe om tijdlijnen te maken', |
246 | 196 | ); |
247 | 197 | |
248 | | -/** Norwegian (bokmål) (Norsk (bokmål)) |
| 198 | +/** Norwegian (Norsk (bokmål)) |
249 | 199 | * @author Jon Harald Søby |
250 | 200 | */ |
251 | 201 | $messages['no'] = array( |
— | — | @@ -262,8 +212,7 @@ |
263 | 213 | * @author Sp5uhe |
264 | 214 | */ |
265 | 215 | $messages['pl'] = array( |
266 | | - 'timeline-desc' => 'Dodaje znacznik <tt><timeline></tt> umożliwiający tworzenie spisu na osi czasu', |
267 | | - 'timeline-install-error' => 'Błąd instalacji osi czasu – Nie odnaleziono programu. Linia poleceń zawierała: $1', |
| 216 | + 'timeline-desc' => 'Dodaje znacznik <tt><timeline></tt> umożliwiający tworzenie spisu na osi czasu', |
268 | 217 | ); |
269 | 218 | |
270 | 219 | /** Portuguese (Português) |
— | — | @@ -277,8 +226,7 @@ |
278 | 227 | * @author Александр Сигачёв |
279 | 228 | */ |
280 | 229 | $messages['ru'] = array( |
281 | | - 'timeline-desc' => 'Добавляет тег <tt><timeline></tt> для создания временных шкал', |
282 | | - 'timeline-install-error' => 'Ошибка временной шкалы. Исполняемый файл не найден. Команда была: $1', |
| 230 | + 'timeline-desc' => 'Добавляет тег <tt><timeline></tt> для создания временных шкал', |
283 | 231 | ); |
284 | 232 | |
285 | 233 | /** Yakut (Саха тыла) |
— | — | @@ -295,13 +243,6 @@ |
296 | 244 | 'timeline-desc' => 'Pridáva značku <tt><timeline></tt> pre tvorbu časových línií', |
297 | 245 | ); |
298 | 246 | |
299 | | -/** Serbian Cyrillic ekavian (ћирилица) |
300 | | - * @author Millosh |
301 | | - */ |
302 | | -$messages['sr-ec'] = array( |
303 | | - 'timeline-desc' => 'Додаје <tt><timeline></tt> ознаку за стварање временских оса.', |
304 | | -); |
305 | | - |
306 | 247 | /** Sundanese (Basa Sunda) |
307 | 248 | * @author Kandar |
308 | 249 | */ |
— | — | @@ -311,12 +252,9 @@ |
312 | 253 | |
313 | 254 | /** Swedish (Svenska) |
314 | 255 | * @author Lejonel |
315 | | - * @author M.M.S. |
316 | | - * @author Boivie |
317 | 256 | */ |
318 | 257 | $messages['sv'] = array( |
319 | | - 'timeline-desc' => 'Lägger till taggen <tt><timeline></tt> för att skapa tidslinjer', |
320 | | - 'timeline-install-error' => 'Tidslinjefel: Executable ej funnen. Kommandorad var: $1', |
| 258 | + 'timeline-desc' => 'Lägger till taggen <tt><timeline></tt> för att skapa tidslinjer', |
321 | 259 | ); |
322 | 260 | |
323 | 261 | /** Telugu (తెలుగు) |
— | — | @@ -326,20 +264,13 @@ |
327 | 265 | 'timeline-desc' => 'కాలరేఖలని సృష్టించడానికై <tt><timeline></tt> అనే టాగుని చేరుస్తుంది', |
328 | 266 | ); |
329 | 267 | |
330 | | -/** Tajik (Cyrillic) (Тоҷикӣ/tojikī (Cyrillic)) |
| 268 | +/** Tajik (Тоҷикӣ) |
331 | 269 | * @author Ibrahim |
332 | 270 | */ |
333 | 271 | $messages['tg-cyrl'] = array( |
334 | 272 | 'timeline-desc' => 'Барчасби <tt><timeline></tt>-ро баро намоиши хати замоне илова мекунад', |
335 | 273 | ); |
336 | 274 | |
337 | | -/** Ukrainian (Українська) |
338 | | - * @author Ahonc |
339 | | - */ |
340 | | -$messages['uk'] = array( |
341 | | - 'timeline-desc' => 'Додає тег <tt><timeline></tt> для створення часових шкал', |
342 | | -); |
343 | | - |
344 | 275 | /** Vèneto (Vèneto) |
345 | 276 | * @author Candalua |
346 | 277 | */ |
— | — | @@ -354,21 +285,21 @@ |
355 | 286 | 'timeline-desc' => 'Thêm thẻ <tt><timeline></tt> để xây dựng các thời biểu', |
356 | 287 | ); |
357 | 288 | |
358 | | -/** Yue (粵語) |
| 289 | +/** Cantonese |
359 | 290 | * @author Shinjiman |
360 | 291 | */ |
361 | 292 | $messages['yue'] = array( |
362 | 293 | 'timeline-desc' => '加 <tt><timeline></tt> 標籤去建立時間綫', |
363 | 294 | ); |
364 | 295 | |
365 | | -/** Simplified Chinese (中文(简体)) |
| 296 | +/** Chinese (Simplified) |
366 | 297 | * @author Shinjiman |
367 | 298 | */ |
368 | 299 | $messages['zh-hans'] = array( |
369 | 300 | 'timeline-desc' => '加入 <tt><timeline></tt> 标签以建立时间线', |
370 | 301 | ); |
371 | 302 | |
372 | | -/** Traditional Chinese (中文(繁體)) |
| 303 | +/** Chinese (Traditional) |
373 | 304 | * @author Shinjiman |
374 | 305 | */ |
375 | 306 | $messages['zh-hant'] = array( |
Index: trunk/extensions/timeline/Timeline.php |
— | — | @@ -39,9 +39,8 @@ |
40 | 40 | global $wgUploadDirectory, $wgUploadPath, $IP, $wgTimelineSettings, $wgArticlePath, $wgTmpDirectory; |
41 | 41 | $hash = md5( $timelinesrc ); |
42 | 42 | $dest = $wgUploadDirectory."/timeline/"; |
43 | | - wfLoadExtensionMessages('Timeline'); |
44 | | - if ( ! is_dir( $dest ) ) { wfMkdirParents( $dest, 0777 ); } |
45 | | - if ( ! is_dir( $wgTmpDirectory ) ) { wfMkdirParents( $wgTmpDirectory, 0777 ); } |
| 43 | + if ( ! is_dir( $dest ) ) { mkdir( $dest, 0777 ); } |
| 44 | + if ( ! is_dir( $wgTmpDirectory ) ) { mkdir( $wgTmpDirectory, 0777 ); } |
46 | 45 | |
47 | 46 | $fname = $dest . $hash; |
48 | 47 | if ( ! ( file_exists( $fname.".png" ) || file_exists( $fname.".err" ) ) ) |
— | — | @@ -59,8 +58,8 @@ |
60 | 59 | unlink($fname); |
61 | 60 | |
62 | 61 | if ( $ret == "" ) { |
63 | | - $error = htmlspecialchars( wfMsg( 'timeline-install-error', $cmdline ) ); |
64 | | - return "<div id=\"toc\"><tt>$error</tt></div>"; |
| 62 | + // Message not localized, only relevant during install |
| 63 | + return "<div id=\"toc\"><tt>Timeline error: Executable not found. Command line was: {$cmdline}</tt></div>"; |
65 | 64 | } |
66 | 65 | |
67 | 66 | } |
— | — | @@ -78,8 +77,8 @@ |
79 | 78 | $ext = "png"; |
80 | 79 | } |
81 | 80 | |
82 | | - $txt = "<map id=\"timeline_$hash\">{$map}</map>". |
83 | | - "<img usemap=\"#timeline_{$hash}\" src=\"{$wgUploadPath}/timeline/{$hash}.{$ext}\" />"; |
| 81 | + $txt = "<map name=\"$hash\">{$map}</map>". |
| 82 | + "<img usemap=\"#{$hash}\" src=\"{$wgUploadPath}/timeline/{$hash}.{$ext}\">"; |
84 | 83 | } |
85 | 84 | return $txt; |
86 | 85 | } |