From e9097d578dc0923f57fadc567d6676205f459e95 Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Tue, 11 Oct 2022 16:23:31 +0200 Subject: [PATCH] Nearing... --- Winget-AutoUpdate/functions/Get-NotifLocale.ps1 | 7 +++++++ Winget-AutoUpdate/locale/en.xml | 12 ++++++++++++ Winget-AutoUpdate/locale/sv.xml | 12 ++++++++++++ 3 files changed, 31 insertions(+) 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! +