Make user tune tooltip translatable.

@whoever did that: _() has to be around the format string, NOT the
result of the sprintf!
This commit is contained in:
js 2008-07-22 23:03:33 +00:00
parent 4178ec7fcb
commit c3079e5ac5
1 changed files with 4 additions and 2 deletions

View File

@ -612,8 +612,10 @@ class RosterTooltip(NotificationAreaTooltip):
source = gobject.markup_escape_text(source)
else:
source = _('Unknown Source')
tune_string = _('Tune:') + ' ' + _('<b>"%(title)s"</b> by <i>%(artist)s</i>\nfrom <i>%(source)s</i>' %\
{'title': title, 'artist': artist, 'source': source})
tune_string = _('Tune:') + ' ' + _('<b>"%(title)s"' +
'</b> by <i>%(artist)s</i>\nfrom ' +
'<i>%(source)s</i>') % {'title': title,
'artist': artist, 'source': source}
properties.append((tune_string, None))