From 041febc3eea291bcb5bc20fe2cb3eeed3b574b4e Mon Sep 17 00:00:00 2001 From: Martin Pohlack Date: Sun, 14 Jun 2020 01:48:03 +0200 Subject: [PATCH] Fix locale time entry handling Unit detection was not considering localization. Fix the simple issue in find_errors_in_progress() by translating units to compare against. I suspect this might address two issues (#781 and #834). Fixes #781. Fixes #834. Signed-off-by: Martin Pohlack --- gourmet/gtk_extras/timeEntry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gourmet/gtk_extras/timeEntry.py b/gourmet/gtk_extras/timeEntry.py index ef638ce43..2b8d175bb 100644 --- a/gourmet/gtk_extras/timeEntry.py +++ b/gourmet/gtk_extras/timeEntry.py @@ -47,7 +47,7 @@ def find_errors_in_progress (self, txt): return None else: partial_unit = words[-1] - for u in self.conv.unit_to_seconds.keys(): + for u in _(self.conv.unit_to_seconds.keys()): if u.lower().find(partial_unit.lower())==0: return None #self._hide_warning_slowly()