From 240a3295269158b519b45b0f99b88f70aa74e84e Mon Sep 17 00:00:00 2001
From: Vexorion Real <81510862+VexorionReal@users.noreply.github.com>
Date: Wed, 4 Feb 2026 15:30:31 +0100
Subject: [PATCH] Add Polish (pl) localization to ErsatzTV (#2812)
* Add Polish localization for MainLayout
* Add Polish language option to UI settings
* Add Polish to supported UI cultures
---------
Co-authored-by: Jason Dove <1695733+jasongdove@users.noreply.github.com>
---
ErsatzTV/Locals/Shared/MainLayout.pl.resx | 197 ++++++++++++++++++++++
ErsatzTV/Pages/Settings/UISettings.razor | 1 +
ErsatzTV/Startup.cs | 2 +-
3 files changed, 199 insertions(+), 1 deletion(-)
create mode 100644 ErsatzTV/Locals/Shared/MainLayout.pl.resx
diff --git a/ErsatzTV/Locals/Shared/MainLayout.pl.resx b/ErsatzTV/Locals/Shared/MainLayout.pl.resx
new file mode 100644
index 000000000..aeb085855
--- /dev/null
+++ b/ErsatzTV/Locals/Shared/MainLayout.pl.resx
@@ -0,0 +1,197 @@
+
+
+ text/microsoft-resx
+
+
+ 1.3
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Kanały
+
+
+ Profile FFmpeg
+
+
+ Znaki wodne
+
+
+ Źródła multimediów
+
+
+ Multimedia
+
+
+ Listy
+
+
+ Ustawienia
+
+
+ Lokalne
+
+
+ Emby
+
+
+ Jellyfin
+
+
+ Plex
+
+
+ Biblioteki
+
+
+ Kosz
+
+
+ Seriale
+
+
+ Filmy
+
+
+ Muzyka
+
+
+ Inne wideo
+
+
+ Utwory
+
+
+ Obrazy
+
+
+ Strumienie zdalne
+
+
+ Kolekcje ręczne
+
+
+ Inteligentne kolekcje
+
+
+ Multikolekcje
+
+
+ Kolekcje powtórek
+
+
+ Playlisty
+
+
+ Listy Trakt
+
+
+ Szablony wypełniaczy
+
+
+ Planowanie
+
+
+ Harmonogramy
+
+
+ Bloki
+
+
+ Szablony
+
+
+ Dekoracje
+
+
+ Szablony dekoracji
+
+
+ Plany emisji
+
+
+ FFmpeg
+
+
+ Dzienniki zdarzeń
+
+
+ HDHomeRun
+
+
+ Skaner
+
+
+ Emisja
+
+
+ Interfejs
+
+
+ XMLTV
+
+
+ Pomoc
+
+
+ Diagnostyka
+
+
+ Logi
+
+
+ Rozwiązywanie problemów
+
+
+ Wersja ErsatzTV
+
+
+ Kanał
+
+
+ Profil FFmpeg
+
+
+ Znak wodny kanału
+
+
+ Kolekcja
+
+
+ Multikolekcja
+
+
+ Inteligentna kolekcja
+
+
+ Harmonogram
+
+
+ Pozycje harmonogramu
+
+
+ M3U
+
+
+ XMLTV
+
+
+ API
+
+
+ Dokumentacja
+
+
+ Discord
+
+
+ GitHub
+
+
+ Wyloguj
+
+
diff --git a/ErsatzTV/Pages/Settings/UISettings.razor b/ErsatzTV/Pages/Settings/UISettings.razor
index d6067bcdc..e6fa9d409 100644
--- a/ErsatzTV/Pages/Settings/UISettings.razor
+++ b/ErsatzTV/Pages/Settings/UISettings.razor
@@ -30,6 +30,7 @@
English
+ Polski
Português (Brasil)
diff --git a/ErsatzTV/Startup.cs b/ErsatzTV/Startup.cs
index b33410376..b18631538 100644
--- a/ErsatzTV/Startup.cs
+++ b/ErsatzTV/Startup.cs
@@ -605,7 +605,7 @@ public class Startup
{
CultureInfo[] cinfo = CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures);
string[] supportedCultures = cinfo.Select(t => t.Name).Distinct().ToArray();
- string[] supportedUiCultures = ["en-us", "pt-br"];
+ string[] supportedUiCultures = ["en-us", "pl", "pt-br"];
options.AddSupportedCultures(supportedCultures)
.AddSupportedUICultures(supportedUiCultures)
.SetDefaultCulture("en-us");