Codebase list sugar-read-activity / 0ac5810
Use named arguments in translatable strings Fixes https://github.com/sugarlabs/read-activity/issues/30 [use other names and comply with flake8] Signed-off-by: James Cameron <quozl@laptop.org> Hrishi authored 5 years ago James Cameron committed 5 years ago
1 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
10321032 thumb = self._get_screenshot()
10331033 # The database is zero based
10341034 num_page = int(page) + 1
1035 title = _('%s (Page %d)') % \
1036 (bookmark.get_note_title(), num_page)
1035 title = _('%(title)s (Page %(number)d)') % \
1036 ({'title': bookmark.get_note_title(),
1037 'number': num_page})
10371038 self._add_link_totray(num_page, thumb, bookmark.color, title,
10381039 bookmark.nick, bookmark.local)
10391040
12241225
12251226 def _added_bookmark_cb(self, bookmarkmanager, page, title):
12261227 logging.debug('Bookmark added page %d', page)
1227 title = _('%s (Page %d)') % (title, page)
1228 title = _('%(title)s (Page %(number)d)') % \
1229 ({'title': title, 'number': page})
12281230 color = profile.get_color().to_string()
12291231 owner = profile.get_nick_name()
12301232 thumb = self._get_screenshot()