diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index 4a6207588dc..abc3ff34be8 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -595,7 +595,7 @@ def date_displayer(self): self._dd = displayers[self.calendar[:2]](val) elif self != _first and _first.calendar in displayers: self._dd = displayers[_first.calendar](val, blocale=self) - elif self != _first and _first.calendar and q_first.calendar[:2] in displayers: + elif self != _first and _first.calendar and _first.calendar[:2] in displayers: self._dd = displayers[_first.calendar[:2]](val, blocale=self) else: self._dd = displayers["C"](val, blocale=self)