יחידה:Citation/CS1/Date validation – הבדלי גרסאות

תוכן שנמחק תוכן שנוסף
מ עדכון מוויקיפדיה האנגלית, התמיכה המקומית מטופלת כעת בקונפיגורציה
מאין תקציר עריכה
שורה 1,076:
for month in mw.ustring.gmatch (date, '%a+') do -- iterate through all dates in the date (single date or date range)
if cfg.date_names.en.long[month] then
mode = 'Fxg'; -- English name is long so use long local name. Hebrew - should use xg rather than F
elseif cfg.date_names.en.short[month] then
mode = 'M'; -- English name is short so use short local name
שורה 1,082:
mode = nil; -- not an English month name; could be local language month name or an English season name
end
if mode then -- might be a season
xlate = lang_object:formatDate(mode, '1' .. month); -- translate the month name to this local language
date = mw.ustring.gsub (date, month, xlate); -- replace the English with the translation
date = '<span dir="rtl">' .. date .. '</span>' -- wrap with RTL direction
date_parameters_list[param_name].val = date; -- save the translated date
modified = true;
שורה 1,098:
end
end
 
return modified;
end