ميدياويكي:Gadget-HotCat.js/ar

من ويكي مصدر، المكتبة الحرة

ملاحظة: بعد النشر، أنت قد تحتاج إلى إفراغ الكاش الخاص بمتصفحك لرؤية التغييرات.

  • فايرفوكس / سافاري: أمسك 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 = 'حفظ';
	HotCat.messages.ok = 'موافق';
	HotCat.messages.cancel = 'إلغاء';
	HotCat.messages.multi_error = 'لا يمكن حفظ التغييرات، فقد تعذّر جلب نص الصفحة من الخادم. عُذرًا للإزعاج.';

	HotCat.categories = 'تصنيفات';

	HotCat.engine_names.searchindex = 'فهرس البحث';
	HotCat.engine_names.pagelist = 'قائمة الصفحات';
	HotCat.engine_names.combined = 'بحث متراكب';
	HotCat.engine_names.subcat = 'تصنيفات فرعية';
	HotCat.engine_names.parentcat = 'تصنيفات أعلى';

	HotCat.tooltips.change = 'تعديل';
	HotCat.tooltips.remove = 'إزالة';
	HotCat.tooltips.add = 'إضافة تصنيف جديد';
	HotCat.tooltips.restore = 'استعادة التغيير';
	HotCat.tooltips.undo = 'استرجاع التغيير';
	HotCat.tooltips.down = 'استعرض التصنيفات الفرعية';
	HotCat.tooltips.up = 'استعرض التصنيفات الأعلى';

	HotCat.multi_tooltip = 'تعديل عدّة تصنيفات';

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

		HotCat.messages.cat_removed = 'إزالة [[تصنيف:$1]]';
		HotCat.messages.template_removed = 'إزالة {{[[تصنيف:$1]]}}';
		HotCat.messages.cat_added = 'اضافة [[تصنيف:$1]]';
		HotCat.messages.cat_keychange = 'اضافة مفتاح جديد ل[[تصنيف:$1]]: "$2"'; // $2 متغير المفتاح الجديد
		HotCat.messages.cat_notFound = 'التصنيف "$1" غير موجود';
		HotCat.messages.cat_exists = 'التصنيف "$1" موجود بالفعل.';
		HotCat.messages.cat_resolved = ' (التحويلة [[تصنيف:$1]] جرى معالجتها)';
		HotCat.messages.uncat_removed = 'إزالة {{غير مصنفة}}';
		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 = ' باستعمال [[مساعدة:المصناف الفوري|المصناف الفوري]]';
		// $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 تصنيفات';
	}
}

//</syntaxhighlight>