وحدة:ملعب/Mr. Ibrahem/month
من أرابيكا، الموسوعة العربية الحرة
المزيد من اللغات
المزيد من الإجراءات
< وحدة:ملعب | Mr. Ibrahem
local p = {}
function p.nav(frame)
local months = {
["يناير"] = "January"
,["فبراير"] = "February"
,["مارس"] = "March"
,["أبريل"] = "April"
,["مايو"] = "May"
,["يونيو"] = "June"
,["يوليو"] = "July"
,["أغسطس"] = "August"
,["سبتمبر"] = "September"
,["أكتوبر"] = "October"
,["نوفمبر"] = "November"
,["ديسمبر"] = "December"
}
local category = frame.args[1]
if category and category ~= ''
then
for k, month in pairs(months) do
if string.find(category, k) then
category = mw.ustring.gsub( category , k , month )
end
end
end
return category
end
return p