Strings in all Locale

pull/178/head
KnifMelti 2022-10-11 18:25:02 +02:00
parent 610c7937c2
commit 3b581a32e1
9 changed files with 96 additions and 7 deletions

View File

@ -22,13 +22,6 @@ 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

View File

@ -30,5 +30,17 @@
<!--Please contact support--> <!--Please contact support-->
<message>Bitte wenden sie sich an den Support.</message> <message>Bitte wenden sie sich an den 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>

View File

@ -30,5 +30,17 @@
<!--Please contact support--> <!--Please contact support-->
<message>Por favor, póngase en contacto con el servicio de soporte.</message> <message>Por favor, póngase en contacto con el servicio de soporte.</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>

View File

@ -30,5 +30,17 @@
<!--Please contact support--> <!--Please contact support-->
<message>Ole yhteydessä tukeen.</message> <message>Ole yhteydessä tukeen.</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>

View File

@ -30,5 +30,17 @@
<!--Please contact support--> <!--Please contact support-->
<message>Contacter le support.</message> <message>Contacter le 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>

View File

@ -30,5 +30,17 @@
<!--Please contact support--> <!--Please contact support-->
<message>Kérjük, forduljon az ügyfélszolgálathoz.</message> <message>Kérjük, forduljon az ügyfélszolgálathoz.</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>

View File

@ -30,5 +30,17 @@
<!--Please contact support--> <!--Please contact support-->
<message>Per favore contatta il supporto.</message> <message>Per favore contatta il supporto.</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>

View File

@ -30,5 +30,17 @@
<!--Please contact support--> <!--Please contact support-->
<message>Neem contact op met support.</message> <message>Neem contact op met 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>

View File

@ -30,5 +30,17 @@
<!--Please contact support--> <!--Please contact support-->
<message>Skontaktuj się z pomocą techniczną.</message> <message>Skontaktuj się z pomocą techniczną.</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>