Nearing...

pull/178/head
KnifMelti 2022-10-11 16:23:31 +02:00
parent f3138ffdcf
commit e9097d578d
3 changed files with 31 additions and 0 deletions

View File

@ -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

View File

@ -30,5 +30,17 @@
<!--Please contact support-->
<message>Please contact support.</message>
</output>
<output id="5">
<!--Logs are not available yet-->
<message>Logs are not available yet!</message>
</output>
<output id="6">
<!--Starting a manual check for updated apps-->
<message>Starting a manual check for updated apps...</message>
</output>
<output id="7">
<!--Couldn't start a manual check for updated apps-->
<message>Couldn't start a manual check for updated apps!</message>
</output>
</outputs>
</local>

View File

@ -30,5 +30,17 @@
<!--Please contact support-->
<message>Vänligen kontakta supporten.</message>
</output>
<output id="5">
<!--Logs are not available yet-->
<message>Loggarna är inte tillgängliga ännu!</message>
</output>
<output id="6">
<!--Starting a manual check for updated apps-->
<message>Startar en manuell koll efter uppdaterade appar...</message>
</output>
<output id="7">
<!--Couldn't start a manual check for updated apps-->
<message>Kunde inte starta en manuell koll efter uppdaterade appar!</message>
</output>
</outputs>
</local>