| @@ -18,7 +18,7 @@ | |||||
| from datetime import date | from datetime import date | ||||
| from babel.dates import format_date | from babel.dates import format_date | ||||
| from kosmorro.i18n.utils import _, SHORT_DATE_FORMAT | |||||
| from kosmorro.i18n.utils import _ | |||||
| class UnavailableFeatureError(RuntimeError): | class UnavailableFeatureError(RuntimeError): | ||||
| @@ -24,17 +24,6 @@ _TRANSLATION = gettext.translation("messages", localedir=_LOCALE_DIR, fallback=T | |||||
| _ = _TRANSLATION.gettext | _ = _TRANSLATION.gettext | ||||
| FULL_DATE_FORMAT = _("{day_of_week} {month} {day_number}, {year}").format( | |||||
| day_of_week="%A", month="%B", day_number="%d", year="%Y" | |||||
| ) | |||||
| SHORT_DATETIME_FORMAT = _("{month} {day_number}, {hours}:{minutes}").format( | |||||
| month="%b", day_number="%d", hours="%H", minutes="%M" | |||||
| ) | |||||
| SHORT_DATE_FORMAT = _("{month} {day_number}, {year}").format( | |||||
| month="%b", day_number="%d", year="%Y" | |||||
| ) | |||||
| TIME_FORMAT = _("{hours}:{minutes}").format(hours="%H", minutes="%M") | |||||
| def ngettext(msgid1, msgid2, number): | def ngettext(msgid1, msgid2, number): | ||||
| # Not using ngettext = _TRANSLATION.ngettext because the linter will give an invalid-name error otherwise | # Not using ngettext = _TRANSLATION.ngettext because the linter will give an invalid-name error otherwise | ||||
| @@ -8,7 +8,7 @@ msgid "" | |||||
| msgstr "" | msgstr "" | ||||
| "Project-Id-Version: PROJECT VERSION\n" | "Project-Id-Version: PROJECT VERSION\n" | ||||
| "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | ||||
| "POT-Creation-Date: 2025-10-19 16:46+0200\n" | |||||
| "POT-Creation-Date: 2025-11-03 18:23+0100\n" | |||||
| "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||||
| "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||||
| "Language-Team: LANGUAGE <LL@li.org>\n" | "Language-Team: LANGUAGE <LL@li.org>\n" | ||||
| @@ -391,23 +391,3 @@ msgstr "" | |||||
| msgid "Pluto" | msgid "Pluto" | ||||
| msgstr "" | msgstr "" | ||||
| #: kosmorro/i18n/utils.py:27 | |||||
| #, python-brace-format | |||||
| msgid "{day_of_week} {month} {day_number}, {year}" | |||||
| msgstr "" | |||||
| #: kosmorro/i18n/utils.py:30 | |||||
| #, python-brace-format | |||||
| msgid "{month} {day_number}, {hours}:{minutes}" | |||||
| msgstr "" | |||||
| #: kosmorro/i18n/utils.py:33 | |||||
| #, python-brace-format | |||||
| msgid "{month} {day_number}, {year}" | |||||
| msgstr "" | |||||
| #: kosmorro/i18n/utils.py:36 | |||||
| #, python-brace-format | |||||
| msgid "{hours}:{minutes}" | |||||
| msgstr "" | |||||