Skip to content

Commit

Permalink
Make DB setup strings translable and put them in the same context.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed May 4, 2012
1 parent 217be24 commit 406dcfa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mythtv/libs/libmyth/mythcontext.cpp
Expand Up @@ -368,7 +368,7 @@ bool MythContextPrivate::FindDatabase(bool prompt, bool noAutodetect)
int count = UPnPautoconf();

if (count == 0)
failure = "No UPnP backends found";
failure = QObject::tr("No UPnP backends found", "Backend Setup");

if (count == 1)
{
Expand Down Expand Up @@ -682,7 +682,9 @@ QString MythContextPrivate::TestDBconnection(void)
if (doPing && !ping(host, 3)) // Fail after trying for 3 seconds
{
SilenceDBerrors();
err = QObject::tr("Cannot find (ping) database host %1 on the network");
err = QObject::tr(
"Cannot find (ping) database host %1 on the network",
"Backend Setup");
return err.arg(host);
}

Expand All @@ -695,7 +697,7 @@ QString MythContextPrivate::TestDBconnection(void)
if (!MSqlQuery::testDBConnection())
{
SilenceDBerrors();
return QObject::tr("Cannot login to database?");
return QObject::tr("Cannot login to database", "Backend Setup");
}


Expand Down

0 comments on commit 406dcfa

Please sign in to comment.