Module:MonthReplace
Documentation for this module may be created at Module:MonthReplace/doc
local p = {}
function p.replace_month(frame)
local str = frame.args[1]
local monthnames={{"january","சனவரி"},{"february","பிப்ரவரி"},{"march","மார்ச்சு"},{"april","ஏப்ரல்"},{"may","மே"},{"june","சூன்"},{"july","சூலை"},{"august","ஆகத்து"},{"september","செப்டம்பர்"},{"october","அக்டோபர்"},{"november","நவம்பர்"},{"december","திசம்பர்"}}
local t=""
for x in string.gmatch(str, "%S+") do
for m in monthnames do
-- t=t+ string.gsub(x,m[0],m[1])
print (x)
print(m[1])
print(m[2])
end
end
return t
end
return p