Skip to content

Commit 977f117

Browse files
committed
Update Set-Langusege.ps1
1 parent 14237e9 commit 977f117

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/UI/Set-Langusege.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ function System-Default {
1414
}
1515

1616
Set-ItemProperty -Path $itt.registryPath -Name "locales" -Value "default" -Force
17+
1718
}
1819

1920
function Set-Language {
2021
param ([string]$lang)
2122
if ($lang -eq "default") { System-Default }
2223
else {
24+
$itt.Language = $lang
2325
$itt["window"].DataContext = $itt.database.locales.Controls.$($itt.Language)
2426
Set-ItemProperty -Path $itt.registryPath -Name "locales" -Value $lang -Force
25-
$itt.Language = $lang
2627
}
2728
}

0 commit comments

Comments
 (0)