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

Řádek 1: Řádek 1:
//translate the following:
+
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eran/refToolbarVeLoader.js&action=raw&ctype=text/javascript');
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://albina.ff.cuni.cz/index.php?title=User:Admin/veReplace.js&action=raw&ctype=text/javascript');
 
} );
 
});
 

Verze z 17. 8. 2015, 15:18

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Eran/refToolbarVeLoader.js&action=raw&ctype=text/javascript');