diff --git a/src/libsnore/snore.cpp b/src/libsnore/snore.cpp index e0625c9..7bb3e38 100644 --- a/src/libsnore/snore.cpp +++ b/src/libsnore/snore.cpp @@ -256,7 +256,7 @@ Notification SnoreCore::getActiveNotificationByID(uint id) const void SnoreCore::displayExapleNotification() { Application app = SnoreCorePrivate::instance()->defaultApplication(); - QString text = QLatin1String("") + tr("This is ") + app.name() + QLatin1String("
" + QString text = QLatin1String("") + tr("This is %1").arg(app.name()) + QLatin1String("
" "") + tr("Everything is awesome!") + QLatin1String("
"); if (!app.constHints().value("use-markup").toBool()) { text = Utils::normalizeMarkup(text, Utils::NO_MARKUP); diff --git a/src/plugins/backends/growl/growlbackend.cpp b/src/plugins/backends/growl/growlbackend.cpp index 68e64e1..dfc507f 100644 --- a/src/plugins/backends/growl/growlbackend.cpp +++ b/src/plugins/backends/growl/growlbackend.cpp @@ -67,7 +67,7 @@ bool GrowlBackend::isReady() { bool running = Growl::isRunning(GROWL_TCP, settingsValue(QLatin1String("Host")).toString().toUtf8().constData()); if (!running) { - setErrorString(name() + tr(" is not running.")); + setErrorString(tr("%1 is not running.").arg(name())); } return running; } diff --git a/src/plugins/backends/snarl/snarl.cpp b/src/plugins/backends/snarl/snarl.cpp index 54dbc4a..91578dd 100644 --- a/src/plugins/backends/snarl/snarl.cpp +++ b/src/plugins/backends/snarl/snarl.cpp @@ -147,7 +147,7 @@ bool SnarlBackend::isReady() { bool running = SnarlInterface::IsSnarlRunning(); if (!running) { - setErrorString(name() + tr(" is not running.")); + setErrorString(tr("%1 is not running.").arg(name())); } return running; } diff --git a/src/plugins/backends/snoretoast/snoretoast.cpp b/src/plugins/backends/snoretoast/snoretoast.cpp index 834c125..885c1b4 100644 --- a/src/plugins/backends/snoretoast/snoretoast.cpp +++ b/src/plugins/backends/snoretoast/snoretoast.cpp @@ -17,7 +17,7 @@ using namespace Snore; bool SnoreToast::isReady() { if (errorString().isEmpty() && QSysInfo::windowsVersion() < QSysInfo::WV_WINDOWS8) { - setErrorString(name() + tr(" needs at least Windows 8 to run.")); + setErrorString(tr("%1 needs at least Windows 8 to run.").arg(name())); return false; } return true; diff --git a/src/settings/settingswindow.cpp b/src/settings/settingswindow.cpp index 74c2c93..d4786a3 100644 --- a/src/settings/settingswindow.cpp +++ b/src/settings/settingswindow.cpp @@ -49,7 +49,7 @@ SettingsWindow::SettingsWindow(const QString &appName, QWidget *parent) : ui->comboBox->deleteLater(); ui->label->deleteLater(); SnoreCorePrivate::instance()->setLocalSttingsPrefix(appName); - setWindowTitle(appName + tr(" Settings")); + setWindowTitle(tr("%1 Settings").arg(appName)); ui->widget->initTabs(); ui->widget->setVisible(true); }