Skip to content

Commit

Permalink
Fix drop timestamp "ends" using "starts" translation
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Aug 7, 2023
1 parent ab9a831 commit 137f540
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1422,14 +1422,14 @@ def update_progress(self, drop: TimedDrop, label: MouseOverLabel) -> None:
)
if datetime.now(timezone.utc) < drop.starts_at > drop.campaign.starts_at:
# this drop can only be earned later than the campaign start
alt_text = "Starts at: {}".format(
drop.starts_at.astimezone().replace(microsecond=0, tzinfo=None)
alt_text = _("gui", "inventory", "starts").format(
time=drop.starts_at.astimezone().replace(microsecond=0, tzinfo=None)
)
reverse = True
elif drop.ends_at < drop.campaign.ends_at:
# this drop becomes unavailable earlier than the campaign ends
alt_text = "Starts at: {}".format(
drop.ends_at.astimezone().replace(microsecond=0, tzinfo=None)
alt_text = _("gui", "inventory", "ends").format(
time=drop.ends_at.astimezone().replace(microsecond=0, tzinfo=None)
)
reverse = True
label.config(
Expand Down

0 comments on commit 137f540

Please sign in to comment.