r106799 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106798‎ | r106799 | r106800 >
Date:13:56, 20 December 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Alphabeti...size?
Modified paths:
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -162,23 +162,6 @@
163163 'styles' => 'resources/ext.translate.css',
164164 ) + $resourcePaths;
165165
166 -$wgResourceModules['ext.translate.special.languagestats'] = array(
167 - 'scripts' => 'resources/ext.translate.special.languagestats.js',
168 - 'styles' => 'resources/ext.translate.special.languagestats.css',
169 - 'messages' => array( 'translate-langstats-expandall', 'translate-langstats-collapseall', 'translate-langstats-expand', 'translate-langstats-collapse' ),
170 -) + $resourcePaths;
171 -
172 -$wgResourceModules['ext.translate.quickedit'] = array(
173 - 'scripts' => 'resources/ext.translate.quickedit.js',
174 - 'styles' => 'resources/ext.translate.quickedit.css',
175 - 'messages' => array( 'translate-js-nonext', 'translate-js-save-failed' ),
176 - 'dependencies' => array(
177 - 'jquery.form',
178 - 'jquery.ui.dialog',
179 - 'jquery.autoresize',
180 - ),
181 -) + $resourcePaths;
182 -
183166 $wgResourceModules['ext.translate.messagetable'] = array(
184167 'scripts' => 'resources/ext.translate.messagetable.js',
185168 'styles' => 'resources/ext.translate.messagetable.css',
@@ -196,27 +179,21 @@
197180 ),
198181 ) + $resourcePaths;
199182
200 -$wgResourceModules['ext.translate.special.translate'] = array(
201 - 'styles' => 'resources/ext.translate.special.translate.css',
202 - 'scripts' => 'resources/ext.translate.special.translate.js',
203 - 'position' => 'top',
204 - 'messages' => array(
205 - 'translate-workflow-set-do',
206 - 'translate-workflow-set-doing',
207 - 'translate-workflow-set-done',
 183+$wgResourceModules['ext.translate.quickedit'] = array(
 184+ 'scripts' => 'resources/ext.translate.quickedit.js',
 185+ 'styles' => 'resources/ext.translate.quickedit.css',
 186+ 'messages' => array( 'translate-js-nonext', 'translate-js-save-failed' ),
 187+ 'dependencies' => array(
 188+ 'jquery.form',
 189+ 'jquery.ui.dialog',
 190+ 'jquery.autoresize',
208191 ),
209192 ) + $resourcePaths;
210193
211 -$wgResourceModules['ext.translate.special.supportedlanguages'] = array(
212 - 'styles' => 'resources/ext.translate.special.supportedlanguages.css',
213 - 'position' => 'top',
 194+$wgResourceModules['ext.translate.selecttoinput'] = array(
 195+ 'scripts' => 'resources/ext.translate.selecttoinput.js',
214196 ) + $resourcePaths;
215197
216 -$wgResourceModules['ext.translate.special.pagetranslation'] = array(
217 - 'styles' => 'resources/ext.translate.special.pagetranslation.css',
218 - 'position' => 'top',
219 -) + $resourcePaths;
220 -
221198 $wgResourceModules['ext.translate.special.importtranslations'] = array(
222199 'scripts' => 'resources/ext.translate.special.importtranslations.js',
223200 'dependencies' => array(
@@ -224,10 +201,33 @@
225202 ),
226203 ) + $resourcePaths;
227204
228 -$wgResourceModules['ext.translate.selecttoinput'] = array(
229 - 'scripts' => 'resources/ext.translate.selecttoinput.js',
 205+$wgResourceModules['ext.translate.special.languagestats'] = array(
 206+ 'scripts' => 'resources/ext.translate.special.languagestats.js',
 207+ 'styles' => 'resources/ext.translate.special.languagestats.css',
 208+ 'messages' => array( 'translate-langstats-expandall', 'translate-langstats-collapseall', 'translate-langstats-expand', 'translate-langstats-collapse' ),
230209 ) + $resourcePaths;
231210
 211+$wgResourceModules['ext.translate.special.pagetranslation'] = array(
 212+ 'styles' => 'resources/ext.translate.special.pagetranslation.css',
 213+ 'position' => 'top',
 214+) + $resourcePaths;
 215+
 216+$wgResourceModules['ext.translate.special.supportedlanguages'] = array(
 217+ 'styles' => 'resources/ext.translate.special.supportedlanguages.css',
 218+ 'position' => 'top',
 219+) + $resourcePaths;
 220+
 221+$wgResourceModules['ext.translate.special.translate'] = array(
 222+ 'styles' => 'resources/ext.translate.special.translate.css',
 223+ 'scripts' => 'resources/ext.translate.special.translate.js',
 224+ 'position' => 'top',
 225+ 'messages' => array(
 226+ 'translate-workflow-set-do',
 227+ 'translate-workflow-set-doing',
 228+ 'translate-workflow-set-done',
 229+ ),
 230+) + $resourcePaths;
 231+
232232 $wgResourceModules['jquery.autoresize'] = array(
233233 'scripts' => 'resources/jquery.autoresize.js',
234234 ) + $resourcePaths;

Status & tagging log