MediaWiki talk:Gadget-Cat-a-lot.js/ca

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

{{Editprotected}} Please add localization for Catalan.--Pere prlpz (talk) 21:43, 4 October 2012 (UTC)[reply]

//

/*global $:false, catALot:false, mw:false */
/*jshint */

//DO NOT CHANGE THE NEXT LINE 
if (mw.config.get('wgUserLanguage') !== 'en') {
//DO NOT CHANGE THE PREVIOUS LINE
	$.extend( catALot.i18n, {
		//Progress
		loading        : 'Carregant...',
		editing        : 'Editant la pàgina',
		of             : 'de ',
		skippedAlready : '<h5>Les següents pàgines no s\'han editat, perquè la ja eren a la categoria:</h5>',
		skippedNotFound: '<h5>Les següents pàgines no s\'han editat, perquè ja no eren a la categoria anterior:</h5>',
		skippedServer  : '<h5>Les següents pàgines no s\'han pogut editar, perquè hi ha hagut problemes de connexió amb el servidor:</h5>',
		allDone        : 'Totes les pàgines han estat processades.',
		done           : 'Fet!',
		addedCat       : 'Categoria afegida',
		copiedCat      : 'Copiat a la categoria',
		movedCat       : 'Traslladat a la categoria',
		removedCat     : 'Tret de la categoria',
		returnToPage   : 'Retorn a la pàgina',
		catNotFound    : 'Categoria no trobada.',


		//as in 17 files selected
		filesSelected : ' fitxers seleccionats.',

		//Actions
		copy: 'Copia',
		move: 'Trasllada',
		add : 'Afegeix',
		removeFromCat   : 'Treure de la categoria',
 		enterName       : 'Entreu el nom de la categoria',
		select          : 'Seleccioneu-los',
 		all             : 'tots',
 		none            : 'cap', 
		noneSelected: 'Cap fitxer seleccionat!',

		// Preferences
		// new: added 2012-09-19. Please translate.
		// Use user language for i18n
		watchlistpref: "Preferències relacionades amb els fitxers editats amb Cat-A-Lot",
		watch_pref: "D'acord amb les vostres preferències generals",
		watch_nochange: "No canviar l'estatus de la pàgina a la llista de seguiment",
		watch_watch: "Seguir pàgines editades amb Cat-A-Lot",
		watch_unwatch: "Eliminar de la vostra llista de seguiment les pàgines editades amb Cat-A-Lot",
		minorpref: "Marcar les edicions com a menors (si ja marqueu les edicions com a menors per defecte, això no canviarà res)",
		editpagespref: "Permetre categoritzar pàgines (incloent categories) que no són fitxers",
		docleanuppref: "Eliminar {{Check categories}} i fer altres operacions menors de neteja",
		configSettings: "Preferències"
	});
}
//DO NOT CHANGE THE NEXT LINE 
if (mw.config.get('wgContentLanguage' !== 'en')) {
//DO NOT CHANGE THE PREVIOUS LINE
	$.extend( catALot.i18n, {
		summaryAdd  :   'Cat-a-lot: Afegint [[Category:',
		summaryCopy :   'Cat-a-lot: Copiant de [[Category:',
		to          :   'a [[Category:',
		summaryMove :   'Cat-a-lot: Movent de [[Category:',
		summaryRemove : 'Cat-a-lot: Traient de [[Category:',
		prefSaveSummary: "[[Help:Gadget-Cat-a-lot|Cat-a-lot]] està actualitzant les preferències de l'usuari"
	});
}
//


Could you translate the remaining messages (like "Cat-a-lot: Adding [[Category" or "Editing page")? This would be great. Thank you. -- Rillke(q?) 17:57, 5 October 2012 (UTC)[reply]

✓ Done, although I expected the edition summary not to be translated.--Pere prlpz (talk) 18:23, 5 October 2012 (UTC)[reply]
This is just in case another wiki wants to import Cat-A-Lot. Thanks-A-Lot! -- Rillke(q?) 18:50, 5 October 2012 (UTC)[reply]
There is still Loading... and Editing pageand copy and move and add. -- Rillke(q?) 18:53, 5 October 2012 (UTC)[reply]
✓ Done--Pere prlpz (talk) 10:23, 6 October 2012 (UTC)[reply]
Thank you. -- Rillke(q?) 10:58, 6 October 2012 (UTC)[reply]

{{Editprotected}}After checking how the translation works, I changed one line:

select  : 'Seleccioneu-los',

Please update.--Pere prlpz (talk) 14:58, 11 October 2012 (UTC)[reply]

Of course. -- Rillke(q?) 16:07, 11 October 2012 (UTC)[reply]

Edit request: Avoid catALot is undefined

[edit]

Looking through client side error logs it seems various users are loading this file without the parent leading to JavaScript errors on every page they view.

Could the if statement be updated to at least assert that

typeof catALot !== 'undefined'

(and possibly throw an error message if not installed correctly using mw.notify?

Thank you in advance for your help. Jdlrobson (talk) 05:36, 1 August 2020 (UTC)[reply]

✓ Done Kaldari (talk) 20:37, 3 August 2020 (UTC)[reply]