diff --git a/Winget-AutoUpdate/functions/Get-NotifLocale.ps1 b/Winget-AutoUpdate/functions/Get-NotifLocale.ps1 index 24b75e0..386409d 100644 --- a/Winget-AutoUpdate/functions/Get-NotifLocale.ps1 +++ b/Winget-AutoUpdate/functions/Get-NotifLocale.ps1 @@ -22,6 +22,13 @@ Function Get-NotifLocale { #Get locale XML file content [xml]$Script:NotifLocale = Get-Content $LocaleFile -Encoding UTF8 -ErrorAction SilentlyContinue + #Test if new strings exist in $LocaleFile + if ($null -eq $NotifLocale.local.outputs.output[7].message){ + $LocaleFile = "$WorkingDir\locale\en.xml" + #Get locale XML file content + [xml]$Script:NotifLocale = Get-Content $LocaleFile -Encoding UTF8 -ErrorAction SilentlyContinue + } + #Rerturn langague display name Return $LocaleDisplayName diff --git a/Winget-AutoUpdate/locale/en.xml b/Winget-AutoUpdate/locale/en.xml index d9c7554..6a2799c 100644 --- a/Winget-AutoUpdate/locale/en.xml +++ b/Winget-AutoUpdate/locale/en.xml @@ -30,5 +30,17 @@ Please contact support. + + + Logs are not available yet! + + + + Starting a manual check for updated apps... + + + + Couldn't start a manual check for updated apps! + diff --git a/Winget-AutoUpdate/locale/sv.xml b/Winget-AutoUpdate/locale/sv.xml index 7371bb3..3a2ab29 100644 --- a/Winget-AutoUpdate/locale/sv.xml +++ b/Winget-AutoUpdate/locale/sv.xml @@ -30,5 +30,17 @@ Vänligen kontakta supporten. + + + Loggarna är inte tillgängliga ännu! + + + + Startar en manuell koll efter uppdaterade appar... + + + + Kunde inte starta en manuell koll efter uppdaterade appar! +