MediaWiki:Gadget-Cat-a-lot.js

Napomena: Nakon objave možda ćete trebate očistiti međuspremnik (keš) svog preglednika kako biste vidjeli promjene.

  • Firefox / Safari: držite Shift i pritisnite Reload, ili pritisnite bilo Ctrl-F5 ili Ctrl-R (Command-R na Macu)
  • Google Chrome: pritisnite Ctrl-Shift-R (Command-Shift-R na Macu)
  • Internet Explorer / Edge: držite Ctrl i kliknite Refresh, ili pritisnite Ctrl-F5
  • Opera: pritisnite Ctrl-F5.
/**
 * Cat-a-lot - changes category of multiple files
**/
if (mw.config.get('wgNamespaceNumber') === 14) {
	window.catALotPrefs = { editpages: true, subcatcount: 100 };
	mw.loader.using(['jquery.ui', 'mediawiki.util']).done(function () {
		mw.util.addCSS("#cat_a_lot_settings { display:none !important;}"); // Preferences depend on some Commons gadgets, not available locally
		mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-Cat-a-lot.js&action=raw&ctype=text/javascript');
		mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-Cat-a-lot.css&action=raw&ctype=text/css', 'text/css');
	});
}

// DO NOT CHANGE THE NEXT LINE
if (mw.config.get('wgUserLanguage') !== 'en')
// DO NOT CHANGE THE PREVIOUS LINE
	mw.messages.set({
		// Preferences
		// new added: 2017-11-20. Please translate.
		// Use user language for i18n
		'cat-a-lot-watchlistpref'  : 'Watchlist preference concerning files edited with Cat-a-lot',
		'cat-a-lot-watch_pref'     : 'According to your general preferences',
		'cat-a-lot-watch_nochange' : 'Do not change watchstatus',
		'cat-a-lot-watch_watch'    : 'Watch pages edited with Cat-a-lot',
		'cat-a-lot-watch_unwatch'  : 'Remove pages while editing with Cat-a-lot from your watchlist',
		'cat-a-lot-minorpref'      : 'Mark edits as minor (if you generally mark your edits as minor, this won’t change anything)',
		'cat-a-lot-editpagespref'  : 'Allow categorising pages (including categories) that are not files',
		'cat-a-lot-docleanuppref'  : 'Remove {{Check categories}} and other minor cleanup',
		'cat-a-lot-uncatpref'      : 'Remove {{Uncategorized}}',
		'cat-a-lot-subcatcountpref': 'Sub-categories to show at most',
		'cat-a-lot-config-settings': 'Preferences',
		'cat-a-lot-buttonpref'     : 'Use buttons instead of text links',
		'cat-a-lot-comment-label'  : 'Custom edit comment',
		'cat-a-lot-edit-question'  : 'Why is this change necessary?',

		// Progress
		// 'cat-a-lot-loading'       : 'Loading …',
		'cat-a-lot-editing'          : 'Uređivanje stranice',
		'cat-a-lot-of'               : 'od ',
		'cat-a-lot-skipped-already'  : '{{PLURAL:$1|1=Sledeća stranica je preskočena|sledeće stranice ($1) preskočene su}} jer se već {{PLURAL:$1|1=nalazi|nalaze}} u kategoriji:',
		'cat-a-lot-skipped-not-found': '{{PLURAL:$1|1=Sledeća stranica je preskočena|sledeće stranice ($1) preskočene su}} jer nije moguće pronaći kategoriju:',
		'cat-a-lot-skipped-server'   : 'Nije moguće urediti {{PLURAL:$1|1=sledeću stranicu|sledeće stranice ($1)}} jer je došlo do problema pri povezivanju sa serverom:',
		'cat-a-lot-all-done'         : 'Sve stavke su obrađene.',
		'cat-a-lot-done'             : 'Urađeno!',
		'cat-a-lot-added-cat'        : 'Dodata kategorija $1',
		'cat-a-lot-copied-cat'       : 'Kopirano u kategoriju $1',
		'cat-a-lot-moved-cat'        : 'Premešteno u kategoriju $1',
		'cat-a-lot-removed-cat'      : 'Uklonjeno iz kategorije $1',
		// 'cat-a-lot-return-to-page': 'Return to page',
		// 'cat-a-lot-cat-not-found' : 'Category not found.',

		// as in 17 files selected
		'cat-a-lot-files-selected'   : '{{PLURAL:$1|Izabrana je $1 stavka|Izabrane su $1 stavke|Izabrano je $1 stavki}}.',

		// Actions
		'cat-a-lot-copy'           : 'Kopirajte',
		'cat-a-lot-move'           : 'Premestite',
		'cat-a-lot-add'            : 'Dodajte',
		'cat-a-lot-remove-from-cat': 'Uklonite iz ove kategorije',
		'cat-a-lot-enter-name'     : 'Unesite naziv kategorije',
		'cat-a-lot-select'         : 'Izaberi',
		'cat-a-lot-all'            : 'Sve',
		'cat-a-lot-none'           : 'Ništa',
		// 'cat-a-lot-none-selected': 'No files selected!'
	    });

// DO NOT CHANGE THE NEXT LINE
if (mw.config.get('wgContentLanguage') !== 'en')
// DO NOT CHANGE THE PREVIOUS LINE
	mw.messages.set({
		// Summaries:
		'cat-a-lot-pref-save-summary': 'Updating user preferences',
		'cat-a-lot-summary-add'      : 'Dodavanje [[Kategorija:$1|kategorije $1]]',
		'cat-a-lot-summary-copy'     : 'Kopiranje iz [[Kategorija:$1|kategorije $1]] u [[Kategorija:$2|kategoriju $2]]',
		'cat-a-lot-summary-move'     : 'Premeštanje iz [[Kategorija:$1|kategorije $1]] u [[Kategorija:$2|kategoriju $2]]',
		'cat-a-lot-summary-remove'   : 'Uklanjanje iz [[Kategorija:$1|kategorije $1]]',
		'cat-a-lot-prefix-summary'   : '[[Vikipedija:Alatke/Spravice/Cat-a-lot|Cat-a-lot]]:', // Some text to prepend to the edit summary. Set this to an empty string if you use 'using'.
		'cat-a-lot-using-summary'    : '' // Some text to append to the edit summary. Set this to an empty string if you use 'prefix'.
	});