diff --git a/src/lib/gui/Messages.cpp b/src/lib/gui/Messages.cpp index b3066747f..c8d0352e8 100644 --- a/src/lib/gui/Messages.cpp +++ b/src/lib/gui/Messages.cpp @@ -109,26 +109,23 @@ void messageHandler(QtMsgType type, const QMessageLogContext &context, const QSt void showCloseReminder(QWidget *parent) { - QString message = QString( - "

%1 will continue to run in the background and can be accessed " - "via the %1 icon in your system notifications area. This " - "setting " - "can be disabled.

" + auto message = QObject::tr( + "

%1 will continue to run in the background and can be accessed via the %1 icon in your " + "system notifications area. This setting can be disabled.

" ) - .arg(kAppName); + .arg(kAppName); #if defined(Q_OS_LINUX) - message += QString( - "

On some Linux systems such as GNOME 3, the " - "notification area might be disabled. " - "You may need to " - R"(enable an extension)" - " to see the %3 tray icon.

" - ) - .arg(kUrlGnomeTrayFix, kStyleLink, kAppName); + message.append( + QObject::tr( + "

On Linux systems using GNOME 3, the notification area might be disabled. " + R"(You may need to enable an extension to see the %3 tray icon.

)" + ) + .arg(kUrlGnomeTrayFix, kStyleLink, kAppName) + ); #endif - QMessageBox::information(parent, "Notification area icon", message); + QMessageBox::information(parent, kAppName, message); } void showFirstServerStartMessage(QWidget *parent)