mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Make error message translatable
This commit is contained in:
parent
600166152d
commit
10857727ec
|
@ -612,17 +612,13 @@ void PlacesItemModel::slotStorageSetupDone(Solid::ErrorType error,
|
|||
}
|
||||
|
||||
if (error) {
|
||||
// TODO: Request message-freeze exception
|
||||
if (errorData.isValid()) {
|
||||
// emit errorMessage(i18nc("@info", "An error occurred while accessing '%1', the system responded: %2",
|
||||
// item->text(),
|
||||
// errorData.toString()));
|
||||
emit errorMessage(QString("An error occurred while accessing '%1', the system responded: %2")
|
||||
.arg(item->text()).arg(errorData.toString()));
|
||||
emit errorMessage(i18nc("@info", "An error occurred while accessing '%1', the system responded: %2",
|
||||
item->text(),
|
||||
errorData.toString()));
|
||||
} else {
|
||||
// emit errorMessage(i18nc("@info", "An error occurred while accessing '%1'",
|
||||
// item->text()));
|
||||
emit errorMessage(QString("An error occurred while accessing '%1'").arg(item->text()));
|
||||
emit errorMessage(i18nc("@info", "An error occurred while accessing '%1'",
|
||||
item->text()));
|
||||
}
|
||||
emit storageSetupDone(index, false);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue