mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-21 06:30:56 +10:00
fix commit
This commit is contained in:
+17
-6
@@ -98,7 +98,7 @@ function Format-LanguageCode {
|
|||||||
|
|
||||||
begin {
|
begin {
|
||||||
$supportLanguages = @(
|
$supportLanguages = @(
|
||||||
'en', 'ru', 'it', 'tr', 'ka', 'pl', 'es'
|
'en', 'ru', 'it', 'tr', 'ka', 'pl', 'es', 'fr'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,6 +133,10 @@ function Format-LanguageCode {
|
|||||||
$returnCode = 'es'
|
$returnCode = 'es'
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
'^fr' {
|
||||||
|
$returnCode = 'fr'
|
||||||
|
break
|
||||||
|
}
|
||||||
Default {
|
Default {
|
||||||
$returnCode = $PSUICulture.Remove(2)
|
$returnCode = $PSUICulture.Remove(2)
|
||||||
break
|
break
|
||||||
@@ -616,9 +620,12 @@ function Set-ScriptLanguageStrings {
|
|||||||
HostDel = "Intentando eliminar las URLs no deseadas del archivo hosts original..."
|
HostDel = "Intentando eliminar las URLs no deseadas del archivo hosts original..."
|
||||||
HostError = "Algo salió mal al editar el archivo hosts, edítelo manualmente o ejecute el script como administrador"
|
HostError = "Algo salió mal al editar el archivo hosts, edítelo manualmente o ejecute el script como administrador"
|
||||||
}
|
}
|
||||||
$langStringsFR = [PSCustomObject]@{
|
|
||||||
|
$langStringsFR = [PSCustomObject]@{
|
||||||
Author = "Auteur du patch:"
|
Author = "Auteur du patch:"
|
||||||
Author2 = "@Amd64fox"
|
Author2 = "@Amd64fox"
|
||||||
|
TranslationBy = "Auteur de la traduction:"
|
||||||
|
TranslationBy2 = "@xerta555"
|
||||||
Incorrect = "Oops, une valeure incorrecte,"
|
Incorrect = "Oops, une valeure incorrecte,"
|
||||||
Incorrect2 = "entrer de nouveau par "
|
Incorrect2 = "entrer de nouveau par "
|
||||||
Download = "Erreur de téléchargement"
|
Download = "Erreur de téléchargement"
|
||||||
@@ -711,6 +718,10 @@ function Set-ScriptLanguageStrings {
|
|||||||
$langStrings = $langStringsES
|
$langStrings = $langStringsES
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
'fr' {
|
||||||
|
$langStrings = $langStringsFR
|
||||||
|
break
|
||||||
|
}
|
||||||
Default {
|
Default {
|
||||||
# Default to English if unable to find a match.
|
# Default to English if unable to find a match.
|
||||||
$langStrings = $langStringsEN
|
$langStrings = $langStringsEN
|
||||||
@@ -732,7 +743,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)') { $line = $true }
|
if ($langCode -match '^(it|tr|ka|pl|es|fr)') { $line = $true }
|
||||||
|
|
||||||
# Automatic length of stars
|
# Automatic length of stars
|
||||||
$au = ($lang).Author.Length + ($lang).Author2.Length
|
$au = ($lang).Author.Length + ($lang).Author2.Length
|
||||||
@@ -1382,9 +1393,9 @@ function Helper($paramname) {
|
|||||||
clear2 = 'Clear cache', 'Очистка кеша'
|
clear2 = 'Clear cache', 'Очистка кеша'
|
||||||
clear3 = 'Temporary files that Spotify stores for a faster experience on slow networks', 'Временные файлы, которые Spotify хранит для более быстрой работы в медленных сетях'
|
clear3 = 'Temporary files that Spotify stores for a faster experience on slow networks', 'Временные файлы, которые Spotify хранит для более быстрой работы в медленных сетях'
|
||||||
clear4 = 'Content you have downloaded for offline use', 'Контент, который вы скачали для автономного использования'
|
clear4 = 'Content you have downloaded for offline use', 'Контент, который вы скачали для автономного использования'
|
||||||
clear5 = 'null,"Storage"', 'null,"Хранилище"'
|
clear5 = 'null,"Storage"', 'null,"Хранилище"'
|
||||||
clear6 = '"Downloads:"', '"Загрузки:"'
|
clear6 = '"Downloads:"', '"Загрузки:"'
|
||||||
clear7 = '"Cache:"', '"Кэш:"'
|
clear7 = '"Cache:"', '"Кэш:"'
|
||||||
}
|
}
|
||||||
$n = ($lang).NoVariable2
|
$n = ($lang).NoVariable2
|
||||||
$contents = $rus_js
|
$contents = $rus_js
|
||||||
|
|||||||
Reference in New Issue
Block a user