Permalink
Browse files

Make DB setup strings translable and put them in the same context.

  • Loading branch information...
1 parent 217be24 commit 406dcfad485dd9050aef9c7eb7f68ef6eb0a05cb @daniel-kristjansson daniel-kristjansson committed May 3, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 mythtv/libs/libmyth/mythcontext.cpp
@@ -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)
{
@@ -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);
}
@@ -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");
}

0 comments on commit 406dcfa

Please sign in to comment.