Permalink
Browse files

Make translatable MythMusic strings which were not translatable.

  • Loading branch information...
nriendeau committed Aug 6, 2012
1 parent 0f3d088 commit 47c222d296f975c7bfff711aa1ed11d05524d9ee
@@ -253,8 +253,8 @@ void PlaylistEditorView::customEvent(QEvent *event)
QString category = mnode->getParent()->getString();
QString name = mnode->getString();
- ShowOkPopup(QString("Are you sure you want to delete this Smart Playlist?\n"
- "Category: %1 - Name: %2").arg(category).arg(name),
+ ShowOkPopup(tr("Are you sure you want to delete this Smart Playlist?\n"
+ "Category: %1 - Name: %2").arg(category).arg(name),
this, SLOT(deleteSmartPlaylist(bool)), true);
}
else if (resulttext == tr("Edit Smart Playlist"))
@@ -306,8 +306,8 @@ void PlaylistEditorView::customEvent(QEvent *event)
{
QString name = mnode->getString();
- ShowOkPopup(QString("Are you sure you want to delete this Playlist?\n"
- "Name: %1").arg(name),
+ ShowOkPopup(tr("Are you sure you want to delete this Playlist?\n"
+ "Name: %1").arg(name),
this, SLOT(deletePlaylist(bool)), true);
}
else if (resulttext == tr("Replace Tracks"))
@@ -426,17 +426,17 @@ bool PlaylistEditorView::keyPressEvent(QKeyEvent *event)
QString category = mnode->getParent()->getString();
QString name = mnode->getString();
- ShowOkPopup(QString("Are you sure you want to delete this Smart Playlist?\n"
- "Category: %1 - Name: %2").arg(category).arg(name),
+ ShowOkPopup(tr("Are you sure you want to delete this Smart Playlist?\n"
+ "Category: %1 - Name: %2").arg(category).arg(name),
this, SLOT(deleteSmartPlaylist(bool)), true);
handled = true;
}
else if (mnode->getAction() == "playlist")
{
QString name = mnode->getString();
- ShowOkPopup(QString("Are you sure you want to delete this Playlist?\n"
- "Name: %1").arg(name),
+ ShowOkPopup(tr("Are you sure you want to delete this Playlist?\n"
+ "Name: %1").arg(name),
this, SLOT(deletePlaylist(bool)), true);
handled = true;
}
@@ -386,9 +386,9 @@ void StreamView::removeStream(void)
{
Metadata *mdata = qVariantValue<Metadata*> (item->GetData());
- ShowOkPopup(QString("Are you sure you want to delete this Stream?\n"
- "Station:%1 - Channel: %2")
- .arg(mdata->Station()).arg(mdata->Channel()),
+ ShowOkPopup(tr("Are you sure you want to delete this Stream?\n"
+ "Station: %1 - Channel: %2")
+ .arg(mdata->Station()).arg(mdata->Channel()),
this, SLOT(doRemoveStream(bool)), true);
}
}

0 comments on commit 47c222d

Please sign in to comment.