minetest_calendar/gameconfig.lua

46 lines
1.2 KiB
Lua
Raw Normal View History

2020-08-28 02:17:16 -07:00
-- Get translator
local S
if minetest.get_translator then
S = minetest.get_translator("calendar")
else
S = function(s) return s end
end
----------------------------------
-- BEGINNING OF CALENDAR CONFIG --
----------------------------------
-- Number of days in a month
calendar.MONTH_DAYS = 30
-- List of long month names
-- (also determines the number of months in a year)
calendar.month_names = {
S('January'), S('February'), S('March'), S('April'),
S('May'), S('June'), S('July'), S('August'),
S('September'), S('October'), S('November'), S('December')
}
-- Short month names
-- (must have same length as `calendar.month.names`)
calendar.month_names_short = {
S('Jan'), S('Feb'), S('Mar'), S('Apr'),
S('May'), S('Jun'), S('Jul'), S('Aug'),
S('Sep'), S('Oct'), S('Nov'), S('Dec')
}
-- Long week day names
-- (also determines the number of days in a week)
calendar.weekday_names = {
S("Monday"), S("Tuesday"), S("Wednesday"),
S("Thursday"), S("Friday"), S("Saturday"), S("Sunday")
}
-- Short week day names
-- (must have same length as `calendar.weekday_names`)
calendar.weekday_names_short = {
S("Mo"), S("Tu"), S("We"), S("Th"), S("Fr"), S("Sa"), S("Su")
}
-- Cardinal number of the week day that marks the beginning of a week
calendar.FIRST_WEEK_DAY = 0