~mail-bodograumann/specto/vital0

« back to all changes in this revision

Viewing changes to spectlib/plugins/watch_web_greader.py

  • Committer: Jean-François Fortin Tam
  • Date: 2009-03-26 16:35:43 UTC
  • mfrom: (98.2.30 specto-jeff)
  • Revision ID: jeff@kusanagi-20090326163543-il14052h7l33yr5w
Merge the notify-osd and Python 2.6 fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        """ create the text for the balloon """
109
109
        unread_messages = self.news_info.get_unread_messages()
110
110
        if len(unread_messages) == 1:
111
 
            text = _("<b>%s</b> has a new newsitems in <b>%s</b>...\n\n... <b>totalling %s</b> unread items.") %(self.name, unread_messages[0].name, str(self.unreadMsg) + self.or_more)
 
111
            text = _("New newsitems in <b>%s</b>...\n\n... <b>totalling %s</b> unread items.") %(unread_messages[0].name, str(self.unreadMsg) + self.or_more)
112
112
        else:
113
113
            i = 0 #show max 4 feeds
114
114
            feed_info = ""
118
118
                    feed_info += _("and others...")
119
119
                i += 1
120
120
            feed_info = feed_info.rstrip(", ")
121
 
            text = _("<b>%s</b> has received %d new newsitems in <b>%s</b>...\n\n... <b>totalling %s</b> unread items.") %(self.name, self.newMsg, feed_info, str(self.unreadMsg) + self.or_more)
 
121
            text = _("%d new newsitems in <b>%s</b>...\n\n... <b>totalling %s</b> unread items.") %(self.newMsg, feed_info, str(self.unreadMsg) + self.or_more)
122
122
        return text
123
123
 
124
124
    def get_extra_information(self):