diff --git a/.github/ISSUE_TEMPLATE/installer-new-translation.yml b/.github/ISSUE_TEMPLATE/installer-new-translation.yml index ce2293f..42820b2 100644 --- a/.github/ISSUE_TEMPLATE/installer-new-translation.yml +++ b/.github/ISSUE_TEMPLATE/installer-new-translation.yml @@ -29,10 +29,10 @@ body: Good luck to you. value: | - Author = "Patch author:" - Author2 = "@Amd64fox" - TranslationBy = "Translation author:" - TranslationBy2 = "@" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Oops, an incorrect value," Incorrect2 = "enter again through " Download = "Error downloading" diff --git a/Install.ps1 b/Install.ps1 index 9328af6..2dd254b 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -117,107 +117,119 @@ function Format-LanguageCode { [string]$LanguageCode ) - begin { - $supportLanguages = @( - 'en', 'ru', 'it', 'tr', 'ka', 'pl', 'es', 'fr', 'hi', 'pt', 'id', 'vi', 'ro', 'de', 'hu', 'zh', 'ko', 'ua', 'fa' - ) - } - process { - # Trim the language code down to two letter code. - switch -Regex ($LanguageCode) { - '^en' { - $returnCode = 'en' - break - } - '^(ru|py)' { - $returnCode = 'ru' - break - } - '^it' { - $returnCode = 'it' - break - } - '^tr' { - $returnCode = 'tr' - break - } - '^ka' { - $returnCode = 'ka' - break - } - '^pl' { - $returnCode = 'pl' - break - } - '^es' { - $returnCode = 'es' - break - } - '^fr' { - $returnCode = 'fr' - break - } - '^hi' { - $returnCode = 'hi' - break - } - '^pt' { - $returnCode = 'pt' - break - } - '^id' { - $returnCode = 'id' - break - } - '^vi' { - $returnCode = 'vi' - break - } - '^ro' { - $returnCode = 'ro' - break - } - '^de' { - $returnCode = 'de' - break - } - '^hu' { - $returnCode = 'hu' - break - } - '^zh' { - $returnCode = 'zh' - break - } - '^ko' { - $returnCode = 'ko' - break - } - '^ua' { - $returnCode = 'ua' - break - } - '^fa' { - $returnCode = 'fa' - break - } - Default { - $returnCode = $PSUICulture.Remove(2) - break - } - } - - # Confirm that the language code is supported by this script. - if ($returnCode -NotIn $supportLanguages) { - # If the language code is not supported default to English. + $supportLanguages = @( + 'en', 'ru', 'it', 'tr', 'ka', 'pl', 'es', 'fr', 'hi', 'pt', 'id', 'vi', 'ro', 'de', 'hu', 'zh-CN', 'zh-TW', 'ko', 'ua', 'fa', 'sr', 'lv' + ) + + + # Trim the language code down to two letter code. + switch -Regex ($LanguageCode) { + '^en' { $returnCode = 'en' + break + } + '^(ru|py)' { + $returnCode = 'ru' + break + } + '^it' { + $returnCode = 'it' + break + } + '^tr' { + $returnCode = 'tr' + break + } + '^ka' { + $returnCode = 'ka' + break + } + '^pl' { + $returnCode = 'pl' + break + } + '^es' { + $returnCode = 'es' + break + } + '^fr' { + $returnCode = 'fr' + break + } + '^hi' { + $returnCode = 'hi' + break + } + '^pt' { + $returnCode = 'pt' + break + } + '^id' { + $returnCode = 'id' + break + } + '^vi' { + $returnCode = 'vi' + break + } + '^ro' { + $returnCode = 'ro' + break + } + '^de' { + $returnCode = 'de' + break + } + '^hu' { + $returnCode = 'hu' + break + } + '^(zh|zh-CN)$' { + $returnCode = 'zh' + break + } + '^zh-TW' { + $returnCode = 'zh-TW' + break + } + '^ko' { + $returnCode = 'ko' + break + } + '^ua' { + $returnCode = 'ua' + break + } + '^fa' { + $returnCode = 'fa' + break + } + '^sr' { + $returnCode = 'sr' + break + } + '^lv' { + $returnCode = 'lv' + break + } + Default { + $returnCode = $PSUICulture + $long_code = $true + break } } - - end { - return $returnCode + + # Checking the long language code + if ($long_code -and $returnCode -NotIn $supportLanguages) { + $returnCode = $PSUICulture.Remove(2) } + # Checking the short language code + if ($returnCode -NotIn $supportLanguages) { + # If the language code is not supported default to English. + $returnCode = 'en' + } + return $returnCode } function CallLang($clg) { @@ -231,107 +243,17 @@ function CallLang($clg) { } catch { Write-Host "Error loading $clg language" + Pause + Exit } } -function Set-ScriptLanguageStrings($LanguageCode) { - - #Sets the language strings to be used. - - switch ($LanguageCode) { - 'en' { - $langStrings = CallLang -clg "en" - break - } - 'ru' { - $langStrings = CallLang -clg "ru" - break - } - 'it' { - $langStrings = CallLang -clg "it" - break - } - 'tr' { - $langStrings = CallLang -clg "tr" - break - } - 'ka' { - $langStrings = CallLang -clg "ka" - break - } - 'pl' { - $langStrings = CallLang -clg "pl" - break - } - 'es' { - $langStrings = CallLang -clg "es" - break - } - 'fr' { - $langStrings = CallLang -clg "fr" - break - } - 'hi' { - $langStrings = CallLang -clg "hi" - break - } - 'pt' { - $langStrings = CallLang -clg "pt" - break - } - 'id' { - $langStrings = CallLang -clg "id" - break - } - 'vi' { - $langStrings = CallLang -clg "vi" - break - } - 'ro' { - $langStrings = CallLang -clg "ro" - break - } - 'de' { - $langStrings = CallLang -clg "de" - break - } - 'hu' { - $langStrings = CallLang -clg "hu" - break - } - 'zh' { - $langStrings = CallLang -clg "zh" - break - } - 'ko' { - $langStrings = CallLang -clg "ko" - break - } - 'ua' { - $langStrings = CallLang -clg "ua" - break - } - 'fa' { - $langStrings = CallLang -clg "fa" - break - } - Default { - # Default to English if unable to find a match. - $langStrings = CallLang -clg "en" - break - } - } - - - return $langStrings -} # Set language code for script. $langCode = Format-LanguageCode -LanguageCode $Language -# Set script language strings. -$lang = Set-ScriptLanguageStrings -LanguageCode $langCode +$lang = CallLang -clg $langCode # Set variable 'ru'. if ($langCode -eq 'ru') { @@ -339,25 +261,9 @@ if ($langCode -eq 'ru') { $urlru = "https://raw.githubusercontent.com/SpotX-CLI/SpotX-commons/main/Augmented%20translation/ru.json" $webjsonru = (Invoke-WebRequest -UseBasicParsing -Uri $urlru).Content | ConvertFrom-Json } -# Set variable 'add translation line'. -if ($langCode -match '^(it|tr|ka|pl|es|fr|hi|pt|id|vi|ro|de|hu|zh|ko|ua|fa)') { $line = $true } -# Automatic length of stars -$au = ($lang).Author.Length + ($lang).Author2.Length -$by = ($lang).TranslationBy.Length + ($lang).TranslationBy2.Length -if ($au -gt $by ) { $long = $au + 1 } else { $long = $by + 1 } -$st = "" -$star = $st.PadLeft($long, '*') - -Write-Host $star -Write-Host ($lang).Author"" -NoNewline -Write-Host ($lang).Author2 -ForegroundColor DarkYellow -if (!($line)) { Write-Host $star`n } -if ($line) { - Write-Host ($lang).TranslationBy"" -NoNewline - Write-Host ($lang).TranslationBy2 -ForegroundColor DarkYellow - Write-Host $star`n -} +Write-Host ($lang).Welcom +Write-Host "" # Sending a statistical web query to cutt.ly $ErrorActionPreference = 'SilentlyContinue' diff --git a/scripts/installer-lang/de.ps1 b/scripts/installer-lang/de.ps1 index 3914aa7..7d3eb00 100644 --- a/scripts/installer-lang/de.ps1 +++ b/scripts/installer-lang/de.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "Patch Autor:" - Author2 = "@Amd64fox" - TranslationBy = "Übersetzung von:" - TranslationBy2 = "@Robin-728" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Hoppla, ein falscher wert," Incorrect2 = "bitte geben sie einen neuen Wert ein in " Download = "Fehler beim Download" diff --git a/scripts/installer-lang/en.ps1 b/scripts/installer-lang/en.ps1 index 94bf159..9d2fb32 100644 --- a/scripts/installer-lang/en.ps1 +++ b/scripts/installer-lang/en.ps1 @@ -1,6 +1,8 @@ [PSCustomObject]@{ - Author = "Patch author:" - Author2 = "@Amd64fox" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Oops, an incorrect value," Incorrect2 = "enter again through " Download = "Error downloading" diff --git a/scripts/installer-lang/es.ps1 b/scripts/installer-lang/es.ps1 index d1ebeda..6d3c143 100644 --- a/scripts/installer-lang/es.ps1 +++ b/scripts/installer-lang/es.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "Autor del parche:" - Author2 = "@Amd64fox" - TranslationBy = "Autor de la traducción:" - TranslationBy2 = "@peter9811" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Ufff, un valor incorrecto," Incorrect2 = "ingrese nuevamente el valor " Download = "Error al descargar" diff --git a/scripts/installer-lang/fa.ps1 b/scripts/installer-lang/fa.ps1 index bc085c9..9be029e 100644 --- a/scripts/installer-lang/fa.ps1 +++ b/scripts/installer-lang/fa.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "نویسنده پچ:" - Author2 = "@Amd64fox" - TranslationBy = "ترجمه شده توسط:" - TranslationBy2 = "@Houshmand_am" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "اوه، یک مقدار نادرست" Incorrect2 = "دوباره وارد شوید " Download = "خطا در دانلود" diff --git a/scripts/installer-lang/fr.ps1 b/scripts/installer-lang/fr.ps1 index f09958d..a90ab31 100644 --- a/scripts/installer-lang/fr.ps1 +++ b/scripts/installer-lang/fr.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "Auteur du patch:" - Author2 = "@Amd64fox" - TranslationBy = "Auteur de la traduction:" - TranslationBy2 = "@xerta555 / @EDM115" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Oups, une valeur est incorrecte," Incorrect2 = "veuillez recommencer " Download = "Erreur de téléchargement" diff --git a/scripts/installer-lang/hi.ps1 b/scripts/installer-lang/hi.ps1 index c837708..0384bf4 100644 --- a/scripts/installer-lang/hi.ps1 +++ b/scripts/installer-lang/hi.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "पैच लेखक:" - Author2 = "@Amd64fox" - TranslationBy = "अनुवाद लेखक:" - TranslationBy2 = "@tdivyajyotis" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "ओह, एक गलत मान," Incorrect2 = "के माध्यम से फिर से दर्ज करें " Download = "डाउनलोड करने में गड़बड़ी" diff --git a/scripts/installer-lang/hu.ps1 b/scripts/installer-lang/hu.ps1 index b904acb..7140c29 100644 --- a/scripts/installer-lang/hu.ps1 +++ b/scripts/installer-lang/hu.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "Patch szerzője:" - Author2 = "@Amd64fox" - TranslationBy = "Fordítás szerzője:" - TranslationBy2 = "@Wex02" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Hoppá, helytelen érték," Incorrect2 = "Próbáld újra " Download = "Letöltési hiba" diff --git a/scripts/installer-lang/id.ps1 b/scripts/installer-lang/id.ps1 index 596c68e..d4b7dfb 100644 --- a/scripts/installer-lang/id.ps1 +++ b/scripts/installer-lang/id.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "Penulis tambalan:" - Author2 = "@Amd64fox" - TranslationBy = "Penulis terjemahan:" - TranslationBy2 = "@aliazhar-id" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Ups, nilai yang salah," Incorrect2 = "masukkan lagi" Download = "Kesalahan saat mengunduh" diff --git a/scripts/installer-lang/it.ps1 b/scripts/installer-lang/it.ps1 index 6d189c1..a6fabed 100644 --- a/scripts/installer-lang/it.ps1 +++ b/scripts/installer-lang/it.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "Autore patch:" - Author2 = "@Amd64fox" - TranslationBy = "Autori traduzione:" - TranslationBy2 = "@Francescoaracu, @0x4nt" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Ops! Valore sbagliato," Incorrect2 = "inserisci di nuovo" Download = "Errore nel download" diff --git a/scripts/installer-lang/ka.ps1 b/scripts/installer-lang/ka.ps1 index e992b19..c2d2a17 100644 --- a/scripts/installer-lang/ka.ps1 +++ b/scripts/installer-lang/ka.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "პაჩის ავტორი:" - Author2 = "@Amd64fox" - TranslationBy = "თარგმანის ავტორი:" - TranslationBy2 = "@Naviamold1" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "უპს, არასწორი შენატანი," Incorrect2 = "მაგრამ თავიდან სცადე" Download = "შეცდომა ჩაწერის დროს" diff --git a/scripts/installer-lang/ko.ps1 b/scripts/installer-lang/ko.ps1 index 7465bd7..b3a37a6 100644 --- a/scripts/installer-lang/ko.ps1 +++ b/scripts/installer-lang/ko.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "패치 제작자:" - Author2 = "@Amd64fox" - TranslationBy = "번역가:" - TranslationBy2 = "@jinoo2005609 " + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "이런, 잘못된 값이네요," Incorrect2 = "다시 입력해주세요 " Download = "다운로드 오류" diff --git a/scripts/installer-lang/lv.ps1 b/scripts/installer-lang/lv.ps1 new file mode 100644 index 0000000..4033e7a --- /dev/null +++ b/scripts/installer-lang/lv.ps1 @@ -0,0 +1,61 @@ +[PSCustomObject]@{ + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" + Incorrect = "Hmm. Nepareiza vērtība," + Incorrect2 = "lūdzu ievadiet to vēlreiz " + Download = "Kļūda lejuplādējot" + Download2 = "Atkārtosim lejuplādi pēc 5 sekundēm..." + Download3 = "Atkal kļūda" + Download4 = "Pārbaudi savus tīkla iestatījumus un mēģini instalēt vēlreiz" + Download5 = "Lejuplādejam Spotify" + Download6 = "Curl kļūda" + StopScrpit = "Skripts ir apstājies" + MsSpoti = "Microsoft veikala Spotify versija tika konstatēta, un nav atbalstīta." + MsSpoti2 = "Izdzēst Spotify Windows Store versiju [Y/N]" + MsSpoti3 = "Automātiski izdzēš Spotify MS..." + MsSpoti4 = "Izdzēš Spotify MS..." + Prem = "Modifikācija premium kontam..." + OldV = "Spotify vecā versija bija konstatēta." + OldV2 = "Tava Spotify {0} versija ir novecojusi, bet ir ieteicams atjaunot uz {1} versiju" + OldV3 = "Vēlies atjaunot? [Y/N]" + AutoUpd = "Automātiski atjauno uz ieteicamo versiju" + DelOrOver = "Vai vēlies izdzēst līdzšinejo {0} versiju vai instalēt ieteicamo versiju virs vecās? Y [Izdzēst] / N [Instalēt Virs]" + DelOld = "Izdzēš veco Spotify..." + NewV = "Atrasta neatbalstītā Spotify versija" + NewV2 = "Tava Spotify {0} versija nav tikusi testēta, šobrīd stabilākā ir {1} versija" + NewV3 = "Vai vēlies turpināt ar {0} versiju? (ir iespējamas kļūdas) [Y/N]" + Recom = "Vai vēlies instalēt ieteikto {0} versiju? [Y/N]" + DelNew = "Izdzēšam netestēto Spotify..." + DownSpoti = "Lejuplādējam un instalējam Spotify" + DownSpoti2 = "Lūdzu nedaudz uzgaidiet..." + PodcatsOff = "Raidieraksti ir izslēgti" + PodcastsOn = "Raidieraksti ir ieslēgti" + PodcatsSelect = "Vai vēlies ieslēkt raidierakstus, epizodes un audiogrāmatas no galvenās lapas? [Y/N]" + DowngradeNote = "Ir ieteikts izslēgt atjauninājumus, tāpēc ka Spotify versija tika pazemināta." + UpdBlock = "Spotify atjauninājumi ir bloķēti" + UpdUnblock = "Spotify atjauninājumi nav bloķēti" + UpdSelect = "Vai vēlies bloķēt Spotify atjauninājumus? [Y/N]" + CacheOn = "Kešatmiņu tīrīšana ir ieslēgta ({0})" + CacheOff = "Kešatmiņu tīrīšana nav ieslēgta" + CacheSelect = "Vai vēlaties iestatīt automātisko kešatmiņas tīrīšanu? [Y/N]" + CacheDays = "Kešatmiņa vecāka par: XX dienām tiks tīrīta. " + CacheDays2 = "Ievadiet, cik dienas no 1 līdz 100 ir jāgaida lai tīrītu kešatmiņu." + ModSpoti = "Modo Spotify..." + Error = "Kļūda" + FileLocBroken = "Spotify failu atrašanās vieta ir bojāta, atinstalējiet klientu un palaidiet skriptu vēlreiz" + Spicetify = "Spicetify konstatēts" + NoRestore = "SpotX ir jau instalēts, bet faili lai atgūtu xpui.js.bak un xpui.css.bak nebija atrasti. `nLūdzu aninstalējiet Spotify klientu un palaidiet Install.bat vēlreiz" + ExpSpotify = "Eksperimentālās funkcijas, kuras operē Spotify" + ExpStandart = "SpotX eksperimentālās funkcijas nav iekļautas" + NoRestore2 = "SpotX ir jau instalēts, bet xpui.bak nebija atrasts. `nLūdzu izdzēs Spotify klientu un palaid Install.bat vēlreiz" + UpdateBlocked = "Spotify atjauninājumi ir jau bloķēti" + UpdateError = "Neizdevās bloķēt atjauninājumus" + NoSpotifyExe = "Neizdevās atrast Spotify.exe" + InstallComplete = "Instalācija pabeigta" + HostInfo = "hosts failā atrasti nevēlami URL" + HostBak = "Dublē hosts.bak ..." + HostDel = "Mēģina noņemt nevēlamus URL no sākotnējā hosts faila..." + HostError = "Kaut kas greizi aizgāja rediģējot hosts failu, rediģējiet to manuāli vai palaidiet skriptu ar administratora privilēģijām" +} \ No newline at end of file diff --git a/scripts/installer-lang/pl.ps1 b/scripts/installer-lang/pl.ps1 index 6ca9998..3c17955 100644 --- a/scripts/installer-lang/pl.ps1 +++ b/scripts/installer-lang/pl.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "Patch author:" - Author2 = "@Amd64fox" - TranslationBy = "Translation author:" - TranslationBy2 = "@Nokxixr" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Oops, niewłaściwa wartość," Incorrect2 = "Wejdź ponownie przez" Download = "Błąd pobierania" diff --git a/scripts/installer-lang/pt.ps1 b/scripts/installer-lang/pt.ps1 index ee4430f..79e743a 100644 --- a/scripts/installer-lang/pt.ps1 +++ b/scripts/installer-lang/pt.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "Autor do patch:" - Author2 = "@Amd64fox" - TranslationBy = "Autor da tradução:" - TranslationBy2 = "@igorruckert" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Ops, um valor incorreto," Incorrect2 = "entre novamente por " Download = "Erro no download" diff --git a/scripts/installer-lang/ro.ps1 b/scripts/installer-lang/ro.ps1 index a4316c9..6396255 100644 --- a/scripts/installer-lang/ro.ps1 +++ b/scripts/installer-lang/ro.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "Autorul patchului:" - Author2 = "@Amd64fox" - TranslationBy = "Autorul traducerii:" - TranslationBy2 = "@scr3ppie" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Ups, o valoare incorectă," Incorrect2 = "introduceți din nou prin " Download = "Eroare la descărcare" diff --git a/scripts/installer-lang/ru.ps1 b/scripts/installer-lang/ru.ps1 index 73a131f..2f0bdb9 100644 --- a/scripts/installer-lang/ru.ps1 +++ b/scripts/installer-lang/ru.ps1 @@ -1,6 +1,8 @@ [PSCustomObject]@{ - Author = "Автор патча:" - Author2 = "@Amd64fox" + Welcome = " +╔══════════════════════════════════════╗ +║ Добро пожаловать в SpotX для Windows ║ +╚══════════════════════════════════════╝" Incorrect = "Ой, некорректное значение," Incorrect2 = "повторите ввод через" Download = "Ошибка загрузки" diff --git a/scripts/installer-lang/sr.ps1 b/scripts/installer-lang/sr.ps1 new file mode 100644 index 0000000..003f5b8 --- /dev/null +++ b/scripts/installer-lang/sr.ps1 @@ -0,0 +1,61 @@ +[PSCustomObject]@{ + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" + Incorrect = "Упс, нетачна вредност," + Incorrect2 = "унесите поново за " + Download = "Грешка преузимања" + Download2 = "Понован захтев за 5 секунди..." + Download3 = "Поново грешка" + Download4 = "Проверите своје поставке мреже и покрените инсталацију још једном" + Download5 = "Преузимање Spotify-ја" + Download6 = "Curl грешка" + StopScrpit = "Скрипта заустављена" + MsSpoti = "Детектована је верзија Spotify-ја из Microsoft Store-а, што није подржано" + MsSpoti2 = "Деинсталирати верзију Spotify-ја из Microsoft Store-а? [Y/N]" + MsSpoti3 = "Аутоматска деинсталација Spotify MS..." + MsSpoti4 = "Деинсталација Spotify MS..." + Prem = "Модификација за премијум налог..." + OldV = "Нађена је застарела верзија Spotify-ја" + OldV2 = "Ваша верзија Spotify-ја {0} је застарела, препоручује се да је ажурирате на {1}" + OldV3 = "Желите ли да ажурирате? [Y/N]" + AutoUpd = "Аутоматско ажурирање на препоручену верзију" + DelOrOver = "Желите ли да деинсталирате тренутну верзију {0} или да инсталирате преко ње? Y [Деинсталирај] / N [Преко]" + DelOld = "Деинсталација старог Spotify-ја..." + NewV = "Нађена је неподржана верзија Spotify-ја" + NewV2 = "Ваша верзија Spotify-ја {0} није још била тестирана, тренутна стабилна верзија је {1}" + NewV3 = "Желите ли да наставите са верзијом {0} (могуће су грешке)? [Y/N]" + Recom = "Желите ли да инсталирате препоручену верзију {0}? [Y/N]" + DelNew = "Деинсталација нетестираног Spotify-ја..." + DownSpoti = "Преузимање и инсталација Spotify-ја" + DownSpoti2 = "Молимо сачекајте..." + PodcatsOff = "Искључи подкасте" + PodcastsOn = "Укључи подкасте" + PodcatsSelect = "Желите ли да онемогућите подкасте, епизоде и аудиокњиге на почетној страни? [Y/N]" + DowngradeNote = "Препоручује се да блокирате пошто је Spotify био даунгрејдован" + UpdBlock = "Ажурирања Spotify-ја блокирана" + UpdUnblock = "Ажурирања Spotify-ја нису блокирана" + UpdSelect = "Желите ли да блокирате ажурирања Spotify-ја? [Y/N]" + CacheOn = "Чишћење кеша омогућено ({0})" + CacheOff = "Чишћење кеша није омогућено" + CacheSelect = "Желите ли да подесите аутоматско чишћење кеша? [Y/N]" + CacheDays = "Кеш старији од XX дана ће се брисати" + CacheDays2 = "Унесите број дана од 1 до 100" + ModSpoti = "Крпљење Spotify-ја..." + Error = "Грешка" + FileLocBroken = "Локација фајлова Spotify-ја је нарушена, деинсталирајте клијент, па покрените скрипту поново" + Spicetify = "Детектован је Spicetify" + NoRestore = "SpotX је већ био инсталиран, али резервни фајлови xpui.js.bak и xpui.css.bak нису нађени. `nМолимо деинсталирајте Spotify клијент и покрените Install.bat поново" + ExpSpotify = "Експерименталним могућностима управља Spotify" + ExpStandart = "Експерименталне могућности SpotX-а нису укључене" + NoRestore2 = "SpotX је већ био инсталиран, xpui.bak није нађен. `nМолимо деинсталирајте Spotify клијент и покрените Install.bat поново" + UpdateBlocked = "Ажурирања Spotify-ја су већ блокирана" + UpdateError = "Блокирање ажурирања није успело" + NoSpotifyExe = "Spotify.exe није нађен" + InstallComplete = "Инсталација завршена" + HostInfo = "Нежељени URL-ови нађени у фајлу hosts" + HostBak = "Прављење резервне копије hosts.bak..." + HostDel = "Покушавамо да уклонимо нежељене URL-ове из оригиналног фајла hosts..." + HostError = "Нешто је пошло наопако током уређивања фајла hosts, уредите га ручно или покрените скрипту као администратор" +} \ No newline at end of file diff --git a/scripts/installer-lang/tr.ps1 b/scripts/installer-lang/tr.ps1 index 45f4d76..8162229 100644 --- a/scripts/installer-lang/tr.ps1 +++ b/scripts/installer-lang/tr.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "Yama yapımcısı:" - Author2 = "@Amd64fox" - TranslationBy = "Tercüman:" - TranslationBy2 = "@metezd" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Eyvah, yanlış bir değer," Incorrect2 = "tekrar girin " Download = "İndirirken hata oluştu" diff --git a/scripts/installer-lang/ua.ps1 b/scripts/installer-lang/ua.ps1 index df8d743..e058acb 100644 --- a/scripts/installer-lang/ua.ps1 +++ b/scripts/installer-lang/ua.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "Автор патчу:" - Author2 = "@Amd64fox" - TranslationBy = "Автор перекладу:" - TranslationBy2 = "@va1dee" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Упс, некоректне значення," Incorrect2 = "введіть знову через " Download = "Помилка завантаження" diff --git a/scripts/installer-lang/vi.ps1 b/scripts/installer-lang/vi.ps1 index 21a302d..1ec4588 100644 --- a/scripts/installer-lang/vi.ps1 +++ b/scripts/installer-lang/vi.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "Tác giả bản vá:" - Author2 = "@Amd64fox" - TranslationBy = "Bản dịch của:" - TranslationBy2 = "@CDzungx" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "Ối, sai giá trị rồi," Incorrect2 = "nhập lại lần nữa " Download = "Lỗi khi tải xuống" diff --git a/scripts/installer-lang/zh-TW.ps1 b/scripts/installer-lang/zh-TW.ps1 new file mode 100644 index 0000000..fb25c4f --- /dev/null +++ b/scripts/installer-lang/zh-TW.ps1 @@ -0,0 +1,61 @@ +[PSCustomObject]@{ + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" + Incorrect = "糟糕, 不正確的參數," + Incorrect2 = "請重新輸入 " + Download = "下載錯誤" + Download2 = "將在五秒後重試" + Download3 = "再次出錯" + Download4 = "檢查您的網路設定後再次嘗試安裝" + Download5 = "下載 Spotify" + Download6 = "Curl 錯誤" + StopScrpit = "腳本已停止" + MsSpoti = "偵測到不支援的 Spotify 微軟商店版本" + MsSpoti2 = "解除安裝微軟商店的 Spotify [Y/N]" + MsSpoti3 = "自動解除安裝 Spotify 的微軟商店版本..." + MsSpoti4 = "正在解除安裝 Spotify 的微軟商店版本..." + Prem = "針對 Premium 帳號的修改..." + OldV = "發現過時的 Spotify 版本" + OldV2 = "您的Spotify {0} 版本已過時, 建議更新到 {1}" + OldV3 = "需要更新嗎? [Y/N]" + AutoUpd = "自動更新到推薦版本" + DelOrOver = "是否要解除安裝當前版本 {0} 或者覆蓋安裝? Y [解除安裝] / N [覆蓋安裝]" + DelOld = "解除安裝舊的 Spotify..." + NewV = "偵測到不支援的 Spotify 版本" + NewV2 = "您的 Spotify {0} 版本還沒有經過測試, 目前穩定的版本是 {1} " + NewV3 = "您想要繼續使用 {0} 版本嗎 (可能會出現錯誤) ? [Y/N]" + Recom = "您想安裝推薦的 {0} 版本嗎 ? [Y/N]" + DelNew = "解除安裝未經測試的 Spotify 版本..." + DownSpoti = "下載並安裝 Spotify" + DownSpoti2 = "請稍等..." + PodcatsOff = "關閉Podcasts" + PodcastsOn = "開啟Podcasts" + PodcatsSelect = "您想要關閉主頁上的Podcasts, 劇集和有聲書嗎? [Y/N]" + DowngradeNote = "推薦阻止 Spotify 降級" + UpdBlock = "阻止 Spotify 更新" + UpdUnblock = "不阻止 Spotify 更新" + UpdSelect = "您想要阻止 Spotify 更新嗎? [Y/N]" + CacheOn = "清除快取已開啟 ({0})" + CacheOff = "未開啟清除快取" + CacheSelect = "您想要設定自動清除快取嗎? [Y/N]" + CacheDays = "超過 XX 天的快取將被清除 " + CacheDays2 = "輸入從 1 到 100 之內的天數" + ModSpoti = "修補 Spotify..." + Error = "錯誤" + FileLocBroken = "Spotify 檔案已損壞, 請解除安裝客戶端並重新運行腳本" + Spicetify = "偵測到 Spicetify" + NoRestore = "SpotX 已經安裝, 但找不到檔案 xpui.js.bak 和 xpui.css.bak not `n請重新安裝 Spotify 客戶端後再運行 Install.bat" + ExpSpotify = "啟用 Spotify 的實驗性功能Experimental features operated by Spotify" + ExpStandart = "SpotX的實驗性功能沒有啟用" + NoRestore2 = "SpotX 已經安裝, 但是找不到xpui.bak `n請重新安裝 Spotify 客戶端後再運行 Install.bat" + UpdateBlocked = "Spotify 更新已經被阻止" + UpdateError = "阻止更新失敗" + NoSpotifyExe = "找不到 Spotify.exe" + InstallComplete = "安裝完成" + HostInfo = "在 hosts 檔案中發現不需要的 URL" + HostBak = "備份原始 hosts 檔案為 hosts.bak..." + HostDel = "嘗試從原始 hosts 檔案中刪除不需要的 URL ..." + HostError = "在編輯 hosts 檔案時發生了錯誤, 請手動編輯或以系統管理員身分運行腳本" +} \ No newline at end of file diff --git a/scripts/installer-lang/zh.ps1 b/scripts/installer-lang/zh.ps1 index 09e36f1..8e8b234 100644 --- a/scripts/installer-lang/zh.ps1 +++ b/scripts/installer-lang/zh.ps1 @@ -1,8 +1,8 @@ [PSCustomObject]@{ - Author = "补丁作者:" - Author2 = "@Amd64fox" - TranslationBy = "翻译作者:" - TranslationBy2 = "@lumineyuri" + Welcome = " +╔══════════════════════════════╗ +║ Welcome to SpotX for Windows ║ +╚══════════════════════════════╝" Incorrect = "糟糕,不正确的参数," Incorrect2 = "请重新输入 " Download = "下载错误"