fix(i18n): localize hardcoded UI strings

close #1257
This commit is contained in:
edde746
2026-06-06 11:45:34 +02:00
parent f74314bbf0
commit 4c4b18e2cd
64 changed files with 4391 additions and 258 deletions
+3 -2
View File
@@ -2,6 +2,7 @@ import 'dart:async';
import '../media/ids.dart';
import 'dart:io';
import 'package:flutter/foundation.dart';
import '../i18n/strings.g.dart';
import '../media/media_backend.dart';
import '../media/media_item.dart';
import '../media/media_item_types.dart';
@@ -527,7 +528,7 @@ class DownloadProvider extends ChangeNotifier with DisposableChangeNotifierMixin
id: showRatingKey,
backend: meta.backend,
kind: MediaKind.show,
title: meta.grandparentTitle ?? 'Unknown Show',
title: meta.grandparentTitle ?? t.common.unknown,
thumbPath: meta.grandparentThumbPath,
artPath: meta.grandparentArtPath,
serverId: meta.serverId,
@@ -1721,7 +1722,7 @@ class DownloadProvider extends ChangeNotifier with DisposableChangeNotifierMixin
/// Exception thrown when download is blocked due to cellular-only setting
class CellularDownloadBlockedException implements Exception {
final String message = 'Downloads are disabled on cellular data';
String get message => t.settings.cellularDownloadBlocked;
@override
String toString() => message;