refactor: messages::showReadOnlySettings, use name in title, enable translations
This commit is contained in:
@ -258,15 +258,13 @@ bool showClearSettings(QWidget *parent)
|
||||
|
||||
void showReadOnlySettings(QWidget *parent, const QString &systemSettingsPath)
|
||||
{
|
||||
QString nativePath = QDir::toNativeSeparators(systemSettingsPath);
|
||||
QMessageBox::information(
|
||||
parent, "Read-only settings",
|
||||
QString(
|
||||
"<p>Settings are read-only because you only have read access "
|
||||
"to the file:</p><p>%1</p>"
|
||||
)
|
||||
.arg(nativePath)
|
||||
);
|
||||
const auto title = QObject::tr("%1 Read-only settings").arg(kAppName);
|
||||
const auto message = QObject::tr(
|
||||
"<p>Settings are read-only because you only have read access "
|
||||
"to the file:</p><p>%1</p>"
|
||||
)
|
||||
.arg(QDir::toNativeSeparators(systemSettingsPath));
|
||||
QMessageBox::information(parent, title, message);
|
||||
}
|
||||
|
||||
void showWaylandLibraryError(QWidget *parent)
|
||||
|
||||
Reference in New Issue
Block a user