Merge pull request #4014 from stuartbreckenridge/fix/4006

Internationalises `notificationDisplayName`
This commit is contained in:
Brent Simmons
2023-06-04 10:52:10 -07:00
committed by GitHub
7 changed files with 42 additions and 6 deletions

View File

@@ -254,15 +254,15 @@ public final class WebFeed: Feed, Renamable, Hashable, ObservableObject {
public var notificationDisplayName: String {
#if os(macOS)
if self.url.contains("www.reddit.com") {
return NSLocalizedString("Show notifications for new posts", comment: "notifyNameDisplay / Reddit")
return NSLocalizedString("label.text.show-notifications-for-new-posts", comment: "Show notifications for new posts")
} else {
return NSLocalizedString("Show notifications for new articles", comment: "notifyNameDisplay / Default")
return NSLocalizedString("label.text.show-notifications-for-new-articles", comment: "Show notifications for new articles")
}
#else
if self.url.contains("www.reddit.com") {
return NSLocalizedString("Notify about new posts", comment: "notifyNameDisplay / Reddit")
return NSLocalizedString("label.text.show-notifications-for-new-posts", comment: "Notify about new posts")
} else {
return NSLocalizedString("Notify about new articles", comment: "notifyNameDisplay / Default")
return NSLocalizedString("label.text.show-notifications-for-new-articles", comment: "Notify about new articles")
}
#endif
}