Update date.py

Removes the +1 when the Age precision is set to 1 (Years) and the month is >= 6

Bug #0012422
This commit is contained in:
DaveSch-gramps 2021-10-10 13:31:43 -04:00
parent 1d51576a28
commit cd4f7f0f67

View File

@ -429,11 +429,6 @@ class Span:
).format(number_of=diff_tuple[0]) ).format(number_of=diff_tuple[0])
detail += 1 detail += 1
if self.precision == detail: if self.precision == detail:
if diff_tuple[1] >= 6: # round up years
# Translators: leave all/any {...} untranslated
retval = ngettext("{number_of} year", "{number_of} years",
diff_tuple[0] + 1
).format(number_of=diff_tuple[0] + 1)
return retval return retval
if diff_tuple[1] != 0: if diff_tuple[1] != 0:
if retval != "": if retval != "":