Skip to content

Commit

Permalink
Fix translation of storage group in pginfo map
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Jul 19, 2011
1 parent 39e12bf commit d2249ee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mythtv/libs/libmyth/programinfo.cpp
Expand Up @@ -1496,7 +1496,14 @@ void ProgramInfo::ToMap(InfoMap &progMap,
progMap["recordingggroup"] = (recgroup == "Default")
? QObject::tr("Default") : recgroup;
progMap["playgroup"] = playgroup;
progMap["storagegroup"] = storagegroup;

if (storagegroup == "Default")
progMap["storagegroup"] = tr("Default");
else if (StorageGroup::kSpecialGroups.contains(storagegroup))
progMap["storagegroup"] = tr(storagegroup.toUtf8().constData());
else
progMap["storagegroup"] = storagegroup;

progMap["programflags"] = programflags;

progMap["audioproperties"] = GetAudioProperties();
Expand Down

0 comments on commit d2249ee

Please sign in to comment.