make atom pubsub widget translated

This commit is contained in:
Yann Leboulanger 2009-08-06 19:20:06 +02:00
parent 8536e99738
commit 43a4ebc583

View file

@ -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):