మాడ్యూల్:Citation/CS1/Date validation: కూర్పుల మధ్య తేడాలు

దిద్దుబాటు సారాంశం లేదు
fix for small letter months to be accepted
పంక్తి 4:
-- returns a number according to the month in a date: 1 for January, etc. Capitalization and spelling must be correct. If not a valid month, returns 0
function get_month_number (month)
local long_months = {['January']=1, ['February']=2, ['March']=3, ['April']=4, ['May']=5, ['June']=6, ['July']=7, ['August']=8, ['September']=9, ['October']=10, ['November']=11, ['December']=12, ['జనవరిjanuary']=1, ['ఫిబ్రవరిfebruary']=2, ['మార్చిmarch']=3, ['ఏప్రిల్april']=4, ['మేmay']=5, ['జూన్june']=6, ['జూలైjuly']=7, ['ఆగష్టుaugust']=8, ['సెప్టెంబరుseptember']=9, ['అక్టోబరుoctober']=10, ['నవంబరుnovember']=11, ['డిసెంబరు']=12, ['మార్చ్']=3, ['ఏప్రిలు']=4, ['ఆగష్ట్']=8, ['సెప్టెంబర్']=9, ['అక్టోబర్']=10, ['నవంబర్']=11, ['డిసెంబర్december']=12};
local short_months = {['Jan']=1, ['Feb']=2, ['Mar']=3, ['Apr']=4, ['May']=5, ['Jun']=6, ['Jul']=7, ['Aug']=8, ['Sep']=9, ['Oct']=10, ['Nov']=11, ['Dec']=12, ['jan']=1, ['feb']=2, ['mar']=3, ['apr']=4, ['may']=5, ['jun']=6, ['jul']=7, ['aug']=8, ['sep']=9, ['oct']=10, ['nov']=11, ['dec']=12};
local telugu_months = {['జనవరి']=1, ['ఫిబ్రవరి']=2, ['మార్చి']=3, ['ఏప్రిల్']=4, ['మే']=5, ['జూన్']=6, ['జూలై']=7, ['ఆగష్టు']=8, ['సెప్టెంబరు']=9, ['అక్టోబరు']=10, ['నవంబరు']=11, ['డిసెంబరు']=12, ['మార్చ్']=3, ['ఏప్రిలు']=4, ['ఆగష్ట్']=8, ['సెప్టెంబర్']=9, ['అక్టోబర్']=10, ['నవంబర్']=11, ['డిసెంబర్']=12};
 
local temp;
Line 12 ⟶ 13:
temp=short_months[month];
if temp then return temp; end -- if month is the short-form name
temp=telugu_months[month];
if temp then return temp; end -- if month is the telugu month name
return 0; -- misspelled, improper case, or not a month name
end