Skip to content

Commit

Permalink
MythEDID: Make HDR descriptions translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Jan 22, 2021
1 parent 7824697 commit 42731ca
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions mythtv/libs/libmythui/mythedid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#include "mythlogging.h"
#include "mythedid.h"

// Qt
#include <QObject>

#define DESCRIPTOR_ALPHANUMERIC_STRING 0xFE
#define DESCRIPTOR_PRODUCT_NAME 0xFC
#define DESCRIPTOR_SERIAL_NUMBER 0xFF
Expand Down Expand Up @@ -96,11 +99,11 @@ std::pair<int,int> MythEDID::GetHDRSupport() const

QString MythEDID::EOTFToString(int EOTF)
{
if (EOTF & SDR) return "SDR";
if (EOTF & HDRTrad) return "HDR(Trad)";
if (EOTF & HDR10) return "HDR10 (SMPTE ST2084)";
if (EOTF & HLG) return "Hybrid Log-Gamma";
return "Unknown";
if (EOTF & SDR) return QObject::tr("SDR");
if (EOTF & HDRTrad) return QObject::tr("HDR(Trad)");
if (EOTF & HDR10) return QObject::tr("HDR10 (SMPTE ST2084)");
if (EOTF & HLG) return QObject::tr("Hybrid Log-Gamma");
return QObject::tr("Unknown");
}

QStringList MythEDID::EOTFToStrings(int EOTF)
Expand Down

0 comments on commit 42731ca

Please sign in to comment.