diff --git a/Model/DownloadService.swift b/Model/DownloadService.swift index 61235000..41137cd2 100644 --- a/Model/DownloadService.swift +++ b/Model/DownloadService.swift @@ -194,7 +194,7 @@ class DownloadService: NSObject, URLSessionDelegate, URLSessionTaskDelegate, URL content.title = "download_service.complete.title".localized content.sound = .default if let zimFile = try? context.fetch(ZimFile.fetchRequest(fileID: zimFileID)).first { - content.body = zimFile.name + "download_service.complete.description".localized + content.body = "download_service.complete.description".localizedWithFormat(withArgs: zimFile.name) } // schedule notification diff --git a/Support/en.lproj/Localizable.strings b/Support/en.lproj/Localizable.strings index 54857ba6..8d1c7370 100644 --- a/Support/en.lproj/Localizable.strings +++ b/Support/en.lproj/Localizable.strings @@ -14,7 +14,7 @@ "library_refresh_error.process.description" = "Error processing library data."; "download_service.complete.title" = "Download Completed"; -"download_service.complete.description" = " has been downloaded successfully."; +"download_service.complete.description" = "%@ has been downloaded successfully."; "common.dialog.button.open" = "Open"; "common.dialog.button.open_in_new_tab" = "Open in New Tab"; @@ -62,7 +62,7 @@ "external_link_handler.alert.ask.description" = "An external link is tapped, do you wish to load the link?"; "external_link_handler.alert.not_loading.description" = "An external link is tapped. However, your current setting does not allow it to be loaded."; "file_import.alert.no_open.title" = "Unable to open file"; -"file_import.alert.no_open.message" = " cannot be opened."; +"file_import.alert.no_open.message" = "%@ cannot be opened."; "article_cell.no_snippet.label" = "No snippet"; "attribute.detail.unknown" = "Unknown"; diff --git a/Views/ViewModifiers/FileImport.swift b/Views/ViewModifiers/FileImport.swift index 414641f9..53581911 100644 --- a/Views/ViewModifiers/FileImport.swift +++ b/Views/ViewModifiers/FileImport.swift @@ -104,7 +104,7 @@ struct OpenFileHandler: ViewModifier { switch alert { case .unableToOpen(let filenames): let name = ListFormatter.localizedString(byJoining: filenames) - Text(name + "file_import.alert.no_open.message".localized) + Text("file_import.alert.no_open.message".localizedWithFormat(withArgs: name)) } } }