Skip to content

Commit 68aeb56

Browse files
committed
Update Set-Langusege.ps1
1 parent 9cd2f3c commit 68aeb56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/UI/Set-Langusege.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ function System-Default {
22

33
try {
44

5-
$dc = $itt.database.locales.Controls.$shortCulture
5+
$dc = $localsUrl.Controls.$shortCulture
66

77
if (-not $dc -or [string]::IsNullOrWhiteSpace($dc)) {
88
Set-Statusbar -Text "Your default system language is not supported yet, fallback to English"
9-
$dc = $itt.database.locales.Controls.en
9+
$dc = $localsUrl.Controls.en
1010
}
1111

1212
$itt["window"].DataContext = $dc
@@ -23,7 +23,7 @@ function Set-Language {
2323
if ($lang -eq "default") { System-Default }
2424
else {
2525
$itt.Language = $lang
26-
$itt["window"].DataContext = $itt.database.locales.Controls.$($itt.Language)
26+
$itt["window"].DataContext = $localsUrl.Controls.$($itt.Language)
2727
Set-ItemProperty -Path $itt.registryPath -Name "locales" -Value $lang -Force
2828
}
29-
}
29+
}

0 commit comments

Comments
 (0)