Various fixes

release
Laurent 3 years ago
parent cca8ba643d
commit 6949d53596
  1. 2
      LeCountdown/AppDelegate.swift
  2. BIN
      LeCountdown/Assets.xcassets/AppIcon.appiconset/icon.png
  3. 4
      LeCountdown/Conductor.swift
  4. 2
      LeCountdown/LeCountdownApp.swift
  5. 4
      LeCountdown/Views/PresetsView.swift
  6. 3
      LeCountdown/Views/Reusable/TipView.swift
  7. 0
      LeCountdown/en.lproj/SiriIntents.strings
  8. 16
      LeCountdown/fr.lproj/Localizable.strings

@ -12,8 +12,6 @@ class AppDelegate : NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
Logger.log("didfinish > countdowns count = \(Conductor.maestro.currentCountdowns.count)")
UNUserNotificationCenter.current().delegate = self UNUserNotificationCenter.current().delegate = self
Conductor.maestro.cleanup() Conductor.maestro.cleanup()
return true return true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 16 KiB

@ -208,10 +208,10 @@ class Conductor: ObservableObject {
if let coolSound { if let coolSound {
self.playSound(coolSound) self.playSound(coolSound)
AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate))
} else { } else {
print("No sound to play!") print("No sound to play!")
} }
AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate))
} }
func playSound(_ sound: Sound) { func playSound(_ sound: Sound) {
@ -236,7 +236,7 @@ class Conductor: ObservableObject {
fileprivate func _createTimerIntent(_ timer: AbstractTimer) { fileprivate func _createTimerIntent(_ timer: AbstractTimer) {
let intent = LaunchTimerIntent() 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.suggestedInvocationPhrase = String(format: invocationPhrase, timer.displayName)
intent.timer = TimerIdentifier(identifier: timer.stringId, display: timer.displayName) intent.timer = TimerIdentifier(identifier: timer.stringId, display: timer.displayName)

@ -74,7 +74,7 @@ struct LeCountdownApp: App {
fileprivate func _onAppear() { fileprivate func _onAppear() {
// Logger.log("Locale = \(Locale.preferredLanguages.first)") Logger.log("preferredLanguages = \(String(describing: Locale.preferredLanguages))")
Sound.computeSoundDurationsIfNecessary() Sound.computeSoundDurationsIfNecessary()

@ -192,10 +192,6 @@ struct PresetsView: View {
.font(.system(.title, weight: .heavy)) .font(.system(.title, weight: .heavy))
Spacer() Spacer()
}.frame(height: 40.0) }.frame(height: 40.0)
// SeparatorView()
// Text("You can ask Siri to create and launch countdowns and stopwatches")
// .font(.callout)
SeparatorView() SeparatorView()
Text("Presets") Text("Presets")

@ -17,7 +17,8 @@ struct TipView: View {
HStack { HStack {
Image(systemName: tip.pictoName) Image(systemName: tip.pictoName)
Text(tip.localizedString).padding(.trailing) Text(tip.localizedString)
.font(.footnote)
Spacer() Spacer()
Image(systemName: "xmark.circle.fill") Image(systemName: "xmark.circle.fill")
.padding(8.0) .padding(8.0)

@ -223,6 +223,8 @@
/* No comment provided by engineer. */ /* No comment provided by engineer. */
"Yes" = "Oui"; "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. */ /* 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"; "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" = "Démarrer";
"Launch Timer" = "Démarrer un compteur"; "Launch %@" = "Démarrer %@";
"Launch timers and stopwatches" = "Démarre des minuteurs et chronos";
"Timer" = "Compteur"; //"Launch Timer" = "Démarrer un compteur";
"Starts immediately" = "Démarre immédiatement"; //"Launch timers and stopwatches" = "Démarre des minuteurs et chronos";
"Launch ${timer}" = "Démarre ${timer}"; //"Timer" = "Compteur";
"${timer} has been launched" = "${timer} a démarré"; //"Starts immediately" = "Démarre immédiatement";
//"Launch ${timer}" = "Test> lance ${timer}";
//"${timer} has been launched" = "${timer} a démarré lololol";

Loading…
Cancel
Save