mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-21 06:30:56 +10:00
+10
-2
@@ -98,7 +98,7 @@ function Format-LanguageCode {
|
|||||||
|
|
||||||
begin {
|
begin {
|
||||||
$supportLanguages = @(
|
$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'
|
$returnCode = 'hi'
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
'^pt' {
|
||||||
|
$returnCode = 'pt'
|
||||||
|
break
|
||||||
|
}
|
||||||
Default {
|
Default {
|
||||||
$returnCode = $PSUICulture.Remove(2)
|
$returnCode = $PSUICulture.Remove(2)
|
||||||
break
|
break
|
||||||
@@ -215,6 +219,10 @@ function Set-ScriptLanguageStrings($LanguageCode) {
|
|||||||
$langStrings = CallLang -clg "hi"
|
$langStrings = CallLang -clg "hi"
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
'pt' {
|
||||||
|
$langStrings = CallLang -clg "pt"
|
||||||
|
break
|
||||||
|
}
|
||||||
Default {
|
Default {
|
||||||
# Default to English if unable to find a match.
|
# Default to English if unable to find a match.
|
||||||
$langStrings = CallLang -clg "en"
|
$langStrings = CallLang -clg "en"
|
||||||
@@ -235,7 +243,7 @@ $lang = Set-ScriptLanguageStrings -LanguageCode $langCode
|
|||||||
# Set variable 'ru'.
|
# Set variable 'ru'.
|
||||||
if ($langCode -eq 'ru') { $ru = $true }
|
if ($langCode -eq 'ru') { $ru = $true }
|
||||||
# Set variable 'add transl line'.
|
# 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
|
# Automatic length of stars
|
||||||
$au = ($lang).Author.Length + ($lang).Author2.Length
|
$au = ($lang).Author.Length + ($lang).Author2.Length
|
||||||
|
|||||||
@@ -0,0 +1,67 @@
|
|||||||
|
[PSCustomObject]@{
|
||||||
|
Author = "Autor do patch:"
|
||||||
|
Author2 = "@Amd64fox"
|
||||||
|
TranslationBy = "Autor da tradução:"
|
||||||
|
TranslationBy2 = "@igorruckert"
|
||||||
|
Incorrect = "Ops, um valor incorreto,"
|
||||||
|
Incorrect2 = "entre novamente por "
|
||||||
|
Download = "Erro no download"
|
||||||
|
Download2 = "Solicitando novamente em 5 segundos..."
|
||||||
|
Download3 = "Erro de novo"
|
||||||
|
Download4 = "Verifique suas configurações de rede e tente executar a instalação novamente"
|
||||||
|
Download5 = "Baixando o Spotify"
|
||||||
|
Download6 = "Erro de Curl"
|
||||||
|
StopScrpit = "O script foi interrompido"
|
||||||
|
MsSpoti = "A versão do Spotify da Microsoft Store foi detectada, a qual não é suportada"
|
||||||
|
MsSpoti2 = "Desinstalar edição do Spotify da Microsoft Store [Y/N]"
|
||||||
|
MsSpoti3 = "Desinstalação automática do Spotify da MS..."
|
||||||
|
MsSpoti4 = "Desinstalando Spotify da MS..."
|
||||||
|
Prem = "Modificação para conta Premium..."
|
||||||
|
OldV = "Encontrada uma versão desatualizada do Spotify"
|
||||||
|
OldV2 = "A sua versão {0} do Spotify está desatualizada, é recomendado atualizar para {1}"
|
||||||
|
OldV3 = "Gostaria de atualizar? [Y/N]"
|
||||||
|
AutoUpd = "Atualização automática para a versão recomendada"
|
||||||
|
DelOrOver = "Gostaria de desinstalar a versão atual do {0} ou substituir a instalação atual? Y [Desinstalar] / N [Substituir]"
|
||||||
|
DelOld = "Desinstalando a versão antiga do Spotify..."
|
||||||
|
NewV = "Encontrada uma versão não suportada do Spotify"
|
||||||
|
NewV2 = "A sua versão do Spotify {0} não foi testada ainda, no momento, há uma versão estável {1}"
|
||||||
|
NewV3 = "Gostaria de continuar com a versão {0} (possíveis erros) ? [Y/N]"
|
||||||
|
Recom = "Gostaria de instalar a versão recomendada {0}? [Y/N]"
|
||||||
|
DelNew = "Desinstalando versão não testada do Spotify..."
|
||||||
|
DownSpoti = "Baixando e instalando o Spotify"
|
||||||
|
DownSpoti2 = "Aguarde..."
|
||||||
|
PodcatsOff = "Podcasts desativado"
|
||||||
|
PodcastsOn = "Podcasts ativado"
|
||||||
|
PodcatsSelect = "Deseja desativar os podcasts da página principal? [Y/N]"
|
||||||
|
DowngradeNote = "É recomendado bloquear, pois houve um downgrade do Spotify"
|
||||||
|
UpdBlock = "Atualizações do Spotify bloqueadas"
|
||||||
|
UpdUnblock = "Atualizações do Spotify não bloqueadas"
|
||||||
|
UpdSelect = "Deseja bloquear as atualizações do Spotify? [Y/N]"
|
||||||
|
CacheOn = "Limpar cache ativado ({0})"
|
||||||
|
CacheOff = "A limpeza do cache não está ativada"
|
||||||
|
CacheSelect = "Deseja definir a limpeza automática do cache? [Y/N]"
|
||||||
|
CacheDays = "Cache antigo: XX dias para serem limpos"
|
||||||
|
CacheDays2 = "Digite o número de dias entre 1 a 100"
|
||||||
|
NoVariable = "Variável não encontrada"
|
||||||
|
NoVariable2 = "em xpui.js"
|
||||||
|
NoVariable3 = "em licenses.html"
|
||||||
|
NoVariable4 = "em html"
|
||||||
|
NoVariable5 = "em home-v2.js"
|
||||||
|
NoVariable6 = "em xpui-desktop-modals.js"
|
||||||
|
ModSpoti = "Aplicando patch no Spotify..."
|
||||||
|
Error = "Erro"
|
||||||
|
FileLocBroken = "A localização dos arquivos do Sotify está incorreta, desinstale o cliente e execute o script novamente"
|
||||||
|
Spicetify = "Spicetify detectado"
|
||||||
|
NoRestore = "O SpotX já foi instalado, mas os arquivos de recuperação xpui.js.bak e xpui.css.bak não foram encontrados. `nPor favor, desinstale o cliente do Spotify e execute Install.bat novamente"
|
||||||
|
ExpSpotify = "Recursos experimentais oferecidos pelo Spotify"
|
||||||
|
ExpStandart = "Os recursos experimentais do SpotX não estão incluídos"
|
||||||
|
NoRestore2 = "O SpotX já foi instalado, xpui.bak não encontrado. `nPor favor, desinstale o cliente do Spotify e execute Install.bat novamente"
|
||||||
|
UpdateBlocked = "As atualizações do Spotify já estão bloqueadas"
|
||||||
|
UpdateError = "Falha ao bloquear as atualizações"
|
||||||
|
NoSpotifyExe = "Não foi possível localizar Spotify.exe"
|
||||||
|
InstallComplete = "instalação concluída"
|
||||||
|
HostInfo = "URLs indesejados encontradas no arquivo hosts"
|
||||||
|
HostBak = "Fazendo backup de hosts.bak..."
|
||||||
|
HostDel = "Tentando remover URLs indesejados do arquivo hosts original..."
|
||||||
|
HostError = "Algo deu errado ao editar o arquivo hosts, edite-o manualmente ou execute o script como Administrador"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user