Skip to content

Commit c1d1035

Browse files
committed
✨ Optimize, remove stale localization keys
1 parent 7b2f961 commit c1d1035

File tree

3 files changed

+3
-173
lines changed

3 files changed

+3
-173
lines changed

Loop/Core/Observers/KeybindTrigger.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,7 @@ final class KeybindTrigger {
207207
if allPressedKeys.isEmpty {
208208
doubleClickTimer.handleKeyUp()
209209
}
210-
211-
if isLoopOpen {
212-
closeLoop(forceClose: false)
213-
}
210+
closeLoop(forceClose: false)
214211
}
215212
}
216213

Loop/Localizable.xcstrings

Lines changed: 1 addition & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -21523,9 +21523,6 @@
2152321523
"Please include at least one modifier key." : {
2152421524
"comment" : "An error message displayed when a custom keybind is created but does not include at least one modifier key.",
2152521525
"isCommentAutoGenerated" : true
21526-
},
21527-
"Please include at least one non-modifier key." : {
21528-
2152921526
},
2153021527
"Position" : {
2153121528
"localizations" : {
@@ -23590,88 +23587,6 @@
2359023587
}
2359123588
}
2359223589
},
23593-
"Restart to complete" : {
23594-
"localizations" : {
23595-
"ar" : {
23596-
"stringUnit" : {
23597-
"state" : "needs_review",
23598-
"value" : "Restart to complete"
23599-
}
23600-
},
23601-
"de" : {
23602-
"stringUnit" : {
23603-
"state" : "translated",
23604-
"value" : "Neustarten, um abzuschließen"
23605-
}
23606-
},
23607-
"en" : {
23608-
"stringUnit" : {
23609-
"state" : "translated",
23610-
"value" : "Restart to complete"
23611-
}
23612-
},
23613-
"es" : {
23614-
"stringUnit" : {
23615-
"state" : "translated",
23616-
"value" : "Reiniciar para completar"
23617-
}
23618-
},
23619-
"fr" : {
23620-
"stringUnit" : {
23621-
"state" : "translated",
23622-
"value" : "Redémarrer pour terminer"
23623-
}
23624-
},
23625-
"it" : {
23626-
"stringUnit" : {
23627-
"state" : "translated",
23628-
"value" : "Riavvia per completare"
23629-
}
23630-
},
23631-
"ja" : {
23632-
"stringUnit" : {
23633-
"state" : "translated",
23634-
"value" : "再起動して完了"
23635-
}
23636-
},
23637-
"ko" : {
23638-
"stringUnit" : {
23639-
"state" : "translated",
23640-
"value" : "완료하려면 다시 시작하세요"
23641-
}
23642-
},
23643-
"nl-BE" : {
23644-
"stringUnit" : {
23645-
"state" : "translated",
23646-
"value" : "Herstarten om te voltooien"
23647-
}
23648-
},
23649-
"pt-BR" : {
23650-
"stringUnit" : {
23651-
"state" : "translated",
23652-
"value" : "Reiniciar para concluir"
23653-
}
23654-
},
23655-
"ru" : {
23656-
"stringUnit" : {
23657-
"state" : "translated",
23658-
"value" : "Перезагрузить"
23659-
}
23660-
},
23661-
"zh-Hans" : {
23662-
"stringUnit" : {
23663-
"state" : "translated",
23664-
"value" : "重启以完成更新"
23665-
}
23666-
},
23667-
"zh-Hant" : {
23668-
"stringUnit" : {
23669-
"state" : "translated",
23670-
"value" : "重新啟動以完成"
23671-
}
23672-
}
23673-
}
23674-
},
2367523590
"Restore window frame on drag" : {
2367623591
"localizations" : {
2367723592
"ar" : {
@@ -30113,7 +30028,7 @@
3011330028
}
3011430029
},
3011530030
"Unlink Trigger Key" : {
30116-
"comment" : "A context menu option that unlinks a keybind from its trigger key.",
30031+
"comment" : "A menu item that removes the trigger key from the keybind.",
3011730032
"isCommentAutoGenerated" : true
3011830033
},
3011930034
"Unstash" : {
@@ -32100,88 +32015,6 @@
3210032015
}
3210132016
}
3210232017
},
32103-
"You can only use up to %lld keys in a keybind, including the trigger key." : {
32104-
"localizations" : {
32105-
"ar" : {
32106-
"stringUnit" : {
32107-
"state" : "translated",
32108-
"value" : "يمكنك استخدام حتى %lld مفاتيح في ربط المفتاح، بما في ذلك مفتاح التشغيل."
32109-
}
32110-
},
32111-
"de" : {
32112-
"stringUnit" : {
32113-
"state" : "translated",
32114-
"value" : "Du kannst in einem Tastenkürzel nur bis zu %lld Tasten verwenden, einschließlich der Aktivierungstaste."
32115-
}
32116-
},
32117-
"en" : {
32118-
"stringUnit" : {
32119-
"state" : "translated",
32120-
"value" : "You can only use up to %lld keys in a keybind, including the trigger key."
32121-
}
32122-
},
32123-
"es" : {
32124-
"stringUnit" : {
32125-
"state" : "translated",
32126-
"value" : "Solo se pueden usar hasta %lld teclas en una combinación, incluyendo la tecla de activación"
32127-
}
32128-
},
32129-
"fr" : {
32130-
"stringUnit" : {
32131-
"state" : "translated",
32132-
"value" : "Vous pouvez utiliser un maximum de %lld touches par raccourci, touches d'activation incluses."
32133-
}
32134-
},
32135-
"it" : {
32136-
"stringUnit" : {
32137-
"state" : "translated",
32138-
"value" : "Puoi usare un massimo di %lld tasti nelle scorciatoie, compresi i tasti di attivazione."
32139-
}
32140-
},
32141-
"ja" : {
32142-
"stringUnit" : {
32143-
"state" : "translated",
32144-
"value" : "キー設定では、トリガーキーも含めて %lld キーまで使えます。"
32145-
}
32146-
},
32147-
"ko" : {
32148-
"stringUnit" : {
32149-
"state" : "translated",
32150-
"value" : "트리거 키를 포함하여 키바인드에는 최대 %lld 개의 키만 사용할 수 있습니다."
32151-
}
32152-
},
32153-
"nl-BE" : {
32154-
"stringUnit" : {
32155-
"state" : "translated",
32156-
"value" : "Je kunt maximaal %lld toetsen gebruiken in een toetscombinatie, inclusief de activatie knop."
32157-
}
32158-
},
32159-
"pt-BR" : {
32160-
"stringUnit" : {
32161-
"state" : "translated",
32162-
"value" : "Você pode usar até %lld teclas em um atalho, incluindo a tecla de gatilho."
32163-
}
32164-
},
32165-
"ru" : {
32166-
"stringUnit" : {
32167-
"state" : "translated",
32168-
"value" : "Вы можете использовать до %lld клавиш в этом сочетании, включая клавишу активации."
32169-
}
32170-
},
32171-
"zh-Hans" : {
32172-
"stringUnit" : {
32173-
"state" : "translated",
32174-
"value" : "在一个快捷键中,你最多只能使用%lld个按键(包括触发键)。"
32175-
}
32176-
},
32177-
"zh-Hant" : {
32178-
"stringUnit" : {
32179-
"state" : "translated",
32180-
"value" : "在一個按鍵綁定中,你最多只能使用%lld個按鍵(包括觸發鍵)。"
32181-
}
32182-
}
32183-
}
32184-
},
3218532018
"You can only use up to %lld keys in a keybind." : {
3218632019
"comment" : "An error message displayed when a user tries to create a keybind with more than the maximum number of keys allowed. The placeholder is replaced with the actual number of keys allowed.",
3218732020
"isCommentAutoGenerated" : true

Loop/Settings Window/Settings/Keybinds/KeybindItemView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ struct KeybindItemView: View {
253253
Button("Unlink Trigger Key", action: switchToBypassMode)
254254
}
255255

256-
Button("Clear Keybind") { clearKeybind() }
256+
Button("Clear Keybind", action: clearKeybind)
257257
}
258258
}
259259
}

0 commit comments

Comments
 (0)