feat(i18n): translate import and player messages to German

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
fraujulianandClaude Fable 5.2 committed 2026-11-23 14:22:49 +01:00
1 parent 44d07a10df
commit b8f5a3e469
4 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -80,7 +80,7 @@ public sealed class MusicPlayer : IAudioPlayer
Release();
if (!File.Exists(filePath))
throw new FileNotFoundException($"Audio file not found: {filePath}", filePath);
throw new FileNotFoundException($"Audiodatei nicht gefunden: {filePath}", filePath);
try
{
@@ -88,7 +88,7 @@ public sealed class MusicPlayer : IAudioPlayer
}
catch (Exception ex) when (ex is not OutOfMemoryException)
{
throw new InvalidDataException($"Cannot read audio file: {filePath}", ex);
throw new InvalidDataException($"Audiodatei kann nicht gelesen werden: {filePath}", ex);
}
try
@@ -19,7 +19,7 @@ public class SongImportService(SongRepository songs, string musicDirectory)
public Song Import(string sourcePath)
{
if (!SupportedExtensions.Contains(Path.GetExtension(sourcePath).ToLowerInvariant()))
throw new SongImportException("Only MP3 and WAV files are supported.");
throw new SongImportException("Nur MP3- und WAV-Dateien werden unterstĂĽtzt.");
Directory.CreateDirectory(musicDirectory);
var targetPath = GetUniqueTargetPath(Path.GetFileName(sourcePath));
@@ -29,7 +29,7 @@ public class SongImportService(SongRepository songs, string musicDirectory)
}
catch (Exception e) when (e is IOException or UnauthorizedAccessException)
{
throw new SongImportException($"The file could not be read: {e.Message}", e);
throw new SongImportException($"Die Datei konnte nicht gelesen werden: {e.Message}", e);
}
try
@@ -75,11 +75,11 @@ public class SongImportService(SongRepository songs, string musicDirectory)
catch (Exception e)
{
// NAudio and Media Foundation throw many unrelated exception types for corrupt files.
throw new SongImportException("The file is not a readable MP3 or WAV file.", e);
throw new SongImportException("Die Datei ist keine lesbare MP3- oder WAV-Datei.", e);
}
if (duration <= TimeSpan.Zero)
throw new SongImportException("The file contains no audio.");
throw new SongImportException("Die Datei enthält kein Audio.");
return duration;
}