Module:Month translator: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 34:
 
if month then
local df = table.concat (pattern, '', 2); -- extract date format from pattern table (pattern[2], pattern[3], pattern[4])
-- if 'dmy' == pattern[5] then -- for dmy dates
if 'dmy' == df then -- for dmy dates
return table.concat ({day, month, year}, ' '); -- assemble an English language dmy date
-- elseif 'my' == pattern[5] then -- for month year dates
elseif 'my' == df then -- for month year dates
return table.concat ({month, year}, ' '); -- assemble an English language dmy date
end