Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit bf2ef28

Browse files
committed
Localize splash screen
1 parent 084c5da commit bf2ef28

File tree

6 files changed

+36
-1
lines changed

6 files changed

+36
-1
lines changed

Installer/Languages/lang_en.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ Common_Back = "Back"
4242
Common_Next = "Next"
4343
Common_Browse = "Browse..."
4444

45+
[SplashScreen]
46+
OSInstTitle = "Operating System Installation"
47+
OSInstStatus_StartingUp = "Setup is starting..."
48+
OSInstStatus_Restarting = "Setup will continue after restarting your computer"
49+
4550
[MainForm]
4651
BootMgrEntryName = "DISMTools Operating System Installation"
4752
Win7IncompatibilityError = "This program is incompatible with Windows 7 and Server 2008 R2 due to lack of support for the DISM API."

Installer/Languages/lang_es.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ Common_Back = "Atrás"
4242
Common_Next = "Siguiente"
4343
Common_Browse = "Examinar..."
4444

45+
[SplashScreen]
46+
OSInstTitle = "Instalación del sistema operativo"
47+
OSInstStatus_StartingUp = "El programa de instalación se está iniciando..."
48+
OSInstStatus_Restarting = "El programa de instalación continuará después de reiniciar el equipo"
49+
4550
[MainForm]
4651
BootMgrEntryName = "DISMTools - Instalación del sistema operativo"
4752
Win7IncompatibilityError = "Este programa no es compatible con Windows 7 y Server 2008 R2 debido a la falta de compatibilidad con la API de DISM."

Installer/Languages/lang_fr.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ Common_Back = "Retour"
4242
Common_Next = "Suivant"
4343
Common_Browse = "Parcourir..."
4444

45+
[SplashScreen]
46+
OSInstTitle = "Installation du système d'exploitation"
47+
OSInstStatus_StartingUp = "Le programme d'installation démarre..."
48+
OSInstStatus_Restarting = "Le programme d'installation reprendra après le redémarrage de l'ordinateur"
49+
4550
[MainForm]
4651
BootMgrEntryName = "Installation du système d'exploitation DISMTools"
4752
Win7IncompatibilityError = "Ce programme est incompatible avec Windows 7 et Server 2008 R2 en raison du manque de support pour l'API DISM."

Installer/Languages/lang_it.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ Common_Back = "Indietro"
4242
Common_Next = "Avanti"
4343
Common_Browse = "Sfoglia..."
4444

45+
[SplashScreen]
46+
OSInstTitle = "Installazione del sistema operativo"
47+
OSInstStatus_StartingUp = "L'installazione sta iniziando..."
48+
OSInstStatus_Restarting = "L'installazione continuerà dopo il riavvio del computer"
49+
4550
[MainForm]
4651
BootMgrEntryName = "Installazione del sistema operativo DISMTools"
4752
Win7IncompatibilityError = "Questo programma è incompatibile con Windows 7 e Server 2008 R2 a causa della mancanza di supporto per l'API DISM."

Installer/Languages/lang_pt.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ Common_Back = "Voltar"
4242
Common_Next = "Próximo"
4343
Common_Browse = "Procurar..."
4444

45+
[SplashScreen]
46+
OSInstTitle = "Instalação do Sistema Operacional"
47+
OSInstStatus_StartingUp = "A configuração está iniciando..."
48+
OSInstStatus_Restarting = "A configuração continuará após reiniciar o computador"
49+
4550
[MainForm]
4651
BootMgrEntryName = "Instalação do Sistema Operacional DISMTools"
4752
Win7IncompatibilityError = "Este programa é incompatível com o Windows 7 e o Server 2008 R2 devido à falta de suporte para a API DISM."

Installer/SplashForm.vb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,22 @@ Public Class SplashForm
1010
Public TestMode As Boolean = Environment.GetCommandLineArgs().Contains("/test")
1111
Public TestBCD As Boolean = Environment.GetCommandLineArgs().Contains("/bcdtest")
1212

13+
Sub ChangeLanguage(LanguageCode As String)
14+
If Not File.Exists(Path.Combine(Application.StartupPath, "Languages", "lang_" & LanguageCode & ".ini")) Then
15+
LanguageCode = "en"
16+
End If
17+
LoadLanguageFile(Path.Combine(Application.StartupPath, "Languages", "lang_" & LanguageCode & ".ini"))
18+
Label1.Text = GetValueFromLanguageData("SplashScreen.OSInstTitle")
19+
Label2.Text = GetValueFromLanguageData("SplashScreen.OSInstStatus_StartingUp")
20+
End Sub
21+
1322
Private Sub SplashForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
1423
' Load background image
1524
If File.Exists(Application.StartupPath & "\Resources\SplashScreen\background.jpg") Then
1625
BackgroundPicture = Image.FromFile(Application.StartupPath & "\Resources\SplashScreen\background.jpg")
1726
ResizeImage()
1827
End If
28+
ChangeLanguage(My.Computer.Info.InstalledUICulture.TwoLetterISOLanguageName)
1929
' Change status font size
2030
Dim ReferenceSize As Size = New Size(1024, 768)
2131
If Width <= ReferenceSize.Width AndAlso Height <= ReferenceSize.Height Then
@@ -98,7 +108,7 @@ Public Class SplashForm
98108

99109
Private Sub SplashForm_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
100110
If SetupSuccess Then
101-
Label2.Text = "Setup will continue after restarting your computer"
111+
Label2.Text = GetValueFromLanguageData("SplashScreen.OSInstStatus_Restarting")
102112
Label2.Visible = True
103113
Refresh()
104114
If Not TestMode Then

0 commit comments

Comments
 (0)