Skip to content

Commit

Permalink
Fix a translatation lookup so that it retrieves the translated string
Browse files Browse the repository at this point in the history
correctly.

This doesn't add any new translatable strings.
  • Loading branch information
Nicolas Riendeau authored and daniel-kristjansson committed Apr 5, 2012
1 parent bd3bf9f commit fe7608c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mythplugins/mythmusic/mythmusic/metadata.cpp
Expand Up @@ -1378,7 +1378,8 @@ QString AlbumArtImages::getTypeName(ImageType type)
QT_TR_NOOP("Artist"), // IT_ARTIST
};

return QObject::tr(type_strings[type]);
return QCoreApplication::translate("AlbumArtImages",
type_strings[type]);
}

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

return QObject::tr(filename_strings[type]);
return QCoreApplication::translate("AlbumArtImages",
filename_strings[type]);
}

// static method to guess the image type from the filename
Expand Down

0 comments on commit fe7608c

Please sign in to comment.