Skip to content

Commit

Permalink
labels made translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
lindakladivova committed May 24, 2024
1 parent 40b44ae commit 2b5ee4a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gui/wxpython/history/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ def dayToLabel(self, day):

month_name = day.strftime("%B")
if day == current_date:
return "{0} {1} (today)".format(month_name, day.day)
return _("{0} {1} (today)").format(month_name, day.day)
elif day == current_date - datetime.timedelta(days=1):
return "{0} {1} (yesterday)".format(month_name, day.day)
return _("{0} {1} (yesterday)").format(month_name, day.day)
elif day >= (current_date - datetime.timedelta(days=current_date.weekday())):
return "{0} {1} (this week)".format(month_name, day.day)
return _("{0} {1} (this week)").format(month_name, day.day)
elif day.year == current_date.year:
return "{0} {1}".format(month_name, day.day)
return _("{0} {1}").format(month_name, day.day)
else:
return "{0} {1}, {2}".format(month_name, day.day, day.year)
return _("{0} {1}, {2}").format(month_name, day.day, day.year)


class HistoryBrowserTree(CTreeView):
Expand Down

0 comments on commit 2b5ee4a

Please sign in to comment.