diff --git a/LeCountdown/AppDelegate.swift b/LeCountdown/AppDelegate.swift index 9bc9403..14b651a 100644 --- a/LeCountdown/AppDelegate.swift +++ b/LeCountdown/AppDelegate.swift @@ -12,8 +12,6 @@ class AppDelegate : NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { - Logger.log("didfinish > countdowns count = \(Conductor.maestro.currentCountdowns.count)") - UNUserNotificationCenter.current().delegate = self Conductor.maestro.cleanup() return true diff --git a/LeCountdown/Assets.xcassets/AppIcon.appiconset/icon.png b/LeCountdown/Assets.xcassets/AppIcon.appiconset/icon.png index 9daab5c..af1bb44 100644 Binary files a/LeCountdown/Assets.xcassets/AppIcon.appiconset/icon.png and b/LeCountdown/Assets.xcassets/AppIcon.appiconset/icon.png differ diff --git a/LeCountdown/Conductor.swift b/LeCountdown/Conductor.swift index 593120c..04fde9a 100644 --- a/LeCountdown/Conductor.swift +++ b/LeCountdown/Conductor.swift @@ -208,10 +208,10 @@ class Conductor: ObservableObject { if let coolSound { self.playSound(coolSound) - AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate)) } else { print("No sound to play!") } + AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate)) } func playSound(_ sound: Sound) { @@ -236,7 +236,7 @@ class Conductor: ObservableObject { fileprivate func _createTimerIntent(_ timer: AbstractTimer) { let intent = LaunchTimerIntent() - let invocationPhrase = String(format: NSLocalizedString("Launch %@", comment: ""), timer.displayName) + let invocationPhrase = "testooooo \(timer.defaultName)" // String(format: NSLocalizedString("Launch %@", comment: ""), timer.displayName) intent.suggestedInvocationPhrase = String(format: invocationPhrase, timer.displayName) intent.timer = TimerIdentifier(identifier: timer.stringId, display: timer.displayName) diff --git a/LeCountdown/LeCountdownApp.swift b/LeCountdown/LeCountdownApp.swift index 24754ca..2070e07 100644 --- a/LeCountdown/LeCountdownApp.swift +++ b/LeCountdown/LeCountdownApp.swift @@ -74,7 +74,7 @@ struct LeCountdownApp: App { fileprivate func _onAppear() { -// Logger.log("Locale = \(Locale.preferredLanguages.first)") + Logger.log("preferredLanguages = \(String(describing: Locale.preferredLanguages))") Sound.computeSoundDurationsIfNecessary() diff --git a/LeCountdown/Views/PresetsView.swift b/LeCountdown/Views/PresetsView.swift index b39c0d2..fac267f 100644 --- a/LeCountdown/Views/PresetsView.swift +++ b/LeCountdown/Views/PresetsView.swift @@ -192,10 +192,6 @@ struct PresetsView: View { .font(.system(.title, weight: .heavy)) Spacer() }.frame(height: 40.0) - -// SeparatorView() -// Text("You can ask Siri to create and launch countdowns and stopwatches") -// .font(.callout) SeparatorView() Text("Presets") diff --git a/LeCountdown/Views/Reusable/TipView.swift b/LeCountdown/Views/Reusable/TipView.swift index b5a5210..f6a105c 100644 --- a/LeCountdown/Views/Reusable/TipView.swift +++ b/LeCountdown/Views/Reusable/TipView.swift @@ -17,7 +17,8 @@ struct TipView: View { HStack { Image(systemName: tip.pictoName) - Text(tip.localizedString).padding(.trailing) + Text(tip.localizedString) + .font(.footnote) Spacer() Image(systemName: "xmark.circle.fill") .padding(8.0) diff --git a/LeCountdown/en.lproj/SiriIntents.strings b/LeCountdown/en.lproj/SiriIntents.strings new file mode 100644 index 0000000..e69de29 diff --git a/LeCountdown/fr.lproj/Localizable.strings b/LeCountdown/fr.lproj/Localizable.strings index 9e69dab..4acbe91 100644 --- a/LeCountdown/fr.lproj/Localizable.strings +++ b/LeCountdown/fr.lproj/Localizable.strings @@ -223,6 +223,8 @@ /* No comment provided by engineer. */ "Yes" = "Oui"; +"You can add widget for your timers and countdowns by modifying your home or lock screen" = "You pouvez ajouter des widgets pour vos minuteurs et chronomètres en modifiant votre écran verrouillé ou votre page d'accueil"; + /* No comment provided by engineer. */ "You can ask Siri to create and launch countdowns and stopwatches" = "Vous pouvez demander à Siri de vous lancer les minuteurs et les chronos"; @@ -240,9 +242,11 @@ "Launch" = "Démarrer"; -"Launch Timer" = "Démarrer un compteur"; -"Launch timers and stopwatches" = "Démarre des minuteurs et chronos"; -"Timer" = "Compteur"; -"Starts immediately" = "Démarre immédiatement"; -"Launch ${timer}" = "Démarre ${timer}"; -"${timer} has been launched" = "${timer} a démarré"; +"Launch %@" = "Démarrer %@"; + +//"Launch Timer" = "Démarrer un compteur"; +//"Launch timers and stopwatches" = "Démarre des minuteurs et chronos"; +//"Timer" = "Compteur"; +//"Starts immediately" = "Démarre immédiatement"; +//"Launch ${timer}" = "Test> lance ${timer}"; +//"${timer} has been launched" = "${timer} a démarré lololol";