Request.Language now correctly ignores the encoding part of the current system language.
[GB.WEB] * BUG: Request.Language now correctly ignores the encoding part of the current system language.
This commit is contained in:
parent
e59da7c0cc
commit
53cc9d42f1
1 changed files with 3 additions and 0 deletions
|
@ -325,6 +325,9 @@ Public Sub ToLanguage(sLang As String) As String
|
|||
Dim iPos As Integer
|
||||
Dim sFind As String
|
||||
|
||||
iPos = RInStr(sLang, ".")
|
||||
If iPos Then sLang = Left(sLang, iPos - 1)
|
||||
|
||||
If InStr(sLang, "-") = 0 Then
|
||||
|
||||
sFind = ":" & LCase(sLang) & "="
|
||||
|
|
Loading…
Reference in a new issue