ميدياويكي:Gadget-HotCat.js/en
ملاحظة: بعد النشر، أنت قد تحتاج إلى إفراغ الكاش الخاص بمتصفحك لرؤية التغييرات.
- فايرفوكس / سافاري: أمسك Shift أثناء ضغط Reload، أو اضغط على إما Ctrl-F5 أو Ctrl-R (⌘-R على ماك)
- جوجل كروم: اضغط Ctrl-Shift-R (⌘-Shift-R على ماك)
- إنترنت إكسبلورر/إيدج: أمسك Ctrl أثناء ضغط Refresh، أو اضغط Ctrl-F5
- أوبرا: اضغط Ctrl-F5.
//<syntaxhighlight lang="javascript">
/* global HotCat*/
// Localizations of a few HotCat user interface texts.
if (window.HotCat) {
HotCat.messages.commit = 'Save';
HotCat.messages.ok = 'OK';
HotCat.messages.cancel = 'Cancel';
HotCat.messages.multi_error = 'Could not retrieve the page text from the server. Therefore, your category changes cannot be saved. We apologize for the inconvenience.';
HotCat.categories = 'Categories';
HotCat.engine_names.searchindex = 'Search index';
HotCat.engine_names.pagelist = 'Page list';
HotCat.engine_names.combined = 'Combined search';
HotCat.engine_names.subcat = 'Subcategories';
HotCat.engine_names.parentcat = 'Parent categories';
HotCat.tooltips.change = 'Modify';
HotCat.tooltips.remove = 'Remove';
HotCat.tooltips.add = 'Add a new category';
HotCat.tooltips.restore = 'Undo changes';
HotCat.tooltips.undo = 'Undo changes';
HotCat.tooltips.down = 'Open for modifying and display subcategories';
HotCat.tooltips.up = 'Open for modifying and display parent categories';
HotCat.multi_tooltip = 'Modify several categories';
// Localize these messages to the main language of your Wiki.
if (mw.config.get('wgContentLanguage') === 'en') {
HotCat.messages.cat_removed = 'removed [[Category:$1]]';
HotCat.messages.template_removed = 'removed {{[[Category:$1]]}}';
HotCat.messages.cat_added = 'added [[Category:$1]]';
HotCat.messages.cat_keychange = 'new key for [[Category:$1]] = "$2"'; // $2 is the new key
HotCat.messages.cat_notFound = 'Category "$1" not found';
HotCat.messages.cat_exists = 'Category "$1" already exists; not added.';
HotCat.messages.cat_resolved = ' (redirect [[Category:$1]] resolved)';
HotCat.messages.uncat_removed = 'removed {{uncategorized}}';
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 = ' using [[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 categories';
}
}
//</syntaxhighlight>