Nearing...
parent
f3138ffdcf
commit
e9097d578d
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue