summaryrefslogtreecommitdiffstats
path: root/src/SingleImagePackModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-08-17 23:51:15 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-08-17 23:51:15 +0200
commitc2e777f3e41cbd7e3e73502127e80dcceeeb020e (patch)
treec3c1749cae23fd07a54b36f5266c93740c11695c /src/SingleImagePackModel.cpp
parentee58ba94017fb6bad1a036311cdd9bef4b60cffb (diff)
Update translations
Diffstat (limited to 'src/SingleImagePackModel.cpp')
-rw-r--r--src/SingleImagePackModel.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/SingleImagePackModel.cpp b/src/SingleImagePackModel.cpp
index 7bf55617..4eb120d9 100644
--- a/src/SingleImagePackModel.cpp
+++ b/src/SingleImagePackModel.cpp
@@ -258,7 +258,7 @@ SingleImagePackModel::save()
http::client()->put_account_data(pack, [](mtx::http::RequestErr e) {
if (e)
ChatPage::instance()->showNotification(
- tr("Failed to update image pack: {}")
+ tr("Failed to update image pack: %1")
.arg(QString::fromStdString(e->matrix_error.error)));
});
} else {
@@ -271,7 +271,7 @@ SingleImagePackModel::save()
[](const mtx::responses::EventId &, mtx::http::RequestErr e) {
if (e)
ChatPage::instance()->showNotification(
- tr("Failed to delete old image pack: {}")
+ tr("Failed to delete old image pack: %1")
.arg(QString::fromStdString(e->matrix_error.error)));
});
}
@@ -283,10 +283,10 @@ SingleImagePackModel::save()
[this](const mtx::responses::EventId &, mtx::http::RequestErr e) {
if (e)
ChatPage::instance()->showNotification(
- tr("Failed to update image pack: {}")
+ tr("Failed to update image pack: %1")
.arg(QString::fromStdString(e->matrix_error.error)));
- nhlog::net()->info("Uploaded image pack: {}", statekey_);
+ nhlog::net()->info("Uploaded image pack: %1", statekey_);
});
}
}
@@ -298,7 +298,7 @@ SingleImagePackModel::addStickers(QList<QUrl> files)
auto file = QFile(f.toLocalFile());
if (!file.open(QFile::ReadOnly)) {
ChatPage::instance()->showNotification(
- tr("Failed to open image: {}").arg(f.toLocalFile()));
+ tr("Failed to open image: %1").arg(f.toLocalFile()));
return;
}
@@ -325,7 +325,7 @@ SingleImagePackModel::addStickers(QList<QUrl> files)
mtx::http::RequestErr e) {
if (e) {
ChatPage::instance()->showNotification(
- tr("Failed to upload image: {}")
+ tr("Failed to upload image: %1")
.arg(QString::fromStdString(e->matrix_error.error)));
return;
}