Minor change on notif function
parent
356df630fe
commit
92568e977d
|
@ -7,7 +7,7 @@ Function Get-NotifLocale {
|
||||||
|
|
||||||
#Test if OS locale notif file exists
|
#Test if OS locale notif file exists
|
||||||
$TestOSLocalPath = "$WorkingDir\locale\$($OSLocale.Name).xml"
|
$TestOSLocalPath = "$WorkingDir\locale\$($OSLocale.Name).xml"
|
||||||
|
|
||||||
#Set OS Local if file exists
|
#Set OS Local if file exists
|
||||||
if (Test-Path $TestOSLocalPath) {
|
if (Test-Path $TestOSLocalPath) {
|
||||||
$LocaleDisplayName = $OSLocale.DisplayName
|
$LocaleDisplayName = $OSLocale.DisplayName
|
||||||
|
@ -20,7 +20,9 @@ Function Get-NotifLocale {
|
||||||
}
|
}
|
||||||
|
|
||||||
#Get locale XML file content
|
#Get locale XML file content
|
||||||
Write-Log "Notification Level: $($WAUConfig.WAU_NotificationLevel). Notification Language: $LocaleDisplayName" "Cyan"
|
|
||||||
[xml]$Script:NotifLocale = Get-Content $LocaleFile -Encoding UTF8 -ErrorAction SilentlyContinue
|
[xml]$Script:NotifLocale = Get-Content $LocaleFile -Encoding UTF8 -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
#Rerturn langague display name
|
||||||
|
Return $LocaleDisplayName
|
||||||
|
|
||||||
}
|
}
|
|
@ -37,7 +37,8 @@ if ($IsSystem) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#Get Notif Locale function
|
#Get Notif Locale function
|
||||||
Get-NotifLocale
|
$LocaleDisplayName = Get-NotifLocale
|
||||||
|
Write-Log "Notification Level: $($WAUConfig.WAU_NotificationLevel). Notification Language: $LocaleDisplayName" "Cyan"
|
||||||
|
|
||||||
#Check network connectivity
|
#Check network connectivity
|
||||||
if (Test-Network) {
|
if (Test-Network) {
|
||||||
|
|
Loading…
Reference in New Issue