summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-09-18 17:52:48 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-09-18 17:52:48 -0400
commit8b2fd0bab715622208df256b8066361b32a3b209 (patch)
tree4b5af5b0b61c7dfa841e208a5d1dfa6623975a9e
parentfa40aa020502f01998110fd74f6f5994492b8e0f (diff)
downloadSMAPI-8b2fd0bab715622208df256b8066361b32a3b209.tar.gz
SMAPI-8b2fd0bab715622208df256b8066361b32a3b209.tar.bz2
SMAPI-8b2fd0bab715622208df256b8066361b32a3b209.zip
fix translation issues not shown as warnings
-rw-r--r--docs/release-notes.md1
-rw-r--r--src/SMAPI/Framework/SCore.cs4
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index cb9e8788..22730e28 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -12,6 +12,7 @@
* Fixed error-handling when initialising paths.
* Fixed 'no update keys' warning not shown for mods with only invalid update keys.
* Fixed transparency issues on Linux/Mac for some mod images.
+ * Fixed translation issues not shown as warnings.
* Updated compatibility list.
* For modders:
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index 00e608c1..33edc698 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -1114,11 +1114,11 @@ namespace StardewModdingAPI.Framework
if (jsonHelper.ReadJsonFileIfExists(file.FullName, out IDictionary<string, string> data))
translations[locale] = data;
else
- metadata.LogAsMod($"Mod's i18n/{locale}.json file couldn't be parsed.");
+ metadata.LogAsMod($"Mod's i18n/{locale}.json file couldn't be parsed.", LogLevel.Warn);
}
catch (Exception ex)
{
- metadata.LogAsMod($"Mod's i18n/{locale}.json file couldn't be parsed: {ex.GetLogSummary()}");
+ metadata.LogAsMod($"Mod's i18n/{locale}.json file couldn't be parsed: {ex.GetLogSummary()}", LogLevel.Warn);
}
}
}