Use user language instead of system
This commit is contained in:
parent
1ef1625b92
commit
f78f699786
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue