diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-07-26 02:50:20 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-07-26 02:50:20 -0400 |
commit | 7900a84bd68d7c9450bba719ce925b61043875f3 (patch) | |
tree | 8c495b7fe1c29c0cb552dc657a7a8b61185be0bd /src/SMAPI/Framework/Translator.cs | |
parent | ee4c88f6016b6bc0d72e0d459f6b918bdd7728f3 (diff) | |
download | SMAPI-7900a84bd68d7c9450bba719ce925b61043875f3.tar.gz SMAPI-7900a84bd68d7c9450bba719ce925b61043875f3.tar.bz2 SMAPI-7900a84bd68d7c9450bba719ce925b61043875f3.zip |
use ordinal comparison/sorting instead of invariant
Diffstat (limited to 'src/SMAPI/Framework/Translator.cs')
-rw-r--r-- | src/SMAPI/Framework/Translator.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI/Framework/Translator.cs b/src/SMAPI/Framework/Translator.cs index f2738633..11ec983b 100644 --- a/src/SMAPI/Framework/Translator.cs +++ b/src/SMAPI/Framework/Translator.cs @@ -12,7 +12,7 @@ namespace StardewModdingAPI.Framework ** Fields *********/ /// <summary>The translations for each locale.</summary> - private readonly IDictionary<string, IDictionary<string, string>> All = new Dictionary<string, IDictionary<string, string>>(StringComparer.InvariantCultureIgnoreCase); + private readonly IDictionary<string, IDictionary<string, string>> All = new Dictionary<string, IDictionary<string, string>>(StringComparer.OrdinalIgnoreCase); /// <summary>The translations for the current locale, with locale fallback taken into account.</summary> private IDictionary<string, Translation> ForLocale; @@ -45,7 +45,7 @@ namespace StardewModdingAPI.Framework this.Locale = locale.ToLower().Trim(); this.LocaleEnum = localeEnum; - this.ForLocale = new Dictionary<string, Translation>(StringComparer.InvariantCultureIgnoreCase); + this.ForLocale = new Dictionary<string, Translation>(StringComparer.OrdinalIgnoreCase); foreach (string next in this.GetRelevantLocales(this.Locale)) { // skip if locale not defined @@ -90,7 +90,7 @@ namespace StardewModdingAPI.Framework // reset translations this.All.Clear(); foreach (var pair in translations) - this.All[pair.Key] = new Dictionary<string, string>(pair.Value, StringComparer.InvariantCultureIgnoreCase); + this.All[pair.Key] = new Dictionary<string, string>(pair.Value, StringComparer.OrdinalIgnoreCase); // rebuild cache this.SetLocale(this.Locale, this.LocaleEnum); |