mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-04-14 12:48:22 +10:00
Update Install.ps1
This commit is contained in:
12
Install.ps1
12
Install.ps1
@@ -98,7 +98,7 @@ function Format-LanguageCode {
|
||||
|
||||
begin {
|
||||
$supportLanguages = @(
|
||||
'en', 'ru', 'it', 'tr', 'ka', 'pl', 'es', 'fr', 'hi'
|
||||
'en', 'ru', 'it', 'tr', 'ka', 'pl', 'es', 'fr', 'hi', 'pt'
|
||||
)
|
||||
}
|
||||
|
||||
@@ -141,6 +141,10 @@ function Format-LanguageCode {
|
||||
$returnCode = 'hi'
|
||||
break
|
||||
}
|
||||
'^pt' {
|
||||
$returnCode = 'pt'
|
||||
break
|
||||
}
|
||||
Default {
|
||||
$returnCode = $PSUICulture.Remove(2)
|
||||
break
|
||||
@@ -215,6 +219,10 @@ function Set-ScriptLanguageStrings($LanguageCode) {
|
||||
$langStrings = CallLang -clg "hi"
|
||||
break
|
||||
}
|
||||
'pt' {
|
||||
$langStrings = CallLang -clg "pt"
|
||||
break
|
||||
}
|
||||
Default {
|
||||
# Default to English if unable to find a match.
|
||||
$langStrings = CallLang -clg "en"
|
||||
@@ -235,7 +243,7 @@ $lang = Set-ScriptLanguageStrings -LanguageCode $langCode
|
||||
# Set variable 'ru'.
|
||||
if ($langCode -eq 'ru') { $ru = $true }
|
||||
# Set variable 'add transl line'.
|
||||
if ($langCode -match '^(it|tr|ka|pl|es|fr|hi)') { $line = $true }
|
||||
if ($langCode -match '^(it|tr|ka|pl|es|fr|hi|pt)') { $line = $true }
|
||||
|
||||
# Automatic length of stars
|
||||
$au = ($lang).Author.Length + ($lang).Author2.Length
|
||||
|
||||
Reference in New Issue
Block a user