Browse Source

Use user language instead of system

master
NorbiPeti 3 years ago
parent
commit
f78f699786
Signed by: NorbiPeti <szatmari.norbert.peter@gmail.com> GPG Key ID: DBA4C4549A927E56
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Localization/LocalizationMod.cs

+ 1
- 1
Localization/LocalizationMod.cs View File

@@ -160,7 +160,7 @@ namespace Localization

private void TryLoadSystemLanguage()
{
string lang = CultureInfo.InstalledUICulture.EnglishName.Split(' ')[0].ToLower();
string lang = CultureInfo.CurrentUICulture.EnglishName.Split(' ')[0].ToLower();
string first2 = lang.Substring(0, 2);
// try some possibly valid language codes
if (File.Exists(Path.Combine(_pluginFolder.FullName, lang + ".json")))


Loading…
Cancel
Save