Uživatel:Admin/common.js: Porovnání verzí

(Založena nová stránka s textem „//translate the following: mw.messages.set({ 've-SearchAndReplaceDialog-title': 'Search and replace', 've-SearchAndReplaceDialog-from-label': 'From:', '…“)
 
Řádek 15: Řádek 15:
 
mw.loader.using( 'ext.visualEditor.viewPageTarget.init', function(){
 
mw.loader.using( 'ext.visualEditor.viewPageTarget.init', function(){
 
mw.libs.ve.addPlugin( function() {  
 
mw.libs.ve.addPlugin( function() {  
 +
                alert('Test');
 
return $.getScript('https://en.wikipedia.org/w/index.php?title=User:ערן/veReplace.js&action=raw&ctype=text/javascript');  
 
return $.getScript('https://en.wikipedia.org/w/index.php?title=User:ערן/veReplace.js&action=raw&ctype=text/javascript');  
 
} );
 
} );
 
});
 
});

Verze z 17. 8. 2015, 14:56

//translate the following:
mw.messages.set({
	've-SearchAndReplaceDialog-title': 'Search and replace',
	've-SearchAndReplaceDialog-from-label': 'From:',
	've-SearchAndReplaceDialog-to-label': 'To:',
	've-SearchAndReplaceDialog-from-placeholder': 'From text',
	've-SearchAndReplaceDialog-to-placeholder': 'To text',
	've-SearchAndReplaceDialog-replaceAll': 'Repalce all',
	've-SearchAndReplaceDialog-replace': 'Repalce',
	've-SearchAndReplaceDialog-matchcase': 'Match case',
	've-SearchAndReplaceDialog-replace-complete': 'Found and replaced $1 occurrences',
	've-ReplaceTool-ToolbarButton': 'Replace'
});
//end of translations
mw.loader.using( 'ext.visualEditor.viewPageTarget.init', function(){
	mw.libs.ve.addPlugin( function() { 
                alert('Test');
		return $.getScript('https://en.wikipedia.org/w/index.php?title=User:ערן/veReplace.js&action=raw&ctype=text/javascript'); 
	} );
});