mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-14 04:38:24 +10:00
Added German Translation
This commit is contained in:
12
Install.ps1
12
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
|
||||
|
||||
Reference in New Issue
Block a user