summaryrefslogtreecommitdiff
path: root/src/sanitychecks.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-12 14:47:35 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-12-12 14:47:35 -0500
commitc3c1183308dbe00a14b8cf5e3c58e92bd9edfaf6 (patch)
treed6f4388ea30b9c6e1ff5a8000e56ecb20e801d6a /src/sanitychecks.cpp
parent1d0b202ee64fe12d23922e816812749e8fe40bf6 (diff)
fixed alt colors in saves list for dark.qss
translated some sanity checks warnings fixed filter list not refreshing selection correctly
Diffstat (limited to 'src/sanitychecks.cpp')
-rw-r--r--src/sanitychecks.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/sanitychecks.cpp b/src/sanitychecks.cpp
index 330735ed..bdf762d9 100644
--- a/src/sanitychecks.cpp
+++ b/src/sanitychecks.cpp
@@ -110,7 +110,11 @@ bool isFileBlocked(const QFileInfo& fi)
}
// file is blocked
- log::warn("'{}': file is blocked, zone id is {}", path, toString(z));
+ log::warn("{}", QObject::tr(
+ "'%1': file is blocked (%2)")
+ .arg(path)
+ .arg(toString(z)));
+
return true;
}
@@ -199,9 +203,9 @@ int checkMissingFiles()
const QFileInfo file(dir + "/" + name);
if (!file.exists()) {
- log::warn(
- "'{}' seems to be missing, an antivirus may have deleted it",
- file.absoluteFilePath());
+ log::warn("{}", QObject::tr(
+ "'%1' seems to be missing, an antivirus may have deleted it")
+ .arg(file.absoluteFilePath()));
++n;
}
@@ -231,10 +235,13 @@ int checkIncompatibleModule(const env::Module& m)
for (auto&& p : names) {
if (file.fileName().compare(p.first, Qt::CaseInsensitive) == 0) {
- log::warn(
- "{} is loaded. This program is known to cause issues with "
+ log::warn("{}", QObject::tr(
+ "%1 is loaded. This program is known to cause issues with "
"Mod Organizer, such as freezing or blank windows. Consider "
- "uninstalling it. ({})", p.second, file.absoluteFilePath());
+ "uninstalling it.")
+ .arg(p.second));
+
+ log::warn("{}", file.absoluteFilePath());
++n;
}