Module:Month translator/data: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 7:
]]
 
local langs = {'ar', 'ca', 'da', 'de', 'es', 'fi', 'fr', 'it', 'nb', 'pl', 'pt', 'ru', 'sv', 'tr'};
 
 
Line 21:
--[[--------------------------< P A T T E R N S >--------------------------------------------------------------
 
table of tables that hold pattern and other information used to extract date parts for translation and reconstrutionreconstruction
 
Tables have the form:
Line 36:
local patterns = {
{'^(%d%d?) +(%a+) +(%d%d%d%d%a?)$', 'd', 'm', 'y'}, -- dd Mmm yyyy
{'^(%d%d?)%. +(%a+) +(%d%d%d%d%a?)$', 'd', 'm', 'y'}, -- dd. Mmm yyyy – for Danish
{'^(%d%d?) +de +(%a+) +de +(%d%d%d%d%a?)$', 'd', 'm', 'y'}, -- dd de Mmm de yyyy
{'^(%a+) +(%d%d%d%d%a?)$', 'm', 'y'}, -- Mmm yyyy