From 494f21f18f80b82906a04681b901cc9fc325f1f8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 28 Aug 2020 15:04:11 +0200 Subject: [PATCH] Change gui caption --- gui.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui.lua b/gui.lua index 7586240..9ce3de5 100644 --- a/gui.lua +++ b/gui.lua @@ -72,9 +72,9 @@ function calendar.show_calendar(player_name, settings, wanted_months, wanted_yea caption = calendar._translate(caption_format[2], caption_format[1], unpack(args)) else if settings.ordinal then - caption = S("Month @1, year @2", wanted_dmonths, wanted_dyears) + caption = S("@1, year @2", calendar.month_names[wanted_months+1], wanted_dyears) else - caption = S("@1 months, @2 years", wanted_dmonths, wanted_dyears) + caption = S("@1, @2 years", calendar.month_names[wanted_months+1], wanted_dyears) end end if caption ~= "" then