Skip to content

Commit

Permalink
Add some new strings in the (Common) context.
Browse files Browse the repository at this point in the history
At the same time, fix one of the strings in another class so that it's
written in the same way...
  • Loading branch information
Nicolas Riendeau committed Jul 14, 2013
1 parent cd7942a commit 3b4187b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions mythtv/libs/libmythmetadata/metadatacommon.cpp
@@ -1,4 +1,6 @@
// Qt headers
#include <QLocale>
#include <QCoreApplication>

#include "rssparse.h"
#include "programinfo.h"
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythmetadata/videoutils.cpp
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3b4187b

Please sign in to comment.