diff --git a/ArchiSteamFarm/Program.cs b/ArchiSteamFarm/Program.cs index c136144c0..e4cfe8366 100644 --- a/ArchiSteamFarm/Program.cs +++ b/ArchiSteamFarm/Program.cs @@ -254,9 +254,8 @@ namespace ArchiSteamFarm { if (currentResourceSetCount < defaultResourceSetCount) { // We don't want to report "en-AU" as 0.00% only because we don't have it as a dialect, if "en" is available and translated // This typically will work only for English, as e.g. "nl-BE" doesn't fallback to "nl-NL", but "nl", and "nl" will be empty - CultureInfo neutralCulture = CultureInfo.CurrentCulture.Parent; ushort neutralResourceSetCount = 0; - ResourceSet neutralResourceSet = Strings.ResourceManager.GetResourceSet(neutralCulture, true, false); + ResourceSet neutralResourceSet = Strings.ResourceManager.GetResourceSet(CultureInfo.CurrentCulture.Parent, true, false); if (neutralResourceSet != null) { neutralResourceSetCount = (ushort) neutralResourceSet.Cast().Count(); } diff --git a/GUI/Program.cs b/GUI/Program.cs index d02120f3a..32d5740e1 100644 --- a/GUI/Program.cs +++ b/GUI/Program.cs @@ -160,9 +160,8 @@ namespace ArchiSteamFarm { if (currentResourceSetCount < defaultResourceSetCount) { // We don't want to report "en-AU" as 0.00% only because we don't have it as a dialect, if "en" is available and translated // This typically will work only for English, as e.g. "nl-BE" doesn't fallback to "nl-NL", but "nl", and "nl" will be empty - CultureInfo neutralCulture = CultureInfo.CurrentCulture.Parent; ushort neutralResourceSetCount = 0; - ResourceSet neutralResourceSet = Strings.ResourceManager.GetResourceSet(neutralCulture, true, false); + ResourceSet neutralResourceSet = Strings.ResourceManager.GetResourceSet(CultureInfo.CurrentCulture.Parent, true, false); if (neutralResourceSet != null) { neutralResourceSetCount = (ushort) neutralResourceSet.Cast().Count(); }