mirror of https://github.com/2dust/v2rayN
When running for the first time, switch the interface language to English when judging that the system language is not Chinese.
https://github.com/2dust/v2rayN/issues/5670pull/5767/head
parent
243dbab06a
commit
4813610492
|
@ -140,7 +140,14 @@ namespace ServiceLib.Handler
|
|||
}
|
||||
if (Utils.IsNullOrEmpty(config.uiItem.currentLanguage))
|
||||
{
|
||||
config.uiItem.currentLanguage = Global.Languages[0];
|
||||
if (Thread.CurrentThread.CurrentCulture.Name.Equals("zh-cn", StringComparison.CurrentCultureIgnoreCase))
|
||||
{
|
||||
config.uiItem.currentLanguage = Global.Languages[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
config.uiItem.currentLanguage = Global.Languages[2];
|
||||
}
|
||||
}
|
||||
|
||||
if (config.constItem == null)
|
||||
|
|
Loading…
Reference in New Issue