Adds localization technote

And a missing translation
This commit is contained in:
Stuart Breckenridge
2023-01-08 06:35:22 +08:00
parent ce51182a92
commit b62dcf8d29
8 changed files with 269 additions and 9 deletions

View File

@@ -263,9 +263,8 @@ private extension MasterTimelineTableViewCell {
}
func updateAccessiblityLabel() {
#warning("This needs to be localized.")
let starredStatus = cellData.starred ? "\(NSLocalizedString("Starred", comment: "Starred article for accessibility")), " : ""
let unreadStatus = cellData.read ? "" : "\(NSLocalizedString("Unread", comment: "Unread")), "
let starredStatus = cellData.starred ? "\(NSLocalizedString("label.text.starred", comment: "Starred")), " : ""
let unreadStatus = cellData.read ? "" : "\(NSLocalizedString("label.text.unread", comment: "Unread")), "
let label = starredStatus + unreadStatus + "\(cellData.feedName), \(cellData.title), \(cellData.summary), \(cellData.dateString)"
accessibilityLabel = label
}

View File

@@ -745,6 +745,9 @@
/* Small */
"label.text.small" = "Small";
/* Starred */
"label.text.starred" = "Starred";
/* Thanks */
"label.text.thanks" = "Thanks";
@@ -760,6 +763,9 @@
/* Timeline */
"label.text.timeline" = "Timeline";
/* Unread */
"label.text.unread" = "Unread";
/* Relative time that the account was last refreshed. The variable is a named relative time. Example: Updated 8 minutes ago */
"label.text.updatedat.%@" = "Updated %@";
@@ -857,9 +863,6 @@
/* Smart Feeds group title */
"smartfeeds.title" = "Smart Feeds";
/* Starred article for accessibility */
"Starred" = "Starred";
/* Email Address */
"textfield.placeholder.email-address" = "Email Address";
@@ -911,6 +914,3 @@
/* Unread label for accessiblity */
"unread" = "unread";
/* Unread */
"Unread" = "Unread";

View File

@@ -730,6 +730,9 @@
/* Small */
"label.text.small" = "Small";
/* Starred */
"label.text.starred" = "Starred";
/* Thanks */
"label.text.thanks" = "Thanks";
@@ -745,6 +748,9 @@
/* Timeline */
"label.text.timeline" = "Timeline";
/* Unread */
"label.text.unread" = "Unread";
/* Relative time that the account was last refreshed. The variable is a named relative time. Example: Updated 8 minutes ago */
"label.text.updatedat.%@" = "Updated %@";