Translate hardcoded strings and UI to English

This commit is contained in:
2026-09-17 14:25:38 +02:00
parent 282ea8784b
commit 6a386d7d21
5 changed files with 18 additions and 19 deletions
+5 -6
View File
@@ -55,7 +55,7 @@ namespace JellyfinPlugin
if (string.IsNullOrEmpty(webPath))
{
_logger.LogWarning("Nie udało się znaleźć katalogu Jellyfin Web. Ręczna instalacja skryptu klienckiego będzie wymagana.");
_logger.LogWarning("Failed to find Jellyfin Web directory. Manual installation of the client script is required.");
return;
}
@@ -66,23 +66,22 @@ namespace JellyfinPlugin
if (!indexContent.Contains("BlackBarRemover/ClientScript.js"))
{
// Wstrzykujemy skrypt tuż przed końcem taga </body>
indexContent = indexContent.Replace("</body>", $" {scriptTag}\n</body>");
File.WriteAllText(indexPath, indexContent);
_logger.LogInformation("Pomyślnie wstrzyknięto skrypt BlackBarRemover do index.html w {Path}", indexPath);
_logger.LogInformation("Successfully injected BlackBarRemover script into index.html at {Path}", indexPath);
}
else
{
_logger.LogInformation("Skrypt kliencki BlackBarRemover jest już wstrzyknięty w index.html");
_logger.LogInformation("BlackBarRemover client script is already injected into index.html");
}
}
catch (UnauthorizedAccessException)
{
_logger.LogWarning("Brak uprawnień do modyfikacji index.html. Zmodyfikuj uprawnienia plików Jellyfin Web lub dodaj skrypt ręcznie w Custom CSS.");
_logger.LogWarning("Permission denied to modify index.html. Change Jellyfin Web file permissions or add the script manually in Custom CSS.");
}
catch (Exception ex)
{
_logger.LogError(ex, "Wystąpił błąd podczas wstrzykiwania skryptu do index.html.");
_logger.LogError(ex, "An error occurred while injecting the script into index.html.");
}
}