Skip to content
Snippets Groups Projects
Commit 43a4ebc5 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

make atom pubsub widget translated

parent 8536e997
No related branches found
No related tags found
No related merge requests found
...@@ -105,14 +105,13 @@ class AtomWindow: ...@@ -105,14 +105,13 @@ class AtomWindow:
''' We display number of events on the top of window, sometimes it needs to be ''' We display number of events on the top of window, sometimes it needs to be
changed...''' changed...'''
count = len(self.__class__.entries) count = len(self.__class__.entries)
# TODO: translate
if count>0: if count>0:
self.new_entry_label.set_text( \ self.new_entry_label.set_text(
'You have received new entries (and %(count)d not displayed):' % \ _('You have received new entries (and %(count)d not displayed):') %\
{'count': count}) {'count': count})
self.next_button.set_sensitive(True) self.next_button.set_sensitive(True)
else: else:
self.new_entry_label.set_text('You have received new entry:') self.new_entry_label.set_text(_('You have received new entry:'))
self.next_button.set_sensitive(False) self.next_button.set_sensitive(False)
def on_close_button_clicked(self, widget): def on_close_button_clicked(self, widget):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment