Skip to content

Commit

Permalink
(firefox) Correct outputting of the system locale in verbose output
Browse files Browse the repository at this point in the history
fixes #1631
  • Loading branch information
AdmiringWorm authored Mar 26, 2021
1 parent cce3e47 commit d51c777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions automatic/firefox/tools/helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function GetLocale {

$systemLocalizeAndCountry = (Get-UICulture).Name
$systemLocaleTwoLetter = (Get-UICulture).TwoLetterISOLanguageName
Write-Verbose "System locale is: '$locale'..."
Write-Verbose "System locale is: '$systemLocalizeAndCountry'..."
$fallbackLocale = 'en-US'

$locales = $localeFromPackageParameters,$localeFromPackageParametersTwoLetter, `
Expand All @@ -52,7 +52,7 @@ function GetLocale {
foreach ($locale in $locales) {
$localeMatch = $availableLocales | Where-Object { $_ -eq $locale } | Select-Object -first 1
if ($localeMatch -and $locale -ne $null) {
Write-Verbose "Using locale '$locale'..."
Write-Host "Using locale '$locale'..."
break
}
}
Expand Down

0 comments on commit d51c777

Please sign in to comment.