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:', '…“)
 
 
(Není zobrazeno 5 mezilehlých verzí od stejného uživatele.)
Řádek 1: Řádek 1:
//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.loader.using( 'ext.visualEditor.viewPageTarget.init', function(){
 +
// Register plugins to VE. will be loaded once the user opens the VE
 
mw.libs.ve.addPlugin( function() {  
 
mw.libs.ve.addPlugin( function() {  
return $.getScript('https://en.wikipedia.org/w/index.php?title=User:ערן/veReplace.js&action=raw&ctype=text/javascript');  
+
return $.getScript('http://albina.ff.cuni.cz/index.php?title=User:Admin/veTest.js&action=raw&ctype=text/javascript');  
 
} );
 
} );
 
});
 
});

Aktuální verze z 17. 8. 2015, 15:26

mw.loader.using( 'ext.visualEditor.viewPageTarget.init', function(){
	// Register plugins to VE. will be loaded once the user opens the VE
	mw.libs.ve.addPlugin( function() { 
		return $.getScript('http://albina.ff.cuni.cz/index.php?title=User:Admin/veTest.js&action=raw&ctype=text/javascript'); 
	} );
});