Skip to content

Commit

Permalink
Merge pull request #5293 from PlayMcBKuwu/main
Browse files Browse the repository at this point in the history
修复: 判断语言是否为中文 -> 判断语言是否为中文(中国大陆)
  • Loading branch information
LTCatt authored Jan 15, 2025
2 parents 49c2318 + a1da68a commit 718d61a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Plain Craft Launcher 2/Modules/Base/ModBase.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1975,12 +1975,13 @@ RetryDir:
End Function

''' <summary>
''' 判断当前系统语言是否为中文。
''' 判断当前系统语言是否为中文(中国大陆)
''' </summary>
Public Function IsSystemLanguageChinese() As Boolean
Return CultureInfo.CurrentCulture.TwoLetterISOLanguageName = "zh" OrElse CultureInfo.CurrentUICulture.TwoLetterISOLanguageName = "zh"
Return CultureInfo.CurrentCulture.Name = "zh-CN" OrElse CultureInfo.CurrentUICulture.Name = "zh-CN"
End Function


Private Uuid As Integer = 1
Private UuidLock As Object
''' <summary>
Expand Down Expand Up @@ -2864,4 +2865,4 @@ Retry:

#End Region

End Module
End Module

0 comments on commit 718d61a

Please sign in to comment.