MediaWiki:Gadget-HotCat.js/local defaults
Khala-khala
//<syntaxhighlight="javascript"> if (typeof (HotCat) != 'undefined') {
HotCat.messages.cat_removed = "Manibo'ö Kategori:$1"; HotCat.messages.template_removed = "Manibo'ö {{Kategori:$1}}"; HotCat.messages.cat_added = "Monönö Kategori:$1"; HotCat.messages.cat_keychange = "Ono kusi si bohou khö Kategori:$1: "; HotCat.messages.cat_notFound = "Lö tesöndra kategori "$1""; HotCat.messages.cat_exists = "Lö sa'ae kategori "$1" andre; Lö munönö."; HotCat.messages.cat_resolved = " (mangaekhugö Kategori:$1)"; HotCat.messages.uncat_removed = "Manibo'ö {{uncategorized}}"; HotCat.messages.using = " mengoguna'ö HotCat"; HotCat.messages.multi_change = "Kategori $1"; HotCat.messages.commit = "Irö'ö"; HotCat.messages.ok = "OK"; HotCat.messages.cancel = "Batogö"; HotCat.messages.multi_error = "Nibulö'ö andre lö ni'irö'ö. Lö itema li server. ' +'Bologö dödöu la'o.";
HotCat.category_regexp = "[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]|[Kk][Aa][Tt][Ee][Gg][Oo][Rr][Ii]";
HotCat.category_canonical = "Kategori";
HotCat.categories = "Kategori";
HotCat.disambig_category = null;
HotCat.redir_category = null;
HotCat.uncat_regexp = null;
HotCat.template_regexp = "[Tt][Ee][Mm][Pp][Ll][Aa][Tt][Ee]|[Tt][Ee][Mm][Pp][Ll][Aa][Tt]";
HotCat.template_categories = {};
HotCat.engine_names.searchindex = "Indeks wangalui"; HotCat.engine_names.pagelist = "Angolita nga'örö"; HotCat.engine_names.combined = "Orudua wangalui"; HotCat.engine_names.subcat = "Subkategori"; HotCat.engine_names.parentcat = "Superkategori"; HotCat.tooltips.change = "Bulö'ö"; HotCat.tooltips.remove = "Tibo'ö"; HotCat.tooltips.add = "Nönö kategori si bohou"; HotCat.tooltips.restore = "Batogö nibulö'ö"; HotCat.tooltips.undo = "Batogö nibulö'ö"; HotCat.tooltips.down = "Höndrögö ba wamulö'ö ba ba wangoroma'ö subkategori"; HotCat.tooltips.up = "Höndrögö ba wamulö'ö ba ba wangoroma'ö superkategori"; HotCat.multi_tooltip = "Mamalali mato ha'uga kategori";
//Blacklisted categories cannot be added through HotCat. //HotCat.blacklist = /\b[Rr]intisan?$|\b[Hh]alaman pengalihan/;
// Clicks on (-) will always go through the diff screen // HotCat.del_needs_diff = true;
// Non-confirmed users will always go through the diff screen.
HotCat.no_autocommit = (function (default_setting) {
if ((mw.config.get('wgUserGroups').join(' ') + ' ').indexOf('confirmed ') < 0) return true;
return default_setting;
})(HotCat.no_autocommit);
// Disable for non-logged-in users
HotCat.disable = (function (default_disable) {
return function () {
if (!mw.config.get('wgUserName')) return true;
return default_disable();
};
})(HotCat.disable);
// improve visual distinction between positive- and negative-indicator icons
HotCat.existsNo = '//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/P_no_red.svg/20px-P_no_red.svg.png';
// make HotCat auto-save always, even if multiple categories are changed
mw.loader.using("mediawiki.user", function () {
$('body').on( 'submit', '#hotcatCommitForm', function () {
// The variable "this" refers to the form. Its fields can be accessed directly, e.g.
// this.wpTextbox1 gives you the textarea containing the page text of the edit.
var submitType = this.wpDiff;
if (submitType && (!this.oldid || this.oldid.value == '0')) {
// Switch form submission from diff to save. Don't do this if "oldid" is set to anything but '0':
// that indicates an edit conflict with yourself, and in that case you really, really do want
// to see the diff!
this.wpEditToken.value = mw.user.tokens.get("csrfToken");
submitType.name = submitType.value = 'wpSave';
}
return true;
});
}); } //</<syntaxhighlight>