|
|
| (Eyni redaktor tərəfindən edilmiş 2 ara dəyişiklik göstərilmir) |
| Sətir 48: |
Sətir 48: |
| else | | else |
| suffix = suffixes[x %10] or "" | | suffix = suffixes[x %10] or "" |
|
| |
| end | | end |
| end
| | |
| if sup then
| |
| suffix = "<sup>" .. suffix .. "</sup>"
| |
| end | | end |
| return n .. '-' .. suffix | | return n .. '-' .. suffix |
| end | | end |
| | | |
|
| |
| -- Global inYear function
| |
| function inYear( year )
| |
| if year >= 0 then
| |
| return p._ordinal(year)
| |
| else
| |
| year = -year
| |
| return 'e.ə. ' .. p._ordinal(year)
| |
| end
| |
| end
| |
|
| |
| function makeOrdinal( year )
| |
| return p._ordinal(year)
| |
| end
| |
|
| |
| -- Global checkApril function
| |
| function checkApril(elseThanApril, displaySuffixMonth)
| |
| if (elseThanApril == 4 or elseThanApril == '[Aa]prel') then
| |
| return displaySuffixMonth .. 'də'
| |
| else
| |
| return displaySuffixMonth .. 'da'
| |
| end
| |
| end
| |
|
| |
| return p | | return p |