Skip to content

Commit

Permalink
Detect if language is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingWonders committed Apr 20, 2024
1 parent 0cbaf15 commit bbb8841
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file modified Installer/Output/dt_setup.exe
Binary file not shown.
3 changes: 3 additions & 0 deletions Panels/FirstUse/PrgSetup.vb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Public Class PrgSetup

Dim ColorModes() As String = New String(2) {"Use system setting", "Light mode", "Dark mode"}
Dim Languages() As String = New String(4) {"Use system language", "English", "Spanish", "French", "Portuguese"}
Dim SupportedLangCodes() As String = New String(5) {"ENU", "ENG", "ESN", "FRA", "PTB", "PTG"}

Dim btnToolTip As New ToolTip()
Private isMouseDown As Boolean = False
Expand Down Expand Up @@ -147,6 +148,8 @@ Public Class PrgSetup

Private Sub Next_Button_Click(sender As Object, e As EventArgs) Handles Next_Button.Click
If pageInt = 4 Then
' Set program to English if the system language is not supported
If Not SupportedLangCodes.Contains(My.Computer.Info.InstalledUICulture.ThreeLetterWindowsLanguageName) Then MainForm.Language = 1
MainForm.SaveDTSettings()
Close()
End If
Expand Down

0 comments on commit bbb8841

Please sign in to comment.