Skip to content

Commit

Permalink
translate next prayer name when updating prayers
Browse files Browse the repository at this point in the history
  • Loading branch information
AXeL-dev committed Feb 12, 2019
1 parent aa5b3fc commit f31237f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion silaty-indicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def loop(self):

# Update displayed prayer
if (nextprayer != self.currentprayer) and self.silaty.is_visible():
self.silaty.homebox.emit("prayers-updated", nextprayer)
self.silaty.homebox.emit("prayers-updated", _(nextprayer))
self.currentprayer = nextprayer

self.NextPrayerItem.set_label(_("%s until %s") % (self.secs_to_hrtime(tonextprayer.seconds), _(nextprayer)))
Expand Down
2 changes: 1 addition & 1 deletion silaty.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ def update_prayers(self, recalculate_prayer_times = True):
self.homebox.prayers[i].time = self.get_times(self.prayertimes.isha_time())
i += 1
nextprayer = self.prayertimes.next_prayer()
self.homebox.emit("prayers-updated", nextprayer)
self.homebox.emit("prayers-updated", _(nextprayer))

def hide_window(self, widget, data):
self.prayertimes.options.save_options()
Expand Down

0 comments on commit f31237f

Please sign in to comment.