Index: trunk/extensions/MwEmbedSupport/MwEmbed.i18n.php |
— | — | @@ -1,256 +0,0 @@ |
2 | | -<?php |
3 | | -/** |
4 | | - * Internationalisation for MwEmbed extension |
5 | | - * |
6 | | - * @file |
7 | | - * @ingroup Extensions |
8 | | - */ |
9 | | - |
10 | | -$messages = array(); |
11 | | - |
12 | | -/** English |
13 | | - * @author Michael Dale |
14 | | - */ |
15 | | -$messages['en'] = array( |
16 | | - /* Editing Preference Categories */ |
17 | | - 'mwembed-desc' => 'Provides support for mwEmbed modules and extensions', |
18 | | -); |
19 | | - |
20 | | -/** Afrikaans (Afrikaans) |
21 | | - * @author Naudefj |
22 | | - */ |
23 | | -$messages['af'] = array( |
24 | | - 'mwembed-desc' => 'Bied ondersteuning vir mwEmbed-modules en -uitbreidings', |
25 | | -); |
26 | | - |
27 | | -/** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца)) |
28 | | - * @author Jim-by |
29 | | - */ |
30 | | -$messages['be-tarask'] = array( |
31 | | - 'mwembed-desc' => 'Пашырэньне падтрымкі для модуляў і пашырэньняў mwEmbed', |
32 | | -); |
33 | | - |
34 | | -/** Bengali (বাংলা) |
35 | | - * @author Bellayet |
36 | | - */ |
37 | | -$messages['bn'] = array( |
38 | | - 'mwembed-desc' => 'mwEmbed মডিউল এবং এক্সটেনশন সমর্থন প্রদান করে', |
39 | | -); |
40 | | - |
41 | | -/** Breton (Brezhoneg) |
42 | | - * @author Fulup |
43 | | - */ |
44 | | -$messages['br'] = array( |
45 | | - 'mwembed-desc' => 'Pourvezañ a ra ur skor evit modulennoù hag astennoù mwEmbed', |
46 | | -); |
47 | | - |
48 | | -/** Bosnian (Bosanski) |
49 | | - * @author CERminator |
50 | | - */ |
51 | | -$messages['bs'] = array( |
52 | | - 'mwembed-desc' => 'Omogućava podršku za mwEmbed module i proširenja', |
53 | | -); |
54 | | - |
55 | | -/** Catalan (Català) |
56 | | - * @author Toniher |
57 | | - */ |
58 | | -$messages['ca'] = array( |
59 | | - 'mwembed-desc' => "Proporciona assistència per a mòduls i extensions de l'mwEmbed.", |
60 | | -); |
61 | | - |
62 | | -/** Czech (Česky) |
63 | | - * @author Mormegil |
64 | | - */ |
65 | | -$messages['cs'] = array( |
66 | | - 'mwembed-desc' => 'Poskytuje podporu pro moduly a rozšíření mwEmbed', |
67 | | -); |
68 | | - |
69 | | -/** German (Deutsch) |
70 | | - * @author Kghbln |
71 | | - */ |
72 | | -$messages['de'] = array( |
73 | | - 'mwembed-desc' => 'Ermöglicht die Nutzung von Modulen und Erweiterungen, die „mwEmbed“ benötigen', |
74 | | -); |
75 | | - |
76 | | -/** Lower Sorbian (Dolnoserbski) |
77 | | - * @author Michawiki |
78 | | - */ |
79 | | -$messages['dsb'] = array( |
80 | | - 'mwembed-desc' => 'Dawa pódpěru za module a rozšyrjenja za mwEmbed', |
81 | | -); |
82 | | - |
83 | | -/** Greek (Ελληνικά) |
84 | | - * @author Evropi |
85 | | - */ |
86 | | -$messages['el'] = array( |
87 | | - 'mwembed-desc' => 'Παρέχει υποστήριξη για τις μονάδες και επεκτάσεις του mwEmbed', |
88 | | -); |
89 | | - |
90 | | -/** Spanish (Español) |
91 | | - * @author Locos epraix |
92 | | - */ |
93 | | -$messages['es'] = array( |
94 | | - 'mwembed-desc' => 'Proporciona soporte para módulos y extensiones mwEmbed', |
95 | | -); |
96 | | - |
97 | | -/** French (Français) |
98 | | - * @author Peter17 |
99 | | - */ |
100 | | -$messages['fr'] = array( |
101 | | - 'mwembed-desc' => 'L’extension MwEmbed fournit un support pour les modules et extensions mwEmbed', |
102 | | -); |
103 | | - |
104 | | -/** Galician (Galego) |
105 | | - * @author Toliño |
106 | | - */ |
107 | | -$messages['gl'] = array( |
108 | | - 'mwembed-desc' => 'Ofrece soporte para módulos e extensións mwEmbed', |
109 | | -); |
110 | | - |
111 | | -/** Swiss German (Alemannisch) |
112 | | - * @author Als-Holder |
113 | | - */ |
114 | | -$messages['gsw'] = array( |
115 | | - 'mwembed-desc' => 'Unterstitzig fir d Nutzig vu „mwEmbed“-Module un -Erwyterige', |
116 | | -); |
117 | | - |
118 | | -/** Hebrew (עברית) |
119 | | - * @author YaronSh |
120 | | - */ |
121 | | -$messages['he'] = array( |
122 | | - 'mwembed-desc' => 'אספקת תמיכה במודולים והרחבות של mwEmbed', |
123 | | -); |
124 | | - |
125 | | -/** Upper Sorbian (Hornjoserbsce) |
126 | | - * @author Michawiki |
127 | | - */ |
128 | | -$messages['hsb'] = array( |
129 | | - 'mwembed-desc' => 'Skići podpěru za module a rozšěrjenja mwEmbed', |
130 | | -); |
131 | | - |
132 | | -/** Hungarian (Magyar) |
133 | | - * @author BáthoryPéter |
134 | | - */ |
135 | | -$messages['hu'] = array( |
136 | | - 'mwembed-desc' => 'Támogatást nyújt az „mwEmbed“ modulokhoz és bővítményekhez', |
137 | | -); |
138 | | - |
139 | | -/** Interlingua (Interlingua) |
140 | | - * @author McDutchie |
141 | | - */ |
142 | | -$messages['ia'] = array( |
143 | | - 'mwembed-desc' => 'Le extension MwEmbed forni supporto pro modulos e extensiones mwEmbed', |
144 | | -); |
145 | | - |
146 | | -/** Indonesian (Bahasa Indonesia) |
147 | | - * @author IvanLanin |
148 | | - */ |
149 | | -$messages['id'] = array( |
150 | | - 'mwembed-desc' => 'Menyediakan dukungan untuk modul dan ekstensi mwEmbed', |
151 | | -); |
152 | | - |
153 | | -/** Japanese (日本語) |
154 | | - * @author 青子守歌 |
155 | | - */ |
156 | | -$messages['ja'] = array( |
157 | | - 'mwembed-desc' => 'mwEmbed拡張機能は、mwEmbedモジュールと拡張機能のサポートを提供します', |
158 | | -); |
159 | | - |
160 | | -/** Luxembourgish (Lëtzebuergesch) |
161 | | - * @author Robby |
162 | | - */ |
163 | | -$messages['lb'] = array( |
164 | | - 'mwembed-desc' => 'Erméiglecht d\'Benotze vu Moduler an Erweiderungen, déi "mwEmbed" brauchen', |
165 | | -); |
166 | | - |
167 | | -/** Macedonian (Македонски) |
168 | | - * @author Bjankuloski06 |
169 | | - */ |
170 | | -$messages['mk'] = array( |
171 | | - 'mwembed-desc' => 'Додатокот MwEmbed дава поддршка за mwEmbed-модули и додатоци', |
172 | | -); |
173 | | - |
174 | | -/** Dutch (Nederlands) |
175 | | - * @author Siebrand |
176 | | - */ |
177 | | -$messages['nl'] = array( |
178 | | - 'mwembed-desc' => 'MwEmbed biedt ondersteuning voor module en uitbreidingen van mwEmbed', |
179 | | -); |
180 | | - |
181 | | -/** Norwegian (bokmål) (Norsk (bokmål)) |
182 | | - * @author Nghtwlkr |
183 | | - */ |
184 | | -$messages['no'] = array( |
185 | | - 'mwembed-desc' => 'Gir støtte for mwEmbed-moduler og -utvidelser', |
186 | | -); |
187 | | - |
188 | | -/** Polish (Polski) |
189 | | - * @author Sp5uhe |
190 | | - */ |
191 | | -$messages['pl'] = array( |
192 | | - 'mwembed-desc' => 'Zapewnia wsparcie dla modułów i rozszerzeń mwEmbed', |
193 | | -); |
194 | | - |
195 | | -/** Piedmontese (Piemontèis) |
196 | | - * @author Borichèt |
197 | | - */ |
198 | | -$messages['pms'] = array( |
199 | | - 'mwembed-desc' => "A manten ij mòduj e j'estension mwEmbed", |
200 | | -); |
201 | | - |
202 | | -/** Portuguese (Português) |
203 | | - * @author Waldir |
204 | | - */ |
205 | | -$messages['pt'] = array( |
206 | | - 'mwembed-desc' => 'Fornece suporte para módulos e extensões mwEmbed', |
207 | | -); |
208 | | - |
209 | | -/** Brazilian Portuguese (Português do Brasil) |
210 | | - * @author Giro720 |
211 | | - */ |
212 | | -$messages['pt-br'] = array( |
213 | | - 'mwembed-desc' => 'Fornece suporte para módulos e extensões mwEmbed', |
214 | | -); |
215 | | - |
216 | | -/** Tarandíne (Tarandíne) |
217 | | - * @author Joetaras |
218 | | - */ |
219 | | -$messages['roa-tara'] = array( |
220 | | - 'mwembed-desc' => 'Dè supporte pe le module mwEmbed e le estenziune sue', |
221 | | -); |
222 | | - |
223 | | -/** Russian (Русский) |
224 | | - * @author Александр Сигачёв |
225 | | - */ |
226 | | -$messages['ru'] = array( |
227 | | - 'mwembed-desc' => 'Расширение MwEmbed обеспечивает поддержку модулей mwEmbed', |
228 | | -); |
229 | | - |
230 | | -/** Swedish (Svenska) |
231 | | - * @author Ainali |
232 | | - */ |
233 | | -$messages['sv'] = array( |
234 | | - 'mwembed-desc' => 'Ger stöd för mwEmbed moduler och tillägg', |
235 | | -); |
236 | | - |
237 | | -/** Tagalog (Tagalog) |
238 | | - * @author AnakngAraw |
239 | | - */ |
240 | | -$messages['tl'] = array( |
241 | | - 'mwembed-desc' => 'Nagbibigay ng suporta para sa mga modulo at mga dugtong na mwEmbed', |
242 | | -); |
243 | | - |
244 | | -/** Ukrainian (Українська) |
245 | | - * @author Тест |
246 | | - */ |
247 | | -$messages['uk'] = array( |
248 | | - 'mwembed-desc' => 'Забезпечує підтримку модулів та розширень mwEmbed', |
249 | | -); |
250 | | - |
251 | | -/** Traditional Chinese (中文(繁體)) |
252 | | - * @author Mark85296341 |
253 | | - */ |
254 | | -$messages['zh-hant'] = array( |
255 | | - 'mwembed-desc' => '提供支援 mwEmbed 的模塊及擴充套件', |
256 | | -); |
257 | | - |
Index: trunk/extensions/MwEmbedSupport/MwEmbedSupport.i18n.php |
— | — | @@ -0,0 +1,256 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Internationalisation for MwEmbed extension |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$messages = array(); |
| 11 | + |
| 12 | +/** English |
| 13 | + * @author Michael Dale |
| 14 | + */ |
| 15 | +$messages['en'] = array( |
| 16 | + /* Editing Preference Categories */ |
| 17 | + 'mwembed-desc' => 'Provides support for mwEmbed modules and extensions', |
| 18 | +); |
| 19 | + |
| 20 | +/** Afrikaans (Afrikaans) |
| 21 | + * @author Naudefj |
| 22 | + */ |
| 23 | +$messages['af'] = array( |
| 24 | + 'mwembed-desc' => 'Bied ondersteuning vir mwEmbed-modules en -uitbreidings', |
| 25 | +); |
| 26 | + |
| 27 | +/** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца)) |
| 28 | + * @author Jim-by |
| 29 | + */ |
| 30 | +$messages['be-tarask'] = array( |
| 31 | + 'mwembed-desc' => 'Пашырэньне падтрымкі для модуляў і пашырэньняў mwEmbed', |
| 32 | +); |
| 33 | + |
| 34 | +/** Bengali (বাংলা) |
| 35 | + * @author Bellayet |
| 36 | + */ |
| 37 | +$messages['bn'] = array( |
| 38 | + 'mwembed-desc' => 'mwEmbed মডিউল এবং এক্সটেনশন সমর্থন প্রদান করে', |
| 39 | +); |
| 40 | + |
| 41 | +/** Breton (Brezhoneg) |
| 42 | + * @author Fulup |
| 43 | + */ |
| 44 | +$messages['br'] = array( |
| 45 | + 'mwembed-desc' => 'Pourvezañ a ra ur skor evit modulennoù hag astennoù mwEmbed', |
| 46 | +); |
| 47 | + |
| 48 | +/** Bosnian (Bosanski) |
| 49 | + * @author CERminator |
| 50 | + */ |
| 51 | +$messages['bs'] = array( |
| 52 | + 'mwembed-desc' => 'Omogućava podršku za mwEmbed module i proširenja', |
| 53 | +); |
| 54 | + |
| 55 | +/** Catalan (Català) |
| 56 | + * @author Toniher |
| 57 | + */ |
| 58 | +$messages['ca'] = array( |
| 59 | + 'mwembed-desc' => "Proporciona assistència per a mòduls i extensions de l'mwEmbed.", |
| 60 | +); |
| 61 | + |
| 62 | +/** Czech (Česky) |
| 63 | + * @author Mormegil |
| 64 | + */ |
| 65 | +$messages['cs'] = array( |
| 66 | + 'mwembed-desc' => 'Poskytuje podporu pro moduly a rozšíření mwEmbed', |
| 67 | +); |
| 68 | + |
| 69 | +/** German (Deutsch) |
| 70 | + * @author Kghbln |
| 71 | + */ |
| 72 | +$messages['de'] = array( |
| 73 | + 'mwembed-desc' => 'Ermöglicht die Nutzung von Modulen und Erweiterungen, die „mwEmbed“ benötigen', |
| 74 | +); |
| 75 | + |
| 76 | +/** Lower Sorbian (Dolnoserbski) |
| 77 | + * @author Michawiki |
| 78 | + */ |
| 79 | +$messages['dsb'] = array( |
| 80 | + 'mwembed-desc' => 'Dawa pódpěru za module a rozšyrjenja za mwEmbed', |
| 81 | +); |
| 82 | + |
| 83 | +/** Greek (Ελληνικά) |
| 84 | + * @author Evropi |
| 85 | + */ |
| 86 | +$messages['el'] = array( |
| 87 | + 'mwembed-desc' => 'Παρέχει υποστήριξη για τις μονάδες και επεκτάσεις του mwEmbed', |
| 88 | +); |
| 89 | + |
| 90 | +/** Spanish (Español) |
| 91 | + * @author Locos epraix |
| 92 | + */ |
| 93 | +$messages['es'] = array( |
| 94 | + 'mwembed-desc' => 'Proporciona soporte para módulos y extensiones mwEmbed', |
| 95 | +); |
| 96 | + |
| 97 | +/** French (Français) |
| 98 | + * @author Peter17 |
| 99 | + */ |
| 100 | +$messages['fr'] = array( |
| 101 | + 'mwembed-desc' => 'L’extension MwEmbed fournit un support pour les modules et extensions mwEmbed', |
| 102 | +); |
| 103 | + |
| 104 | +/** Galician (Galego) |
| 105 | + * @author Toliño |
| 106 | + */ |
| 107 | +$messages['gl'] = array( |
| 108 | + 'mwembed-desc' => 'Ofrece soporte para módulos e extensións mwEmbed', |
| 109 | +); |
| 110 | + |
| 111 | +/** Swiss German (Alemannisch) |
| 112 | + * @author Als-Holder |
| 113 | + */ |
| 114 | +$messages['gsw'] = array( |
| 115 | + 'mwembed-desc' => 'Unterstitzig fir d Nutzig vu „mwEmbed“-Module un -Erwyterige', |
| 116 | +); |
| 117 | + |
| 118 | +/** Hebrew (עברית) |
| 119 | + * @author YaronSh |
| 120 | + */ |
| 121 | +$messages['he'] = array( |
| 122 | + 'mwembed-desc' => 'אספקת תמיכה במודולים והרחבות של mwEmbed', |
| 123 | +); |
| 124 | + |
| 125 | +/** Upper Sorbian (Hornjoserbsce) |
| 126 | + * @author Michawiki |
| 127 | + */ |
| 128 | +$messages['hsb'] = array( |
| 129 | + 'mwembed-desc' => 'Skići podpěru za module a rozšěrjenja mwEmbed', |
| 130 | +); |
| 131 | + |
| 132 | +/** Hungarian (Magyar) |
| 133 | + * @author BáthoryPéter |
| 134 | + */ |
| 135 | +$messages['hu'] = array( |
| 136 | + 'mwembed-desc' => 'Támogatást nyújt az „mwEmbed“ modulokhoz és bővítményekhez', |
| 137 | +); |
| 138 | + |
| 139 | +/** Interlingua (Interlingua) |
| 140 | + * @author McDutchie |
| 141 | + */ |
| 142 | +$messages['ia'] = array( |
| 143 | + 'mwembed-desc' => 'Le extension MwEmbed forni supporto pro modulos e extensiones mwEmbed', |
| 144 | +); |
| 145 | + |
| 146 | +/** Indonesian (Bahasa Indonesia) |
| 147 | + * @author IvanLanin |
| 148 | + */ |
| 149 | +$messages['id'] = array( |
| 150 | + 'mwembed-desc' => 'Menyediakan dukungan untuk modul dan ekstensi mwEmbed', |
| 151 | +); |
| 152 | + |
| 153 | +/** Japanese (日本語) |
| 154 | + * @author 青子守歌 |
| 155 | + */ |
| 156 | +$messages['ja'] = array( |
| 157 | + 'mwembed-desc' => 'mwEmbed拡張機能は、mwEmbedモジュールと拡張機能のサポートを提供します', |
| 158 | +); |
| 159 | + |
| 160 | +/** Luxembourgish (Lëtzebuergesch) |
| 161 | + * @author Robby |
| 162 | + */ |
| 163 | +$messages['lb'] = array( |
| 164 | + 'mwembed-desc' => 'Erméiglecht d\'Benotze vu Moduler an Erweiderungen, déi "mwEmbed" brauchen', |
| 165 | +); |
| 166 | + |
| 167 | +/** Macedonian (Македонски) |
| 168 | + * @author Bjankuloski06 |
| 169 | + */ |
| 170 | +$messages['mk'] = array( |
| 171 | + 'mwembed-desc' => 'Додатокот MwEmbed дава поддршка за mwEmbed-модули и додатоци', |
| 172 | +); |
| 173 | + |
| 174 | +/** Dutch (Nederlands) |
| 175 | + * @author Siebrand |
| 176 | + */ |
| 177 | +$messages['nl'] = array( |
| 178 | + 'mwembed-desc' => 'MwEmbed biedt ondersteuning voor module en uitbreidingen van mwEmbed', |
| 179 | +); |
| 180 | + |
| 181 | +/** Norwegian (bokmål) (Norsk (bokmål)) |
| 182 | + * @author Nghtwlkr |
| 183 | + */ |
| 184 | +$messages['no'] = array( |
| 185 | + 'mwembed-desc' => 'Gir støtte for mwEmbed-moduler og -utvidelser', |
| 186 | +); |
| 187 | + |
| 188 | +/** Polish (Polski) |
| 189 | + * @author Sp5uhe |
| 190 | + */ |
| 191 | +$messages['pl'] = array( |
| 192 | + 'mwembed-desc' => 'Zapewnia wsparcie dla modułów i rozszerzeń mwEmbed', |
| 193 | +); |
| 194 | + |
| 195 | +/** Piedmontese (Piemontèis) |
| 196 | + * @author Borichèt |
| 197 | + */ |
| 198 | +$messages['pms'] = array( |
| 199 | + 'mwembed-desc' => "A manten ij mòduj e j'estension mwEmbed", |
| 200 | +); |
| 201 | + |
| 202 | +/** Portuguese (Português) |
| 203 | + * @author Waldir |
| 204 | + */ |
| 205 | +$messages['pt'] = array( |
| 206 | + 'mwembed-desc' => 'Fornece suporte para módulos e extensões mwEmbed', |
| 207 | +); |
| 208 | + |
| 209 | +/** Brazilian Portuguese (Português do Brasil) |
| 210 | + * @author Giro720 |
| 211 | + */ |
| 212 | +$messages['pt-br'] = array( |
| 213 | + 'mwembed-desc' => 'Fornece suporte para módulos e extensões mwEmbed', |
| 214 | +); |
| 215 | + |
| 216 | +/** Tarandíne (Tarandíne) |
| 217 | + * @author Joetaras |
| 218 | + */ |
| 219 | +$messages['roa-tara'] = array( |
| 220 | + 'mwembed-desc' => 'Dè supporte pe le module mwEmbed e le estenziune sue', |
| 221 | +); |
| 222 | + |
| 223 | +/** Russian (Русский) |
| 224 | + * @author Александр Сигачёв |
| 225 | + */ |
| 226 | +$messages['ru'] = array( |
| 227 | + 'mwembed-desc' => 'Расширение MwEmbed обеспечивает поддержку модулей mwEmbed', |
| 228 | +); |
| 229 | + |
| 230 | +/** Swedish (Svenska) |
| 231 | + * @author Ainali |
| 232 | + */ |
| 233 | +$messages['sv'] = array( |
| 234 | + 'mwembed-desc' => 'Ger stöd för mwEmbed moduler och tillägg', |
| 235 | +); |
| 236 | + |
| 237 | +/** Tagalog (Tagalog) |
| 238 | + * @author AnakngAraw |
| 239 | + */ |
| 240 | +$messages['tl'] = array( |
| 241 | + 'mwembed-desc' => 'Nagbibigay ng suporta para sa mga modulo at mga dugtong na mwEmbed', |
| 242 | +); |
| 243 | + |
| 244 | +/** Ukrainian (Українська) |
| 245 | + * @author Тест |
| 246 | + */ |
| 247 | +$messages['uk'] = array( |
| 248 | + 'mwembed-desc' => 'Забезпечує підтримку модулів та розширень mwEmbed', |
| 249 | +); |
| 250 | + |
| 251 | +/** Traditional Chinese (中文(繁體)) |
| 252 | + * @author Mark85296341 |
| 253 | + */ |
| 254 | +$messages['zh-hant'] = array( |
| 255 | + 'mwembed-desc' => '提供支援 mwEmbed 的模塊及擴充套件', |
| 256 | +); |
| 257 | + |
Property changes on: trunk/extensions/MwEmbedSupport/MwEmbedSupport.i18n.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 258 | + native |
Index: trunk/extensions/MwEmbedSupport/MwEmbedSupport.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | MwEmbedResourceManager::register( 'extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport' ); |
44 | 44 | |
45 | 45 | // Register the MwEmbed 'mediaWiki' Module: |
46 | | -MwEmbedResourceManager::register( 'extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport' ); |
| 46 | +MwEmbedResourceManager::register( 'extensions/MwEmbedSupport/MwEmbedModules/MediaWikiSupport' ); |
47 | 47 | |
48 | 48 | // Add MwEmbedSupport to Startup: |
49 | 49 | function MwUpdateStartupModules( &$modules ){ |
Index: trunk/extensions/MwEmbedSupport/MwEmbedModules/MediaWikiSupport/MediaWikiSupport.loader.js |
— | — | @@ -1,11 +1,10 @@ |
2 | 2 | |
3 | 3 | // Wrap in mediaWiki |
4 | 4 | ( function( mw ) { |
5 | | - |
6 | 5 | // Add MediaWikiSupportPlayer dependency on players with mwtitle |
7 | 6 | $( mw ).bind( 'EmbedPlayerUpdateDependencies', function( event, embedPlayer, dependencySet ){ |
8 | 7 | if( $( embedPlayer ).attr( 'data-mwtitle' ) ){ |
9 | | - $.merge( dependencySet, ['MediaWikiSupportPlayer'] ); |
| 8 | + $.merge( dependencySet, ['MediaWikiPlayerSupport'] ); |
10 | 9 | } |
11 | 10 | }); |
12 | 11 | |
Index: trunk/extensions/MwEmbedSupport/MwEmbedModules/MediaWikiSupport/MediaWikiSupport.php |
— | — | @@ -1,8 +1,8 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | return array( |
5 | | - "MediaWikiSupportPlayer" => array( |
6 | | - 'scripts' => 'resources/MediaWikiSupportPlayer.js', |
| 5 | + "MediaWikiPlayerSupport" => array( |
| 6 | + 'scripts' => 'resources/MediaWikiPlayerSupport.js', |
7 | 7 | 'dependencies'=> array( |
8 | 8 | 'mw.Api' |
9 | 9 | ) |
Index: trunk/extensions/MwEmbedSupport/MwEmbedModules/MediaWikiSupport/resources/MediaWikiPlayerSupport.js |
— | — | @@ -21,6 +21,7 @@ |
22 | 22 | * Master function to add mediaWiki support to embedPlayer |
23 | 23 | */ |
24 | 24 | mw.addMediaWikiPlayerSupport = function( embedPlayer ){ |
| 25 | + |
25 | 26 | // Set some local variables: |
26 | 27 | if( ! $( embedPlayer).attr( 'data-mwtitle') ){ |
27 | 28 | mw.log( 'Error MediaWikiSupportPlayer:: no mwtitle!'); |
— | — | @@ -148,8 +149,8 @@ |
149 | 150 | * Issues a request to populate the credits box |
150 | 151 | */ |
151 | 152 | var $creditsCache = false; |
152 | | - function getCredits( $target, callback ){ |
153 | | - if( ! $creditsCache ){ |
| 153 | + function showCredits( $target, callback ){ |
| 154 | + if( $creditsCache ){ |
154 | 155 | $target.html( $creditsCache ); |
155 | 156 | callback( true ); |
156 | 157 | return; |
— | — | @@ -173,7 +174,7 @@ |
174 | 175 | if( imageProps.imageinfo && imageProps.imageinfo[0] && imageProps.imageinfo[0].descriptionurl ){ |
175 | 176 | $creditsCache = doCreditLine( imageProps.imageinfo[0].descriptionurl ); |
176 | 177 | // Found page |
177 | | - $target.html($creditsCache); |
| 178 | + $target.html( $creditsCache ); |
178 | 179 | callback( true ); |
179 | 180 | return ; |
180 | 181 | } |
— | — | @@ -190,7 +191,7 @@ |
191 | 192 | // Show credits when requested |
192 | 193 | $( embedPlayer ).bind('ShowCredits', function( event, $target, callback){ |
193 | 194 | // Only request the credits once: |
194 | | - getCredits( $target, callback); |
| 195 | + showCredits( $target, callback); |
195 | 196 | }); |
196 | 197 | |
197 | 198 | $( embedPlayer ).bind('CheckPlayerSourcesEvent', function(event, callback){ |
Index: trunk/extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport/jquery/jquery.mwEmbedUtil.js |
— | — | @@ -3,8 +3,27 @@ |
4 | 4 | */ |
5 | 5 | |
6 | 6 | ( function( $ ) { |
7 | | - |
| 7 | + |
8 | 8 | /** |
| 9 | + * Extend Unique to work with strings and number values |
| 10 | + * http://paulirish.com/2010/duck-punching-with-jquery/ |
| 11 | + */ |
| 12 | + var _old = $.unique; |
| 13 | + |
| 14 | + $.unique = function(arr){ |
| 15 | + |
| 16 | + // do the default behavior only if we got an array of elements |
| 17 | + if (!!arr[0].nodeType){ |
| 18 | + return _old.apply(this,arguments); |
| 19 | + } else { |
| 20 | + // reduce the array to contain no dupes via grep/inArray |
| 21 | + return $.grep(arr,function(v,k){ |
| 22 | + return $.inArray(v,arr) === k; |
| 23 | + }); |
| 24 | + } |
| 25 | + }; |
| 26 | + |
| 27 | + /** |
9 | 28 | * Set a given selector html to the loading spinner: |
10 | 29 | */ |
11 | 30 | $.fn.loadingSpinner = function( ) { |
Index: trunk/extensions/TimedMediaHandler/TimedMediaHandler.php |
— | — | @@ -39,13 +39,6 @@ |
40 | 40 | // Register the MwEmbed TimedText module: |
41 | 41 | MwEmbedResourceManager::register( 'extensions/TimedMediaHandler/resources/TimedText' ); |
42 | 42 | |
43 | | -// Register traditional resource loader resources: |
44 | | -$wgResourceModules += array( |
45 | | - 'MediaWikiPlayerSupport' => array( |
46 | | - 'scripts' => 'resources/MediaWikiPlayerSupport.js' |
47 | | - ) |
48 | | -); |
49 | | - |
50 | 43 | // Setup a hook for iframe=true (will strip the interface and only output the player) |
51 | 44 | $wgHooks['ArticleFromTitle'][] = 'TimedMediaHandler::iframeOutputHook'; |
52 | 45 | |
Index: trunk/extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php |
— | — | @@ -101,7 +101,7 @@ |
102 | 102 | * also see: http://firefogg.org/dev/index.html |
103 | 103 | */ |
104 | 104 | public static $foggMap = array( |
105 | | - //video |
| 105 | + // video |
106 | 106 | 'width' => "--width", |
107 | 107 | 'height' => "--height", |
108 | 108 | 'maxSize' => "--max_size", |
— | — | @@ -121,13 +121,13 @@ |
122 | 122 | 'denoise' => array("--pp", "de"), |
123 | 123 | 'novideo' => array("--novideo", "--no-skeleton"), |
124 | 124 | 'bufDelay' => "--buf-delay", |
125 | | - //audio |
| 125 | + // audio |
126 | 126 | 'audioQuality' => "-a", |
127 | 127 | 'audioBitrate' => "-A", |
128 | 128 | 'samplerate' => "-H", |
129 | 129 | 'channels' => "-c", |
130 | 130 | 'noaudio' => "--noaudio", |
131 | | - //metadata |
| 131 | + // metadata |
132 | 132 | 'artist' => "--artist", |
133 | 133 | 'title' => "--title", |
134 | 134 | 'date' => "--date", |
Index: trunk/extensions/TimedMediaHandler/resources/EmbedPlayer/EmbedPlayer.loader.js |
— | — | @@ -106,6 +106,9 @@ |
107 | 107 | $( mw ).trigger( 'EmbedPlayerUpdateDependencies', |
108 | 108 | [ playerElement, dependencySet ] ); |
109 | 109 | }); |
| 110 | + // Remove duplicates in the dependencySet |
| 111 | + dependencySet = $.unique( dependencySet ); |
| 112 | + |
110 | 113 | // Do the request and process the playerElements with updated dependency set |
111 | 114 | mediaWiki.loader.using( dependencySet, function(){ |
112 | 115 | setTimeout(function(){ |