From 3b6d2e4dabe511d9788e5f19910a70e6c3712179 Mon Sep 17 00:00:00 2001 From: Reed Harston Date: Fri, 8 Mar 2024 13:18:21 -0800 Subject: [PATCH 1/2] Change Release Notes button to text --- Xcodes/Frontend/InfoPane/ReleaseDateView.swift | 14 ++++++-------- Xcodes/Frontend/InfoPane/ReleaseNotesView.swift | 5 ++--- Xcodes/Resources/Localizable.xcstrings | 10 ++++++++++ 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/Xcodes/Frontend/InfoPane/ReleaseDateView.swift b/Xcodes/Frontend/InfoPane/ReleaseDateView.swift index 838c3659..c12fc1f5 100644 --- a/Xcodes/Frontend/InfoPane/ReleaseDateView.swift +++ b/Xcodes/Frontend/InfoPane/ReleaseDateView.swift @@ -15,18 +15,16 @@ struct ReleaseDateView: View { if let date = date { VStack(alignment: .leading) { - HStack { - Text("ReleaseDate") - .font(.headline) - Spacer() - if let url { - ReleaseNotesView(url: url) - } - } + Text("ReleaseDate") + .font(.headline) Text("\(date, style: .date)") .font(.subheadline) + if let url { + ReleaseNotesView(url: url) + .padding(.top, 2) + } } diff --git a/Xcodes/Frontend/InfoPane/ReleaseNotesView.swift b/Xcodes/Frontend/InfoPane/ReleaseNotesView.swift index 8f16e3a1..e9e888c6 100644 --- a/Xcodes/Frontend/InfoPane/ReleaseNotesView.swift +++ b/Xcodes/Frontend/InfoPane/ReleaseNotesView.swift @@ -16,10 +16,9 @@ struct ReleaseNotesView: View { var body: some View { if let url = url { Button(action: { openURL(url) }) { - Image(systemName: "link.circle.fill") - .font(.title) + Text("ReleaseNotes") + .font(.callout) } - .buttonStyle(.plain) .contextMenu(menuItems: { CopyReleaseNoteButton(url: url) }) diff --git a/Xcodes/Resources/Localizable.xcstrings b/Xcodes/Resources/Localizable.xcstrings index c63266b8..ed9f2c20 100644 --- a/Xcodes/Resources/Localizable.xcstrings +++ b/Xcodes/Resources/Localizable.xcstrings @@ -16516,6 +16516,16 @@ } } }, + "ReleaseNotes" : { + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Release Notes" + } + } + } + }, "ReleaseNotes.help" : { "localizations" : { "ca" : { From 14f56d6af27d183fd6e3e6bd245caffc2b096abb Mon Sep 17 00:00:00 2001 From: Reed Harston Date: Fri, 8 Mar 2024 13:22:42 -0800 Subject: [PATCH 2/2] Localize the european languages I'm familiar with --- Xcodes/Resources/Localizable.xcstrings | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Xcodes/Resources/Localizable.xcstrings b/Xcodes/Resources/Localizable.xcstrings index ed9f2c20..e0d616db 100644 --- a/Xcodes/Resources/Localizable.xcstrings +++ b/Xcodes/Resources/Localizable.xcstrings @@ -16518,11 +16518,53 @@ }, "ReleaseNotes" : { "localizations" : { + "ca" : { + "stringUnit" : { + "state" : "translated", + "value" : "Notes de la versió" + } + }, + "de" : { + "stringUnit" : { + "state" : "translated", + "value" : "Release-Notes" + } + }, "en" : { "stringUnit" : { "state" : "translated", "value" : "Release Notes" } + }, + "es" : { + "stringUnit" : { + "state" : "translated", + "value" : "Notas del Lanzamiento" + } + }, + "fr" : { + "stringUnit" : { + "state" : "translated", + "value" : "Notes de Mise á Jour" + } + }, + "it" : { + "stringUnit" : { + "state" : "translated", + "value" : "Note di Rilascio" + } + }, + "nl" : { + "stringUnit" : { + "state" : "translated", + "value" : "Release Notes" + } + }, + "pt-BR" : { + "stringUnit" : { + "state" : "translated", + "value" : "Notas de Lançamento" + } } } },