Revised the text message in the period parser.

This commit is contained in:
依瑪貓 2020-07-08 07:45:18 +08:00
parent ad0eb6e73e
commit 39d65e1381

View File

@ -164,7 +164,7 @@ class PeriodParser:
def invalid_period(self):
"""Sets the period when the period specification is invalid.
"""
self.error = pgettext("Accounting|", "Invalid period.")
self.error = gettext("Invalid period.")
today = localdate()
self.spec = dateformat.format(localdate(), "Y-m")
self.start = date(today.year, today.month, 1)