diff --git a/gui.lua b/gui.lua index 428ca51..f506d25 100644 --- a/gui.lua +++ b/gui.lua @@ -55,7 +55,11 @@ function calendar.show_calendar(player_name, settings, wanted_months, wanted_yea table.insert(args, calendar.get_date_string(caption_format[a], tdays)) end end - caption = minetest.translate(caption_format[2], caption_format[1], unpack(args)) + if minetest.translate then + caption = minetest.translate(caption_format[2], caption_format[1], unpack(args)) + else + caption = S(caption_format[2], unpack(args)) + end else if settings.ordinal then caption = S("Month @1, year @2", wanted_dmonths, wanted_dyears)