Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -212,7 +212,9 @@ |
213 | 213 | |
214 | 214 | $wgResourceModules['ext.translate.special.importtranslations'] = array( |
215 | 215 | 'scripts' => 'resources/ext.translate.special.importtranslations.js', |
216 | | - 'dependencies' => array( 'jquery.ui.autocomplete' ), |
| 216 | + 'dependencies' => array( |
| 217 | + 'jquery.ui.autocomplete', |
| 218 | + ), |
217 | 219 | ) + $resourcePaths; |
218 | 220 | |
219 | 221 | $wgResourceModules['ext.translate.selecttoinput'] = array( |
Index: trunk/extensions/Translate/resources/ext.translate.special.importtranslations.js |
— | — | @@ -1,4 +1,11 @@ |
2 | 2 | jQuery( function( $ ) { |
| 3 | + // BC for MW < 1.18 |
| 4 | + if ( !mw.util.wikiScript ) { |
| 5 | + mw.util.wikiScript = function( str ) { |
| 6 | + return mw.config.get( 'wgScriptPath' ) + '/' + ( str || 'index' ) + mw.config.get( 'wgScriptExtension' ); |
| 7 | + } |
| 8 | + } |
| 9 | + |
3 | 10 | $(".mw-translate-import-inputs").change( function() { |
4 | 11 | var id = $(this).attr( "id" ).replace( /-input/, "" ); |
5 | 12 | $( "input[name=upload-type]:checked" ).attr( "checked", false ); |
Index: trunk/extensions/Translate/resources/ext.translate.messagetable.js |
— | — | @@ -1,4 +1,11 @@ |
2 | 2 | jQuery( function( $ ) { |
| 3 | + // BC for MW < 1.18 |
| 4 | + if ( !mw.util.wikiScript ) { |
| 5 | + mw.util.wikiScript = function( str ) { |
| 6 | + return mw.config.get( 'wgScriptPath' ) + '/' + ( str || 'index' ) + mw.config.get( 'wgScriptExtension' ); |
| 7 | + } |
| 8 | + } |
| 9 | + |
3 | 10 | $( ".mw-translate-messagereviewbutton" ).click( function() { |
4 | 11 | var $b = $(this); |
5 | 12 | |
Index: trunk/extensions/Translate/resources/ext.translate.special.translate.js |
— | — | @@ -1,4 +1,11 @@ |
2 | | -jQuery( document ).ready( function( $ ) { |
| 2 | +jQuery( function( $ ) { |
| 3 | + // BC for MW < 1.18 |
| 4 | + if ( !mw.util.wikiScript ) { |
| 5 | + mw.util.wikiScript = function( str ) { |
| 6 | + return mw.config.get( 'wgScriptPath' ) + '/' + ( str || 'index' ) + mw.config.get( 'wgScriptExtension' ); |
| 7 | + } |
| 8 | + } |
| 9 | + |
3 | 10 | var $submit = $( "input#mw-translate-workflowset" ); |
4 | 11 | var $select = $( "#mw-sp-translate-workflow select" ); |
5 | 12 | $select.find( "option[value=]" ).attr( "disabled", "disabled" ); |
Index: trunk/extensions/Translate/README |
— | — | @@ -29,6 +29,8 @@ |
30 | 30 | http://translatewiki.net/docs/Translate/html/ |
31 | 31 | |
32 | 32 | == Change log == |
| 33 | +* 2011-11-06 |
| 34 | +- Fixed compatibility with MW 1.17 in JavaScript |
33 | 35 | * 2011-11-04 |
34 | 36 | - fuzzy.php can now take optional namespace prefix for each message |
35 | 37 | * 2011-10-30 |