Skip to content

Commit

Permalink
Replace some more instances of concatenated strings which cannot be t…
Browse files Browse the repository at this point in the history
…ranslated correctly.
  • Loading branch information
stuartm committed Jun 6, 2012
1 parent 59703a7 commit 7d9bb76
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmyth/storagegroupeditor.cpp
Expand Up @@ -302,11 +302,11 @@ void StorageGroupListEditor::doDelete(void)
{
if (name == "Default")
{
message.append("\n" + tr("(from remote hosts)"));
message = tr("Delete '%1' Storage Group?\n(from remote hosts)").arg(dispGroup);
}
else
{
message.append("\n" + tr("(from all hosts"));
message = tr("Delete '%1' Storage Group?\n(from all hosts)").arg(dispGroup);
}
}

Expand Down
10 changes: 4 additions & 6 deletions mythtv/libs/libmythmetadata/videoscan.cpp
Expand Up @@ -470,12 +470,10 @@ void VideoScanner::finishedScan()
QStringList failedHosts = m_scanThread->GetOfflineSGHosts();
if (failedHosts.size() > 0)
{
QString msg = tr("Failed to Scan SG Video Hosts") + ":\n\n";

for (int i = 0; i < failedHosts.size(); ++i)
msg += " " + failedHosts.at(i);

msg += "\n" + tr("If they no longer exist please remove them") + "\n\n";
QString hosts = failedHosts.join(" ");
QString msg = tr("Failed to Scan SG Video Hosts:\n\n%1\n\n"
"If they no longer exist please remove them")
.arg(hosts);

ShowOkPopup(msg);
}
Expand Down
6 changes: 3 additions & 3 deletions mythtv/programs/mythwelcome/welcomedialog.cpp
Expand Up @@ -362,9 +362,9 @@ void WelcomeDialog::updateScreen(void)
if (!tuner.subtitle.isEmpty())
status += "\n("+tuner.subtitle+")";
status += "\n" +
tuner.startTime.toLocalTime().toString(m_timeFormat) +
" " + tr("to") + " " +
tuner.endTime.toLocalTime().toString(m_timeFormat);
QObject::tr("%1 to %2", "Time period, 'starttime to endtime'")
.arg(MythDate::toString(tuner.startTime, MythDate::kTime))
.arg(MythDate::toString(tuner.endTime, MythDate::kTime));
}
else
{
Expand Down

0 comments on commit 7d9bb76

Please sign in to comment.