MediaWiki:Gadget-HotCat.js/fr

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

Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.

//<syntaxhighlight lang="javascript">

// fr localizations of a few HotCat user interface texts.
if (window.HotCat) {
	HotCat.messages.commit = 'Valider';
	HotCat.messages.ok = 'OK';
	HotCat.messages.cancel = 'Annuler';
	HotCat.messages.multi_error = 'Impossible de récupérer le texte depuis le serveur. Par conséquent, vos changements de catégories ne peuvent être enregistrés. Nous nous excusons pour la gêne occasionnée.';

	HotCat.categories = 'Catégories';

	HotCat.engine_names.searchindex = 'Recherche par préfixe';
	HotCat.engine_names.pagelist = 'Liste de suggestions';
	HotCat.engine_names.combined = 'Recherche combinée';
	HotCat.engine_names.subcat = 'Sous-catégories';
	HotCat.engine_names.parentcat = 'Catégories parentes';

	HotCat.tooltips.change = 'Modifier';
	HotCat.tooltips.remove = 'Supprimer';
	HotCat.tooltips.add = 'Ajouter une catégorie';
	HotCat.tooltips.restore = 'Annuler les changements';
	HotCat.tooltips.undo = 'Annuler les changements';
	HotCat.tooltips.down = 'Ouvrir pour modifier et afficher les sous-catégories';
	HotCat.tooltips.up = 'Ouvrir pour modifier et afficher les catégories parentes';

	HotCat.multi_tooltip = 'Modifier plusieurs catégories';

	if (mw.config.get('wgContentLanguage') === 'fr') {
		HotCat.messages.cat_added = '[[Category:$1]] ajoutée'; // Category: sera traduit automatiquement en Catégorie:
		HotCat.messages.cat_removed = '[[Category:$1]] retirée';
		HotCat.messages.template_removed = '{{[[Category:$1]]}} retirée';
		HotCat.messages.cat_keychange = 'Nouvelle clé pour [[Category:$1]]: "$2"'; // $2 est la nouvelle clée
		HotCat.messages.cat_notFound = 'Catégorie "$1" introuvable';
		HotCat.messages.cat_exists = 'La catégorie "$1" existe déjà; aucun ajout';
		HotCat.messages.cat_resolved = ' (redirection [[Category:$1]] résolue)';
		HotCat.messages.uncat_removed = '{{uncategorized}} retiré'; // {{uncategorized}} en français = ???
		HotCat.messages.using = ' avec [[Help:Gadget-HotCat|HotCat]]'; // Help: sera traduit automatiquement en Aide:
		HotCat.messages.multi_change = '$1 catégories';
	}

}

//</syntaxhighlight>