Skip to content

Commit

Permalink
Remove additionnal QObject::tr() and permit translation using tr() on…
Browse files Browse the repository at this point in the history
…ly...
  • Loading branch information
Nicolas Riendeau committed Jul 20, 2013
1 parent 8d036fb commit 9347e49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mythtv/libs/libmythtv/audioplayer.cpp
Expand Up @@ -5,7 +5,7 @@

#define LOC QString("AudioPlayer: ")

static const QString _Location = QObject::tr("Audio Player");
static const QString _Location = AudioPlayer::tr("Audio Player");

AudioPlayer::AudioPlayer(MythPlayer *parent, bool muted)
: m_parent(parent), m_audioOutput(NULL), m_channels(-1),
Expand Down Expand Up @@ -138,7 +138,7 @@ QString AudioPlayer::ReinitAudio(void)
m_audioOutput = AudioOutput::OpenAudio(aos);
if (!m_audioOutput)
{
errMsg = QObject::tr("Unable to create AudioOutput.");
errMsg = tr("Unable to create AudioOutput.");
}
else
{
Expand All @@ -160,7 +160,7 @@ QString AudioPlayer::ReinitAudio(void)
{
LOG(VB_GENERAL, LOG_NOTICE, LOC + "Disabling Audio" +
QString(", reason is: %1").arg(errMsg));
ShowNotificationError(QObject::tr("Disabling Audio"),
ShowNotificationError(tr("Disabling Audio"),
_Location, errMsg);
m_no_audio_out = true;
}
Expand Down
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/audioplayer.h
Expand Up @@ -16,6 +16,8 @@ namespace MythTV

class MTV_PUBLIC AudioPlayer
{
Q_DECLARE_TR_FUNCTIONS(AudioPlayer)

public:
AudioPlayer(MythPlayer *parent, bool muted);
~AudioPlayer();
Expand Down

0 comments on commit 9347e49

Please sign in to comment.