Permalink
Browse files

Fully translate the dvd menu

Tthe menu name wasn't getting translated...

Thanks Richard!
  • Loading branch information...
nriendeau committed Jul 20, 2013
1 parent b7712df commit ca9ccb80ea798c4cf002da8399381b9d2a59578d
Showing with 12 additions and 7 deletions.
  1. +12 −7 mythtv/libs/libmythtv/DVD/dvdringbuffer.cpp
@@ -1,6 +1,10 @@
#include <unistd.h>
#include <stdlib.h>
// Qt headers
#include <QCoreApplication>
// MythTV headers
#include "mythconfig.h"
#include "dvdringbuffer.h"
@@ -25,12 +29,12 @@ static const char *dvdnav_menu_table[] =
{
NULL,
NULL,
"Title",
"Root",
"Subpicture",
"Audio",
"Angle",
"Part",
QT_TRANSLATE_NOOP("(DVD menu)", "Title Menu"),
QT_TRANSLATE_NOOP("(DVD menu)", "Root Menu"),
QT_TRANSLATE_NOOP("(DVD menu)", "Subpicture Menu"),
QT_TRANSLATE_NOOP("(DVD menu)", "Audio Menu"),
QT_TRANSLATE_NOOP("(DVD menu)", "Angle Menu"),
QT_TRANSLATE_NOOP3("(DVD menu)", "Part Menu", "DVD part/chapter menu"),
};
DVDInfo::DVDInfo(const QString &filename)
@@ -402,7 +406,8 @@ void DVDRingBuffer::GetDescForPos(QString &desc)
{
if ((m_part <= DVD_MENU_MAX) && dvdnav_menu_table[m_part] )
{
desc = tr("%1 Menu").arg(dvdnav_menu_table[m_part]);
desc = QCoreApplication::translate("(DVD menu)",
dvdnav_menu_table[m_part]);
}
}
else

0 comments on commit ca9ccb8

Please sign in to comment.