|
|
| Sətir 48: |
Sətir 48: |
| else | | else |
| suffix = suffixes[x %10] or "" | | suffix = suffixes[x %10] or "" |
|
| |
| end | | end |
| | |
| end | | end |
| if sup then
| | return n .. '-' .. suffix |
| suffix = "<sup>" .. "</sup>"
| |
| end
| |
| 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 |