Skip to content

Commit fe7608c

Browse files
Nicolas Riendeaudaniel-kristjansson
authored andcommitted
Fix a translatation lookup so that it retrieves the translated string
correctly. This doesn't add any new translatable strings.
1 parent bd3bf9f commit fe7608c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mythplugins/mythmusic/mythmusic/metadata.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,8 @@ QString AlbumArtImages::getTypeName(ImageType type)
13781378
QT_TR_NOOP("Artist"), // IT_ARTIST
13791379
};
13801380

1381-
return QObject::tr(type_strings[type]);
1381+
return QCoreApplication::translate("AlbumArtImages",
1382+
type_strings[type]);
13821383
}
13831384

13841385
// static method to get a filename from an ImageType
@@ -1394,7 +1395,8 @@ QString AlbumArtImages::getTypeFilename(ImageType type)
13941395
QT_TR_NOOP("artist") // IT_ARTIST
13951396
};
13961397

1397-
return QObject::tr(filename_strings[type]);
1398+
return QCoreApplication::translate("AlbumArtImages",
1399+
filename_strings[type]);
13981400
}
13991401

14001402
// static method to guess the image type from the filename

0 commit comments

Comments
 (0)