From a9c28cffc4a0bee74f4a8f82a25539f0890891fc Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Fri, 9 Oct 2026 10:29:06 -0700 Subject: [PATCH] Add Spanish translation for sort menu items. --- Mac/MainMenu/mul.lproj/MainMenu.xcstrings | 38 +++++- Mac/MainWindow/Timeline/TimelineColumn.swift | 6 +- .../mul.lproj/TimelineContainerView.xcstrings | 38 +++++- Shared/Localizable.xcstrings | 124 ++++++++++++++++-- Shared/Timeline/ArticleSortParameters.swift | 4 +- 5 files changed, 187 insertions(+), 23 deletions(-) diff --git a/Mac/MainMenu/mul.lproj/MainMenu.xcstrings b/Mac/MainMenu/mul.lproj/MainMenu.xcstrings index de6026697..6e06ae635 100644 --- a/Mac/MainMenu/mul.lproj/MainMenu.xcstrings +++ b/Mac/MainMenu/mul.lproj/MainMenu.xcstrings @@ -1165,8 +1165,8 @@ }, "es" : { "stringUnit" : { - "state" : "needs_review", - "value" : "Artículo más antiguo arriba" + "state" : "translated", + "value" : "Ascendente" } } } @@ -1864,6 +1864,12 @@ "state" : "new", "value" : "Date" } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Fecha" + } } } }, @@ -1876,6 +1882,12 @@ "state" : "new", "value" : "Feed" } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Fuente" + } } } }, @@ -1888,6 +1900,12 @@ "state" : "new", "value" : "Starred" } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Destacados" + } } } }, @@ -1900,6 +1918,12 @@ "state" : "new", "value" : "Title" } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Título" + } } } }, @@ -1912,6 +1936,12 @@ "state" : "new", "value" : "Unread" } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "No leídos" + } } } }, @@ -1963,8 +1993,8 @@ }, "es" : { "stringUnit" : { - "state" : "needs_review", - "value" : "Artículo más reciente arriba" + "state" : "translated", + "value" : "Descendente" } } } diff --git a/Mac/MainWindow/Timeline/TimelineColumn.swift b/Mac/MainWindow/Timeline/TimelineColumn.swift index ef327e2c3..5a7acdf88 100644 --- a/Mac/MainWindow/Timeline/TimelineColumn.swift +++ b/Mac/MainWindow/Timeline/TimelineColumn.swift @@ -61,10 +61,8 @@ enum TimelineColumn: String, CaseIterable { /// Only the status columns need one — their headers have no text. var headerToolTip: String? { switch self { - case .unread: - NSLocalizedString("Unread", comment: "Unread") - case .starred: - NSLocalizedString("Starred", comment: "Starred") + case .unread, .starred: + sortKey.localizedName case .title, .feed, .date: nil } diff --git a/Mac/MainWindow/Timeline/mul.lproj/TimelineContainerView.xcstrings b/Mac/MainWindow/Timeline/mul.lproj/TimelineContainerView.xcstrings index e4974ee96..a7d5009f1 100644 --- a/Mac/MainWindow/Timeline/mul.lproj/TimelineContainerView.xcstrings +++ b/Mac/MainWindow/Timeline/mul.lproj/TimelineContainerView.xcstrings @@ -31,8 +31,8 @@ }, "es" : { "stringUnit" : { - "state" : "needs_review", - "value" : "Artículo más reciente arriba" + "state" : "translated", + "value" : "Descendente" } } } @@ -46,6 +46,12 @@ "state" : "new", "value" : "Date" } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Fecha" + } } } }, @@ -58,6 +64,12 @@ "state" : "new", "value" : "Feed" } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Fuente" + } } } }, @@ -70,6 +82,12 @@ "state" : "new", "value" : "Starred" } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Destacados" + } } } }, @@ -82,6 +100,12 @@ "state" : "new", "value" : "Title" } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Título" + } } } }, @@ -94,6 +118,12 @@ "state" : "new", "value" : "Unread" } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "No leídos" + } } } }, @@ -109,8 +139,8 @@ }, "es" : { "stringUnit" : { - "state" : "needs_review", - "value" : "Artículo más antiguo arriba" + "state" : "translated", + "value" : "Ascendente" } } } diff --git a/Shared/Localizable.xcstrings b/Shared/Localizable.xcstrings index 2788eef17..8e0826dd8 100644 --- a/Shared/Localizable.xcstrings +++ b/Shared/Localizable.xcstrings @@ -72,7 +72,15 @@ "isCommentAutoGenerated" : true }, "A to Z" : { - "comment" : "Sort direction" + "comment" : "Sort direction", + "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "De la A a la Z" + } + } + } }, "A web browser will open the Feedly login for you to authorize access." : { "comment" : "Alert informative text when adding a Feedly account and waiting for authorization from the user.", @@ -241,7 +249,15 @@ "comment" : "Articles" }, "Ascending" : { - "comment" : "Sort direction" + "comment" : "Sort direction", + "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Ascendente" + } + } + } }, "Author‘s website:" : { "comment" : "Author's Website" @@ -403,7 +419,15 @@ "comment" : "Database size row label" }, "Date" : { - "comment" : "Timeline column header" + "comment" : "Timeline column header", + "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Fecha" + } + } + } }, "Deactivate" : { "comment" : "Deactivate" @@ -450,7 +474,15 @@ "comment" : "Cleanup phase text" }, "Descending" : { - "comment" : "Sort direction" + "comment" : "Sort direction", + "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Descendente" + } + } + } }, "Dinosaurs Help" : { "comment" : "Help link" @@ -555,7 +587,15 @@ "comment" : "Activity owner name" }, "Feed" : { - "comment" : "Timeline column header" + "comment" : "Timeline column header", + "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Fuente" + } + } + } }, "Feed Inspector" : { "comment" : "Feed Inspector window title" @@ -864,7 +904,15 @@ "comment" : "New Folder" }, "Newest Article on Top" : { - "comment" : "Sort direction" + "comment" : "Sort direction", + "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Artículo más reciente arriba" + } + } + } }, "Next Article" : { "comment" : "Next Article" @@ -913,7 +961,15 @@ "comment" : "OK button" }, "Oldest Article on Top" : { - "comment" : "Sort direction" + "comment" : "Sort direction", + "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Artículo más antiguo arriba" + } + } + } }, "Open" : { "comment" : "Open" @@ -1307,8 +1363,50 @@ "Timeline Separator" : { "comment" : "Toolbar item" }, + "timeline.column.starred" : { + "comment" : "Timeline column and sort field name", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Starred" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Destacados" + } + } + } + }, + "timeline.column.unread" : { + "comment" : "Timeline column and sort field name", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Unread" + } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "No leídos" + } + } + } + }, "Title" : { - "comment" : "Timeline column header" + "comment" : "Timeline column header", + "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Título" + } + } + } }, "Title (Optional)" : { "comment" : "Feed title placeholder" @@ -1505,7 +1603,15 @@ "comment" : "iCloud Account" }, "Z to A" : { - "comment" : "Sort direction" + "comment" : "Sort direction", + "localizations" : { + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "De la Z a la A" + } + } + } } }, "version" : "1.1" diff --git a/Shared/Timeline/ArticleSortParameters.swift b/Shared/Timeline/ArticleSortParameters.swift index 86244dd7c..2e2881527 100644 --- a/Shared/Timeline/ArticleSortParameters.swift +++ b/Shared/Timeline/ArticleSortParameters.swift @@ -25,9 +25,9 @@ enum ArticleSortKey: String, Sendable { case .title: NSLocalizedString("Title", comment: "Timeline column header") case .unread: - NSLocalizedString("Unread", comment: "Unread") + NSLocalizedString("timeline.column.unread", value: "Unread", comment: "Timeline column and sort field name") case .starred: - NSLocalizedString("Starred", comment: "Starred") + NSLocalizedString("timeline.column.starred", value: "Starred", comment: "Timeline column and sort field name") } }