From d4fe91ec4a025e52820713252f62560f572c405c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 20 Mar 2023 22:57:04 +0800 Subject: [PATCH] Fixed the capitalization of the shortcut periods in the period chooser. --- src/accounting/report/period/shortcuts.py | 10 +++++----- .../accounting/report/include/period-chooser.html | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/accounting/report/period/shortcuts.py b/src/accounting/report/period/shortcuts.py index 3b8fd72..1a3f04c 100644 --- a/src/accounting/report/period/shortcuts.py +++ b/src/accounting/report/period/shortcuts.py @@ -35,7 +35,7 @@ class ThisMonth(Period): def _set_properties(self) -> None: self.spec = "this-month" - self.desc = gettext("This month") + self.desc = gettext("This Month") self.is_a_month = True self.is_type_month = True @@ -55,7 +55,7 @@ class LastMonth(Period): def _set_properties(self) -> None: self.spec = "last-month" - self.desc = gettext("Last month") + self.desc = gettext("Last Month") self.is_a_month = True self.is_type_month = True @@ -75,7 +75,7 @@ class SinceLastMonth(Period): def _set_properties(self) -> None: self.spec = "since-last-month" - self.desc = gettext("Since last month") + self.desc = gettext("Since Last Month") self.is_type_month = True @@ -90,7 +90,7 @@ class ThisYear(Period): def _set_properties(self) -> None: self.spec = "this-year" - self.desc = gettext("This year") + self.desc = gettext("This Year") self.is_a_year = True @@ -105,7 +105,7 @@ class LastYear(Period): def _set_properties(self) -> None: self.spec = "last-year" - self.desc = gettext("Last year") + self.desc = gettext("Last Year") self.is_a_year = True diff --git a/src/accounting/templates/accounting/report/include/period-chooser.html b/src/accounting/templates/accounting/report/include/period-chooser.html index 257740b..5c90cb5 100644 --- a/src/accounting/templates/accounting/report/include/period-chooser.html +++ b/src/accounting/templates/accounting/report/include/period-chooser.html @@ -55,14 +55,14 @@ First written: 2023/3/4
- {{ A_("This month") }} + {{ A_("This Month") }} {% if report.period_chooser.has_last_month %} - {{ A_("Last month") }} + {{ A_("Last Month") }} - {{ A_("Since last month") }} + {{ A_("Since Last Month") }} {% endif %}
@@ -74,11 +74,11 @@ First written: 2023/3/4 {# The year periods #}
- {{ A_("This year") }} + {{ A_("This Year") }} {% if report.period_chooser.has_last_year %} - {{ A_("Last year") }} + {{ A_("Last Year") }} {% endif %} {% if report.period_chooser.available_years %}