Nearing...
parent
f3138ffdcf
commit
e9097d578d
|
@ -22,6 +22,13 @@ Function Get-NotifLocale {
|
||||||
#Get locale XML file content
|
#Get locale XML file content
|
||||||
[xml]$Script:NotifLocale = Get-Content $LocaleFile -Encoding UTF8 -ErrorAction SilentlyContinue
|
[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
|
#Rerturn langague display name
|
||||||
Return $LocaleDisplayName
|
Return $LocaleDisplayName
|
||||||
|
|
||||||
|
|
|
@ -30,5 +30,17 @@
|
||||||
<!--Please contact support-->
|
<!--Please contact support-->
|
||||||
<message>Please contact support.</message>
|
<message>Please contact support.</message>
|
||||||
</output>
|
</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>
|
</outputs>
|
||||||
</local>
|
</local>
|
||||||
|
|
|
@ -30,5 +30,17 @@
|
||||||
<!--Please contact support-->
|
<!--Please contact support-->
|
||||||
<message>Vänligen kontakta supporten.</message>
|
<message>Vänligen kontakta supporten.</message>
|
||||||
</output>
|
</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>
|
</outputs>
|
||||||
</local>
|
</local>
|
||||||
|
|
Loading…
Reference in New Issue