Add Indonesian translation

This commit is contained in:
aliazhar
2022-09-17 15:11:39 +07:00
parent 4a5bc9709a
commit a9c3c02eec
2 changed files with 76 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ function Format-LanguageCode {
begin {
$supportLanguages = @(
'en', 'ru', 'it', 'tr', 'ka', 'pl', 'es', 'fr', 'hi', 'pt'
'en', 'ru', 'it', 'tr', 'ka', 'pl', 'es', 'fr', 'hi', 'pt', 'id'
)
}
@@ -145,6 +145,10 @@ function Format-LanguageCode {
$returnCode = 'pt'
break
}
'^id' {
$returnCode = 'id'
break
}
Default {
$returnCode = $PSUICulture.Remove(2)
break
@@ -223,6 +227,10 @@ function Set-ScriptLanguageStrings($LanguageCode) {
$langStrings = CallLang -clg "pt"
break
}
'id' {
$langStrings = CallLang -clg "id"
break
}
Default {
# Default to English if unable to find a match.
$langStrings = CallLang -clg "en"
@@ -243,7 +251,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|pt)') { $line = $true }
if ($langCode -match '^(it|tr|ka|pl|es|fr|hi|pt|id)') { $line = $true }
# Automatic length of stars
$au = ($lang).Author.Length + ($lang).Author2.Length