From 09e7501ea612ebc0af61f45577c4450cd9c82108 Mon Sep 17 00:00:00 2001 From: Carlos Enumo Date: Sun, 22 Sep 2024 12:19:07 +0100 Subject: [PATCH] Fix broken translations --- Calendr.xcodeproj/project.pbxproj | 4 ++-- Calendr/Assets/Strings.generated.swift | 4 ++-- Calendr/Assets/en.lproj/Localizable.strings | 2 +- Calendr/Assets/fr.lproj/Localizable.strings | 6 +++--- Calendr/Settings/GeneralSettingsViewController.swift | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Calendr.xcodeproj/project.pbxproj b/Calendr.xcodeproj/project.pbxproj index 9e2e8c66..03345164 100644 --- a/Calendr.xcodeproj/project.pbxproj +++ b/Calendr.xcodeproj/project.pbxproj @@ -1426,7 +1426,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 1.13.0; + MARKETING_VERSION = 1.13.1; PRODUCT_BUNDLE_IDENTIFIER = br.paker.Calendr; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Calendr/Config/Calendr-Bridging-Header.h"; @@ -1454,7 +1454,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 1.13.0; + MARKETING_VERSION = 1.13.1; PRODUCT_BUNDLE_IDENTIFIER = br.paker.Calendr; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Calendr/Config/Calendr-Bridging-Header.h"; diff --git a/Calendr/Assets/Strings.generated.swift b/Calendr/Assets/Strings.generated.swift index cdb199de..147c6c2b 100644 --- a/Calendr/Assets/Strings.generated.swift +++ b/Calendr/Assets/Strings.generated.swift @@ -207,10 +207,10 @@ internal enum Strings { internal static let showIconDate = Strings.tr("Localizable", "settings.menu_bar.show_icon_date", fallback: "Show date in icon") } internal enum NextEvent { + /// Shorten if 'notch' is present + internal static let detectNotch = Strings.tr("Localizable", "settings.next_event.detect_notch", fallback: "Shorten if 'notch' is present") /// Font size internal static let fontSize = Strings.tr("Localizable", "settings.next_event.font_size", fallback: "Font size") - /// Shorten if 'notch' is present - internal static let nextEventDetectNotch = Strings.tr("Localizable", "settings.next_event.next_event_detect_notch", fallback: "Shorten if 'notch' is present") /// Show next event internal static let showNextEvent = Strings.tr("Localizable", "settings.next_event.show_next_event", fallback: "Show next event") } diff --git a/Calendr/Assets/en.lproj/Localizable.strings b/Calendr/Assets/en.lproj/Localizable.strings index 3adfb9bf..4b05ea03 100644 --- a/Calendr/Assets/en.lproj/Localizable.strings +++ b/Calendr/Assets/en.lproj/Localizable.strings @@ -38,7 +38,7 @@ "settings.next_event" = "Next Event"; "settings.next_event.show_next_event" = "Show next event"; "settings.next_event.font_size" = "Font size"; -"settings.next_event.next_event_detect_notch" = "Shorten if 'notch' is present"; +"settings.next_event.detect_notch" = "Shorten if 'notch' is present"; "settings.calendar" = "Calendar"; "settings.calendar.show_week_numbers" = "Show week numbers"; diff --git a/Calendr/Assets/fr.lproj/Localizable.strings b/Calendr/Assets/fr.lproj/Localizable.strings index 705577ca..3c6fcd89 100644 --- a/Calendr/Assets/fr.lproj/Localizable.strings +++ b/Calendr/Assets/fr.lproj/Localizable.strings @@ -36,9 +36,9 @@ "settings.menu_bar.date_format_custom" = "Personnalisé"; "settings.next_event" = "Prochain événement"; -"settings.menu_bar.show_next_event" = "Afficher prochain événement"; -"settings.menu_bar.font_size" = "Taille de police"; -"settings.menu_bar.next_event_detect_notch" = "Raccourcir si 'notch' est présent"; +"settings.next_event.show_next_event" = "Afficher prochain événement"; +"settings.next_event.font_size" = "Taille de police"; +"settings.next_event.detect_notch" = "Raccourcir si 'notch' est présent"; "settings.calendar" = "Calendrier"; "settings.calendar.show_week_numbers" = "Afficher les numéros des semaines"; diff --git a/Calendr/Settings/GeneralSettingsViewController.swift b/Calendr/Settings/GeneralSettingsViewController.swift index 0be6faae..83c46e5b 100644 --- a/Calendr/Settings/GeneralSettingsViewController.swift +++ b/Calendr/Settings/GeneralSettingsViewController.swift @@ -27,7 +27,7 @@ class GeneralSettingsViewController: NSViewController, SettingsUI { private let showNextEventCheckbox = Checkbox(title: Strings.Settings.NextEvent.showNextEvent) private let nextEventRangeStepper = NSStepper() private let nextEventLengthSlider = Slider.make(minValue: 10, maxValue: 50, numberOfTickMarks: 12) - private let nextEventDetectNotchCheckbox = Checkbox(title: Strings.Settings.NextEvent.nextEventDetectNotch) + private let nextEventDetectNotchCheckbox = Checkbox(title: Strings.Settings.NextEvent.detectNotch) private let nextEventFontSizeStepper = NSStepper() // Calendar