From 0de28ecf1290d2876bafdb21218be9d19ffd6a5e Mon Sep 17 00:00:00 2001 From: Robin <92602664+Robin-728@users.noreply.github.com> Date: Sat, 8 Oct 2022 14:25:24 +0200 Subject: [PATCH 1/3] german lang file added --- scripts/installer-lang/de.ps1 | 67 +++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 scripts/installer-lang/de.ps1 diff --git a/scripts/installer-lang/de.ps1 b/scripts/installer-lang/de.ps1 new file mode 100644 index 0000000..a930e00 --- /dev/null +++ b/scripts/installer-lang/de.ps1 @@ -0,0 +1,67 @@ +[PSCustomObject]@{ + Author = "Patch Autor:" + Author2 = "@Amd64fox" + TranslationBy = "Übersetzung von:" + TranslationBy2 = "@Robin-728" + Incorrect = "Hoppla, ein falscher wert," + Incorrect2 = "bitte geben sie einen neuen Wert ein in " + Download = "Fehler beim Download" + Download2 = "Werde in 5 Sekunden neu anfordern..." + Download3 = "Erneuter Fehler" + Download4 = "Uberprüfen sie ihre Netzwerkeinstellungen und starten sie die Installation erneut" + Download5 = "Lade Spotify herunter" + Download6 = "Curl Fehler" + StopScrpit = "Script wurde gestoppt" + MsSpoti = "Die Microsoft Store Version von Spotify wurde gefunden, jedoch ist sie nicht unterstützt" + MsSpoti2 = "Die Microsoft Store Version von Spotify deinstallieren? [Y/N]" + MsSpoti3 = "Deinstalliere die MS Version von Spotify automatisch..." + MsSpoti4 = "Deinstalliere die MS Version von Spotify..." + Prem = "Modifikation für Premium Accounts..." + OldV = "Veraltete Version von Spotify wurde gefunden" + OldV2 = "Ihre Spotify {0} Version ist veraltet, es ist empfohlen Spotify auf {1} zu aktualisieren" + OldV3 = "Möchten sie Spotify aktualisieren? [Y/N]" + AutoUpd = "Automatisches aktualisieren zur empfohlenen Version" + DelOrOver = "Möchten sie die bestehenden Version von Spotify {0} deinstallieren oder möchten sie es darüber installieren? Y [Deinstallieren] / N [Darüber installieren]" + DelOld = "Deinstalliere das alte Spotify" + NewV = "Nicht unterstützte Spotify Version gefunden" + NewV2 = "Ihre Spotify {0} Version wurde noch nicht getestet, im Moment ist {1} die Stabile Version" + NewV3 = "Mochten sie mit der {0} Version fortfahren? (Fehler können auftreten) [Y/N]" + Recom = "Möchten sie die empfohlene Version von Spotify installieren? [Y/N]" + DelNew = "Deinstalliere eine ungetestete Version von Spotify..." + DownSpoti = "Installiere Spotify" + DownSpoti2 = "Bitte warten..." + PodcatsOff = "Podcasts Aus" + PodcastsOn = "Podcasts An" + PodcatsSelect = "Möchten Sie Podcasts, Episoden und Hörbücher auf der Hauptseite deaktivieren? [Y/N]" + DowngradeNote = "Es wird empfohlen Updates zu blockieren, da Spotify herabgestuft wurde" + UpdBlock = "Spotify Updates blockiert" + UpdUnblock = "Spotify Updates sind nicht blockiert" + UpdSelect = "Möchten sie Spotify Updates blockieren?" + CacheOn = "Cache wird geleert ({0})" + CacheOff = "Die Cache wird nicht geleert" + CacheSelect = "Möchten sie die automatische Cache-Bereinigung aktivieren? [Y/N]" + CacheDays = "Cache die älter als XX Tage sind werden bereinigt " + CacheDays2 = "Geben Sie die Anzahl der Tage von 1 bis 100 ein" + NoVariable = "Keine Variabel gefunden" + NoVariable2 = "in xpui.js" + NoVariable3 = "in licenses.html" + NoVariable4 = "in html" + NoVariable5 = "in home-v2.js" + NoVariable6 = "in xpui-desktop-modals.js" + ModSpoti = "Patche Spotify..." + Error = "Fehler" + FileLocBroken = "Speicherort von Spotify ist falsch, deinstalliere Spotify und starte die Installation neu" + Spicetify = "Spicetify gefunden" + NoRestore = "SpotX wurde schon installiert, aber Dateien zum Wiederherstellen von xpui.js.bak und xpui.css.bak konnten nicht gefunden werden. `nBitte deinstalliere Spotify und starte Install.bat nochmal" + ExpSpotify = "Experimentelle Funktionen, die von Spotify betrieben werden" + ExpStandart = "Experimentelle Funktionen von SpotX sind nicht enthalten" + NoRestore2 = "SpotX wurde schon installiert, xpui.bak wurde aber nicht gefunden. `nBitte deinstalliere Spotify und starte Install.bat nochmal" + UpdateBlocked = "Spotify Updates sind schon blockiert" + UpdateError = "Updates konnten nicht blockiert werden" + NoSpotifyExe = "Konnte nicht Spotify.exe finden" + InstallComplete = "Installation ist fertig" + HostInfo = "Unerwünschte URLs in der hosts Datei gefunden" + HostBak = "hosts.bak wird gesichert..." + HostDel = "Versuche unerwünschte URLs von der originalen hosts Datei zu entfernen..." + HostError = "Beim Bearbeiten der hosts Datei ist etwas schief gelaufen, bearbeite es manuell oder führen sie die Installation als Administrator aus" +} \ No newline at end of file From fd77cf5994a8041719d81f93daf7f464d932ee00 Mon Sep 17 00:00:00 2001 From: Robin <92602664+Robin-728@users.noreply.github.com> Date: Sat, 8 Oct 2022 14:27:10 +0200 Subject: [PATCH 2/3] Added German Translation --- Install.ps1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index 03c42d5..6ff5a4a 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -104,7 +104,7 @@ function Format-LanguageCode { begin { $supportLanguages = @( - 'en', 'ru', 'it', 'tr', 'ka', 'pl', 'es', 'fr', 'hi', 'pt', 'id', 'vi', 'ro' + 'en', 'ru', 'it', 'tr', 'ka', 'pl', 'es', 'fr', 'hi', 'pt', 'id', 'vi', 'ro', 'de' ) } @@ -162,6 +162,10 @@ function Format-LanguageCode { '^ro' { $returnCode = 'ro' break + } + '^de' { + $returnCode = 'de' + break } Default { $returnCode = $PSUICulture.Remove(2) @@ -253,6 +257,10 @@ function Set-ScriptLanguageStrings($LanguageCode) { $langStrings = CallLang -clg "ro" break } + 'de' { + $langStrings = CallLang -clg "de" + break + } Default { # Default to English if unable to find a match. $langStrings = CallLang -clg "en" @@ -273,7 +281,7 @@ $lang = Set-ScriptLanguageStrings -LanguageCode $langCode # Set variable 'ru'. if ($langCode -eq 'ru') { $ru = $true } # Set variable 'add translation line'. -if ($langCode -match '^(it|tr|ka|pl|es|fr|hi|pt|id|vi|ro)') { $line = $true } +if ($langCode -match '^(it|tr|ka|pl|es|fr|hi|pt|id|vi|ro|de)') { $line = $true } # Automatic length of stars $au = ($lang).Author.Length + ($lang).Author2.Length From d5e5234dd9de72775d17c5ad58de463843e5dd29 Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Sat, 8 Oct 2022 15:54:02 +0300 Subject: [PATCH 3/3] pretty print --- Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Install.ps1 b/Install.ps1 index 6ff5a4a..2834d29 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -163,7 +163,7 @@ function Format-LanguageCode { $returnCode = 'ro' break } - '^de' { + '^de' { $returnCode = 'de' break }