יחידה:תאריך: הבדלים בין גרסאות בדף
מ "ו-" במקום "וגם" |
|||
| שורה 138: | שורה 138: | ||
local success, res = pcall(parseDateRange, frame.args[1], diffFormat, extradays) | local success, res = pcall(parseDateRange, frame.args[1], diffFormat, extradays) | ||
if success then | if success then | ||
local str=res | |||
-- the following translations are needed because the underline function | |||
-- local format is wierd | |||
str= mw.ustring.gsub(str,"וגם ([0-9])","ו-%1") | |||
str= mw.ustring.gsub(str,"וגם ([א-ת])","ו%1"); | |||
if frame.args[2] == "גיל" then | if frame.args[2] == "גיל" then | ||
str= mw.ustring.gsub( | str= mw.ustring.gsub(str," שנים","") | ||
return str | return str | ||
else | else | ||