From fd77cf5994a8041719d81f93daf7f464d932ee00 Mon Sep 17 00:00:00 2001 From: Robin <92602664+Robin-728@users.noreply.github.com> Date: Sat, 8 Oct 2022 14:27:10 +0200 Subject: [PATCH] Added German Translation --- Install.ps1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index 03c42d5..6ff5a4a 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -104,7 +104,7 @@ function Format-LanguageCode { begin { $supportLanguages = @( - 'en', 'ru', 'it', 'tr', 'ka', 'pl', 'es', 'fr', 'hi', 'pt', 'id', 'vi', 'ro' + 'en', 'ru', 'it', 'tr', 'ka', 'pl', 'es', 'fr', 'hi', 'pt', 'id', 'vi', 'ro', 'de' ) } @@ -162,6 +162,10 @@ function Format-LanguageCode { '^ro' { $returnCode = 'ro' break + } + '^de' { + $returnCode = 'de' + break } Default { $returnCode = $PSUICulture.Remove(2) @@ -253,6 +257,10 @@ function Set-ScriptLanguageStrings($LanguageCode) { $langStrings = CallLang -clg "ro" break } + 'de' { + $langStrings = CallLang -clg "de" + break + } Default { # Default to English if unable to find a match. $langStrings = CallLang -clg "en" @@ -273,7 +281,7 @@ $lang = Set-ScriptLanguageStrings -LanguageCode $langCode # Set variable 'ru'. if ($langCode -eq 'ru') { $ru = $true } # Set variable 'add translation line'. -if ($langCode -match '^(it|tr|ka|pl|es|fr|hi|pt|id|vi|ro)') { $line = $true } +if ($langCode -match '^(it|tr|ka|pl|es|fr|hi|pt|id|vi|ro|de)') { $line = $true } # Automatic length of stars $au = ($lang).Author.Length + ($lang).Author2.Length