MediaWiki:Gadget-HotCat.js/no

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">
/* global HotCat*/

// Localizations of a few HotCat user interface texts.
if (window.HotCat) {
	HotCat.messages.commit = 'Lagre';
	HotCat.messages.ok = 'OK';
	HotCat.messages.cancel = 'Avbryt';
	HotCat.messages.multi_error = 'Kunne ikke hente kildetekst fra tjeneren, så endringene dine ble ikke lagret.';

	HotCat.categories = 'Kategorier';

	HotCat.engine_names.searchindex = 'Søkeindeks';
	HotCat.engine_names.pagelist = 'Sideliste';
	HotCat.engine_names.combined = 'Kombinert søk';
	HotCat.engine_names.subcat = 'Underkategorier';
	HotCat.engine_names.parentcat = 'Foreldrekategorier';

	HotCat.tooltips.change = 'Endre';
	HotCat.tooltips.remove = 'Fjern';
	HotCat.tooltips.add = 'Legg til ny kategori';
	HotCat.tooltips.restore = 'Forkast endring';
	HotCat.tooltips.undo = 'Angre';
	HotCat.tooltips.down = 'Åpne for redigering og vis underkategorier';
	HotCat.tooltips.up = 'Åpne for redigering og vis foreldrekategorier';

	HotCat.multi_tooltip = 'Endre flere kategorier';

	// Localize these messages to the main language of your Wiki.
	if (mw.config.get('wgContentLanguage') === 'no') {

		HotCat.messages.cat_removed = 'fjernet [[Kategori:$1]]';
		HotCat.messages.template_removed = 'fjernet {{[[Kategori:$1]]}}';
		HotCat.messages.cat_added = 'la til [[Kategori:$1]]';
		HotCat.messages.cat_keychange = 'ny sorteringsnøkkel for [[Kategori:$1]] = «$2»'; // $2 is the new key
		HotCat.messages.cat_notFound = 'Kategorien «$1» ikke funnet';
		HotCat.messages.cat_exists = 'Kategorien «$1» finnes allerede; ikke lagt til.';
		HotCat.messages.cat_resolved = ' (omdirigeringen [[Kategori:$1]] fikset)';
		HotCat.messages.uncat_removed = 'fjernet {{ukategorisert}}';
		HotCat.messages.separator = '; ';
		// Some text to prefix to the edit summary.
		HotCat.messages.prefix = '';
		// Some text to append to the edit summary. Named 'using' for historical reasons. If you prefer
		// to have a marker at the front, use prefix and set this to the empty string.
		HotCat.messages.using = ' via [[Help:Gadget-HotCat|HotCat]]';
		// $1 is replaced by a number. If your language has several plural forms (c.f. [[:en:Dual (grammatical form)]]);
		// you can set this to an array of strings suitable for passing to mw.language.configPlural().
		// If that function doesn't exist, HotCat will simply fall back to using the last
		// entry in the array.
		HotCat.messages.multi_change = '$1 kategorier';
	}
}

//</syntaxhighlight>