diff --git a/mythtv/libs/libmythmetadata/metadatacommon.cpp b/mythtv/libs/libmythmetadata/metadatacommon.cpp index 17ffcf64297..a3372c50892 100644 --- a/mythtv/libs/libmythmetadata/metadatacommon.cpp +++ b/mythtv/libs/libmythmetadata/metadatacommon.cpp @@ -1,4 +1,6 @@ +// Qt headers #include +#include #include "rssparse.h" #include "programinfo.h" @@ -437,8 +439,17 @@ void MetadataLookup::toMap(MetadataMap &metadataMap) m_releasedate, MythDate::kDateFull); metadataMap["lastupdated"] = MythDate::toString(m_lastupdated, MythDate::kDateFull); - metadataMap["runtime"] = QObject::tr("%n minute(s)", "", m_runtime); - metadataMap["runtimesecs"] = QObject::tr("%n second(s)", "", m_runtimesecs); + metadataMap["runtime"] = QCoreApplication::translate("(Common)", + "%n minute(s)", + "", + QCoreApplication::UnicodeUTF8, + m_runtime); + + metadataMap["runtimesecs"] = QCoreApplication::translate("(Common)", + "%n second(s)", + "", + QCoreApplication::UnicodeUTF8, + m_runtimesecs); metadataMap["inetref"] = m_inetref; metadataMap["collectionref"] = m_collectionref; metadataMap["tmsref"] = m_tmsref; diff --git a/mythtv/libs/libmythmetadata/videoutils.cpp b/mythtv/libs/libmythmetadata/videoutils.cpp index 59aa26920f1..a111ebb5ee5 100644 --- a/mythtv/libs/libmythmetadata/videoutils.cpp +++ b/mythtv/libs/libmythmetadata/videoutils.cpp @@ -147,7 +147,7 @@ QString GetDisplayLength(int length) { // The disambiguation string must be an empty string and not a // NULL to get extracted by the Qt tools. - return QCoreApplication::translate("(Common)", "%n minutes", "", + return QCoreApplication::translate("(Common)", "%n minute(s)", "", QCoreApplication::UnicodeUTF8, length); }