وحدة:Quran/Configuration

من ويكي مصدر، المكتبة الحرة
local default = {
	shape = "Othmani",
	aya_symbol_template = "رقم آية"
}
local aliases = {
    [1]				= {1},
    ["soura"]       = {"السورة", "سورة","soura"},
    ["from_aya"]    = {2, "آية", "الآية", "من الآية", "من آية", "aya", "from aya"},
    ["to_aya"]      = {"إلى آية", "إلى الآية", "to aya"},
    ["from_word"]   = {"من الكلمة","من كلمة", "from word",},
    ["to_word"]     = {"إلى الكلمة","إلى كلمة", "to word",},
    ["addition_ayat"]   = {3, "الآيات الإضافية", "addition ayat"},
    ["shape"]       = {"الرسم", "الترميز", "shape"},
    ["aya_template"]	= {"قالب رقم الآية", "قالب الآية", "aya template"},
    ["search"]      = {"بحث", "ابحث", "search"},
    ["user_text"]   = {"النص", "نص", "text"},
    ["s"]           = {"س", "s"}, -- في حالة تعيين النص فقط
    ["a"]           = {"آ", "a"}, -- في حالة تعيين النص فقط
    ["viewtemplate"] = {"إظهار القوالب", "viewtemplate"}
}

local shape_aliases = {
    ["text"]      = {"إملائي", "text"},
    ["KFGQPC"]    = {"المدينة", "المدينة حفص", "KFGQPC"},
    ["Othmani"]   = {"يونيكود", "عثماني", "Othmani"},
    ["Warsh"]	= {"ورش","Warsh"},
    ["Qaloun"]	= {"قالون", "Qaloun"},
    ["DKhatt"]	= {"DKhatt", "دخ"},
    ["Shuba"]	= {"Shuba", "شعبة"},
    ["Douri"]	= {"Douri", "الدوري"},
    ["Sousi"]	= {"Sousi", "السوسي"},
    ["Bazzi"]	= {"Bazzi", "البزي"},
    ["Qunbul"]	= {"Qunbul", "قنبل"},
}

local msgs = {
	["soura_num_err"]	= "رقم السورة خارج النطاق (1-114)",
	["soura_name_err"]	= "خطأ في اسم السورة",
	["from_aya_err"]	= "الآية الأولى خارج نطاق سورة $1 ($2)",
	["to_aya_err"]	= "الآية الأخيرة خارج نطاق سورة $1 ($2)",
	["from_word_err"]	= "لم يعثر على الكلمة الأولى",
	["to_word_err"]	= "لم يعثر على الكلمة الأخيرة"
}

local presentation = {
	-- The shape of numbers. Empty string mean numbers will not changed
	["numbers_shape"]	= "٠١٢٣٤٥٦٧٨٩",
	["quran"]			= '<span class="quran-text">﴿</span><span class="quran-$1">$2</span><span class="quran-text">﴾</span>',
	["cite_quran"]		= '&nbsp;<small class="quran-cite">&#91;[[سورة $1|$1]]$2&#93;</small>',
	["error"]			= '[[$1]]: <strong class="error">$2</strong>',
	["رقم آية"] 		= '<span class="end-of-aya"><span class="aya-sym">۝</span><span class="aya-num">$1</span></span>',
	["رقم آية2"] 		= '<span class="end-of-aya"><span class="aya-num">$1</span></span>'
}

return {
	default = default,
	aliases = aliases,
	shape_aliases = shape_aliases,
	msgs = msgs,
	presentation = presentation
}