mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 10:47:21 +00:00
Regularize comments for localized strings so the Localizable.xcstrings file doesn't change just because we switched targets.
This commit is contained in:
1 parent
38e7b53803
commit
fb05b944cf
30 files changed
+159
-159
No files matched your search
@@ -826,7 +826,7 @@ private extension WebViewController {
|
||||
func toggleReadAction() -> UIAction? {
|
||||
guard let article = article, !article.status.read || article.isAvailableToMarkUnread else { return nil }
|
||||
|
||||
let title = article.status.read ? NSLocalizedString("Mark as Unread", comment: "Mark as Unread") : NSLocalizedString("Mark as Read", comment: "Mark as Read")
|
||||
let title = article.status.read ? NSLocalizedString("Mark as Unread", comment: "Command") : NSLocalizedString("Mark as Read", comment: "Command")
|
||||
let readImage = article.status.read ? Assets.Images.circleClosed : Assets.Images.circleOpen
|
||||
return UIAction(title: title, image: readImage) { [weak self] _ in
|
||||
self?.coordinator.toggleReadForCurrentArticle()
|
||||
@@ -835,7 +835,7 @@ private extension WebViewController {
|
||||
|
||||
func toggleStarredAction() -> UIAction {
|
||||
let starred = article?.status.starred ?? false
|
||||
let title = starred ? NSLocalizedString("Mark as Unstarred", comment: "Mark as Unstarred") : NSLocalizedString("Mark as Starred", comment: "Mark as Starred")
|
||||
let title = starred ? NSLocalizedString("Mark as Unstarred", comment: "Command") : NSLocalizedString("Mark as Starred", comment: "Command")
|
||||
let starredImage = starred ? Assets.Images.starOpen : Assets.Images.starClosed
|
||||
return UIAction(title: title, image: starredImage) { [weak self] _ in
|
||||
self?.coordinator.toggleStarredForCurrentArticle()
|
||||
@@ -860,7 +860,7 @@ private extension WebViewController {
|
||||
}
|
||||
|
||||
func shareAction() -> UIAction {
|
||||
let title = NSLocalizedString("Share", comment: "Share")
|
||||
let title = NSLocalizedString("Share", comment: "Share button")
|
||||
return UIAction(title: title, image: Assets.Images.share) { [weak self] _ in
|
||||
self?.showActivityDialog()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user