Index: trunk/extensions/TimedMediaHandler/TimedMediaHandler.php |
— | — | @@ -28,9 +28,9 @@ |
29 | 29 | $wgExtensionMessagesFiles['TimedMediaHandlerMagic'] = "$timedMediaDir/TimedMediaHandler.i18n.magic.php"; |
30 | 30 | $wgParserOutputHooks['TimedMediaHandler'] = array( 'TimedMediaHandler', 'outputHook' ); |
31 | 31 | |
32 | | -// Load all the mwEmbed modules: |
33 | | -MwEmbedResourceManager::registerModulePath( 'extensions/TimedMediaHandler/EmbedPlayer' ); |
34 | | -MwEmbedResourceManager::registerModulePath( 'extensions/TimedMediaHandler/TimedText' ); |
| 32 | +// Load all the MwEmbed modules: |
| 33 | +MwEmbedResourceManager::register( 'extensions/TimedMediaHandler/EmbedPlayer' ); |
| 34 | +MwEmbedResourceManager::register( 'extensions/TimedMediaHandler/TimedText' ); |
35 | 35 | |
36 | 36 | |
37 | 37 | // Setup a hook for iframe=true (will strip the interface and only output the player) |
Index: trunk/extensions/TimedMediaHandler/README |
— | — | @@ -6,16 +6,17 @@ |
7 | 7 | * use embedPlayer mwEmbed javascript module for playback |
8 | 8 | |
9 | 9 | |
10 | | -== Old oggHandler Readme == |
11 | | - |
12 | | -This extension provides a media handler for the Ogg container format. When |
| 10 | +This extension provides a media handler for the Ogg and WebM container format. When |
13 | 11 | enabled, a player will be automatically embedded in the image description page, |
14 | 12 | or any wiki page using the same syntax as for images. |
15 | 13 | |
16 | 14 | To install this extension, add the following to the end of your LocalSettings.php: |
17 | 15 | |
18 | | - require( "$IP/extensions/OggHandler/OggHandler.php" ); |
| 16 | + // TimedMediaHandler is dependent on mwEmbedSupport |
| 17 | + require( "$IP/extensions/ |
19 | 18 | |
| 19 | + require( "$IP/extensions/TimedMediaHandler/TimedMediaHandler.php" ); |
| 20 | + |
20 | 21 | oggThumb |
21 | 22 | ------ |
22 | 23 | |
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/MwEmbedModules/MwEmbedSupport/README |
— | — | @@ -1,3 +1,3 @@ |
2 | 2 | This is the mwEmbed Support module it supplies common functionality that other mwEmbed modules depend on. |
3 | 3 | |
4 | | -Modules can express the dependency as 'mwembed.support' |
\ No newline at end of file |
| 4 | +Modules can express the dependency as 'mwEmbedSupport' |
\ No newline at end of file |
Index: trunk/extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport/mwEmbedSupport.js |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | 'video audio source track'.replace(/\w+/g,function( n ){ document.createElement( n ) } ); |
5 | 5 | |
6 | 6 | /** |
7 | | - * mwEmbedSupport includes shared mwEmbed utilities that either |
| 7 | + * MwEmbedSupport includes shared mwEmbed utilities that either |
8 | 8 | * wrap core mediawiki functionality or support legacy mwEmbed module code |
9 | 9 | * |
10 | 10 | * @license |
Index: trunk/extensions/MwEmbedSupport/MwEmbedResourceManager.php |
— | — | @@ -85,24 +85,25 @@ |
86 | 86 | * Adds any mwEmbedResources to the ResourceLoader |
87 | 87 | */ |
88 | 88 | public static function registerModules( &$resourceLoader ) { |
89 | | - global $IP; |
| 89 | + global $IP, $wgStandAloneResourceLoaderMode; |
90 | 90 | // Register all the resources with the resource loader |
91 | 91 | foreach( self::$moduleSet as $path => $modules ) { |
92 | | - foreach ( $modules as $name => $resources ) { |
93 | | - $resourceLoader->register( |
94 | | - // Resource loader expects trailing slash: |
95 | | - $name, new MwEmbedResourceLoaderFileModule( $resources, "$IP/$path", $path) |
96 | | - ); |
| 92 | + foreach ( $modules as $name => $resources ) { |
| 93 | + // Register the resource with MwEmbed extended class if in standAlone resource loader mode: |
| 94 | + if( $wgStandAloneResourceLoaderMode === true ){ |
| 95 | + $resourceLoader->register( |
| 96 | + // Resource loader expects trailing slash: |
| 97 | + $name, new MwEmbedResourceLoaderFileModule( $resources, "$IP/$path", $path) |
| 98 | + ); |
| 99 | + } else { |
| 100 | + $resourceLoader->register( |
| 101 | + // Resource loader expects trailing slash: |
| 102 | + $name, new ResourceLoaderFileModule( $resources, "$IP/$path", $path) |
| 103 | + ); |
| 104 | + } |
97 | 105 | } |
98 | 106 | } |
99 | 107 | // Continue module processing |
100 | 108 | return true; |
101 | 109 | } |
102 | | - |
103 | | - // Add the mwEmbed module to the page: |
104 | | - public static function addMwEmbedModule( &$out, &$sk ){ |
105 | | - // Add the mwEmbed module to the output |
106 | | - $out->addModules( 'MwEmbedSupport' ); |
107 | | - return true; |
108 | | - } |
109 | 110 | } |
\ No newline at end of file |
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 |
— | — | @@ -13,8 +13,11 @@ |
14 | 14 | |
15 | 15 | /* Configuration */ |
16 | 16 | |
| 17 | +// When used as an extension we are not in StandAloneResourceLoaderMode: |
| 18 | +$wgStandAloneResourceLoaderMode = false; |
| 19 | + |
| 20 | + |
17 | 21 | /* Setup */ |
18 | | - |
19 | 22 | $wgExtensionCredits['other'][] = array( |
20 | 23 | 'path' => __FILE__, |
21 | 24 | 'name' => 'MwEmbedSupport', |
— | — | @@ -29,9 +32,11 @@ |
30 | 33 | |
31 | 34 | // Add Global MwEmbed Registration hook |
32 | 35 | $wgHooks['ResourceLoaderRegisterModules'][] = 'MwEmbedResourceManager::registerModules'; |
| 36 | + |
33 | 37 | // Add MwEmbed module configuration |
34 | 38 | $wgHooks['ResourceLoaderGetConfigVars'][] = 'MwEmbedResourceManager::registerConfigVars'; |
35 | 39 | |
| 40 | +/* MwEmbed Module Registration */ |
36 | 41 | |
37 | 42 | // Register the core MwEmbed Support Module: |
38 | 43 | MwEmbedResourceManager::register( 'extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport' ); |
— | — | @@ -39,3 +44,10 @@ |
40 | 45 | // Register the MwEmbed 'mediaWiki' Module: |
41 | 46 | MwEmbedResourceManager::register( 'extensions/MwEmbedSupport/MwEmbedModules/MwEmbedSupport' ); |
42 | 47 | |
| 48 | +// Add MwEmbedSupport to Startup: |
| 49 | +function MwUpdateStartupModules( &$modules ){ |
| 50 | + array_push($modules, 'jquery.triggerQueueCallback', 'jquery.mwEmbedUtil', 'mwEmbedStartup' ); |
| 51 | + return true; |
| 52 | +} |
| 53 | +$wgHooks['ResourceLoaderGetStartupModules'][] = 'MwUpdateStartupModules'; |
| 54 | + |