From c812812b8e07c5fee781446a641b3e303f4019a4 Mon Sep 17 00:00:00 2001 From: Ichnilatis <76203123+ichnilatis-gr@users.noreply.github.com> Date: Mon, 11 May 2026 14:58:52 +0300 Subject: [PATCH] datetime: add gettext context to abbreviated months (#15369) Fixes https://github.com/koreader/koreader/issues/15368 --- frontend/datetime.lua | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/datetime.lua b/frontend/datetime.lua index 041fc80f1..7cdced1b5 100644 --- a/frontend/datetime.lua +++ b/frontend/datetime.lua @@ -12,18 +12,18 @@ local datetime = {} datetime.weekDays = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" } -- in Lua wday order datetime.shortMonthTranslation = { - ["Jan"] = _("Jan"), - ["Feb"] = _("Feb"), - ["Mar"] = _("Mar"), - ["Apr"] = _("Apr"), - ["May"] = _("May"), - ["Jun"] = _("Jun"), - ["Jul"] = _("Jul"), - ["Aug"] = _("Aug"), - ["Sep"] = _("Sep"), - ["Oct"] = _("Oct"), - ["Nov"] = _("Nov"), - ["Dec"] = _("Dec"), + ["Jan"] = C_("Abbreviated month", "Jan"), + ["Feb"] = C_("Abbreviated month", "Feb"), + ["Mar"] = C_("Abbreviated month", "Mar"), + ["Apr"] = C_("Abbreviated month", "Apr"), + ["May"] = C_("Abbreviated month", "May"), + ["Jun"] = C_("Abbreviated month", "Jun"), + ["Jul"] = C_("Abbreviated month", "Jul"), + ["Aug"] = C_("Abbreviated month", "Aug"), + ["Sep"] = C_("Abbreviated month", "Sep"), + ["Oct"] = C_("Abbreviated month", "Oct"), + ["Nov"] = C_("Abbreviated month", "Nov"), + ["Dec"] = C_("Abbreviated month", "Dec"), } datetime.longMonthTranslation = {