diff --git a/iTorrent/Core/Assets/Localizable.xcstrings b/iTorrent/Core/Assets/Localizable.xcstrings index 71f909c5..704419f2 100644 --- a/iTorrent/Core/Assets/Localizable.xcstrings +++ b/iTorrent/Core/Assets/Localizable.xcstrings @@ -2804,7 +2804,63 @@ } } }, - "list.empty.subtitle" : { + "list.empty.filter.subtitle" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Try to disable this filter or select another one" + } + }, + "es" : { + "stringUnit" : { + "state" : "needs_review", + "value" : "Try to disable this filter or select another one" + } + }, + "ru" : { + "stringUnit" : { + "state" : "translated", + "value" : "Попробуйте выключить текущий фильтр или выбрать другой" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "needs_review", + "value" : "Try to disable this filter or select another one" + } + } + } + }, + "list.empty.filter.title-%@" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "No torrents for filter “%1$@”" + } + }, + "es" : { + "stringUnit" : { + "state" : "needs_review", + "value" : "No torrents for filter “%1$@”" + } + }, + "ru" : { + "stringUnit" : { + "state" : "translated", + "value" : "Нет торрентов для фильтра «%@»" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "needs_review", + "value" : "No torrents for filter “%1$@”" + } + } + } + }, + "list.empty.nodata.subtitle" : { "localizations" : { "en" : { "stringUnit" : { @@ -2832,7 +2888,7 @@ } } }, - "list.empty.title" : { + "list.empty.nodata.title" : { "localizations" : { "en" : { "stringUnit" : { diff --git a/iTorrent/Screens/Rss/Search/RssSearchViewController.swift b/iTorrent/Screens/Rss/Search/RssSearchViewController.swift index eb9de0ca..949208d2 100644 --- a/iTorrent/Screens/Rss/Search/RssSearchViewController.swift +++ b/iTorrent/Screens/Rss/Search/RssSearchViewController.swift @@ -24,7 +24,7 @@ class RssSearchViewController: BaseCollectionViewControl contentUnavailableConfiguration = config case .badSearch(let search): var configuration = UIContentUnavailableConfiguration.search() - configuration.text = %"noContent.search.\(search)" //"No Results for “\(search)”" + configuration.text = %"noContent.search.\(search)" contentUnavailableConfiguration = configuration case .badFilter: contentUnavailableConfiguration = UIContentUnavailableConfiguration.empty() diff --git a/iTorrent/Screens/TorrentList/TorrentListViewController.swift b/iTorrent/Screens/TorrentList/TorrentListViewController.swift index 84ba7b42..cfea88bf 100644 --- a/iTorrent/Screens/TorrentList/TorrentListViewController.swift +++ b/iTorrent/Screens/TorrentList/TorrentListViewController.swift @@ -293,16 +293,16 @@ private extension TorrentListViewController { case .noData: var config = UIContentUnavailableConfiguration.empty() config.image = .init(systemName: "fireworks") - config.text = %"list.empty.title" - config.secondaryText = %"list.empty.subtitle" + config.text = %"list.empty.nodata.title" + config.secondaryText = %"list.empty.nodata.subtitle" contentUnavailableConfiguration = config case .badSearch: contentUnavailableConfiguration = UIContentUnavailableConfiguration.search() case .badFilter(let filter): var configuration = UIContentUnavailableConfiguration.empty() configuration.image = .init(systemName: "line.3.horizontal.decrease") - configuration.text = "No torrents for filter “\(filter.name)”" - configuration.secondaryText = "Try to disable this filter or select another one" + configuration.text = %"list.empty.filter.title-\(filter.name)" + configuration.secondaryText = %"list.empty.filter.subtitle" contentUnavailableConfiguration = configuration case nil: contentUnavailableConfiguration = nil