mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-28 18:43:58 +00:00
Make strings easier to translate.
"%s cover art" (ie. "front cover art") is working in english, but not as well in other languages, especially when type isn't even translated (for now). Replaced with "cover art of type '%s'", which is slightly better when it comes to i18n.
This commit is contained in:
@@ -81,8 +81,9 @@ def _coverart_downloaded(album, metadata, release, try_list, coverinfos, data, h
|
||||
if error:
|
||||
_coverart_http_error(album, http)
|
||||
else:
|
||||
QObject.tagger.window.set_statusbar_message(N_("%s cover art downloaded for %s from %s"),
|
||||
coverinfos['type'].title(), album.id, coverinfos['host'])
|
||||
QObject.tagger.window.set_statusbar_message(
|
||||
N_("Cover art of type '%s' downloaded for %s from %s"),
|
||||
coverinfos['type'].title(), album.id, coverinfos['host'])
|
||||
mime = mimetype.get_from_data(data, default="image/jpeg")
|
||||
|
||||
try:
|
||||
@@ -246,8 +247,9 @@ def _walk_try_list(album, metadata, release, try_list):
|
||||
# We still have some items to try!
|
||||
album._requests += 1
|
||||
coverinfos = try_list.pop(0)
|
||||
QObject.tagger.window.set_statusbar_message(N_("Downloading %s cover art for %s from %s ..."),
|
||||
coverinfos['type'], album.id, coverinfos['host'])
|
||||
QObject.tagger.window.set_statusbar_message(
|
||||
N_("Downloading cover art of type '%s' for %s from %s ..."),
|
||||
coverinfos['type'], album.id, coverinfos['host'])
|
||||
album.tagger.xmlws.download(
|
||||
coverinfos['host'], coverinfos['port'], coverinfos['path'],
|
||||
partial(_coverart_downloaded, album, metadata, release, try_list, coverinfos),
|
||||
|
||||
Reference in New Issue
Block a user