From 2e5f15581fefb821d4b366e57d817be8bf12aa58 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 23 May 2024 23:52:46 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20missing=20localization=20for=20the=20?= =?UTF-8?q?=E2=80=9CSpace=E2=80=9D=20key=20shortcut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #172 --- .../KeyboardShortcuts/Localization/ar.lproj/Localizable.strings | 1 + .../KeyboardShortcuts/Localization/cs.lproj/Localizable.strings | 1 + .../KeyboardShortcuts/Localization/de.lproj/Localizable.strings | 1 + .../KeyboardShortcuts/Localization/en.lproj/Localizable.strings | 1 + .../KeyboardShortcuts/Localization/es.lproj/Localizable.strings | 1 + .../KeyboardShortcuts/Localization/fr.lproj/Localizable.strings | 1 + .../KeyboardShortcuts/Localization/hu.lproj/Localizable.strings | 1 + .../KeyboardShortcuts/Localization/ja.lproj/Localizable.strings | 1 + .../KeyboardShortcuts/Localization/ko.lproj/Localizable.strings | 1 + .../KeyboardShortcuts/Localization/nl.lproj/Localizable.strings | 1 + .../Localization/pt-BR.lproj/Localizable.strings | 1 + .../KeyboardShortcuts/Localization/ru.lproj/Localizable.strings | 1 + .../KeyboardShortcuts/Localization/sk.lproj/Localizable.strings | 1 + .../Localization/zh-Hans.lproj/Localizable.strings | 1 + .../Localization/zh-TW.lproj/Localizable.strings | 1 + Sources/KeyboardShortcuts/Shortcut.swift | 2 +- 16 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Sources/KeyboardShortcuts/Localization/ar.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/ar.lproj/Localizable.strings index 0624561f..718f38f7 100644 --- a/Sources/KeyboardShortcuts/Localization/ar.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/ar.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "لا يمكن استخدام اختصار لوحة المفاتيح هذا لأنه مستخدم مسبقاً على مستوى النظام."; "keyboard_shortcuts_can_be_changed" = "يمكن تغيير معظم اختصارات لوحة المفاتيح على مستوى النظام في “تفضيلات النظام > لوحة المفاتيح > الاختصارات ”."; "ok" = "موافق"; +"space_key" = "مسافة"; diff --git a/Sources/KeyboardShortcuts/Localization/cs.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/cs.lproj/Localizable.strings index 56a3d39c..44b502fd 100644 --- a/Sources/KeyboardShortcuts/Localization/cs.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/cs.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "Tuto zkratku nelze použít, protože už ji používá systém."; "keyboard_shortcuts_can_be_changed" = "Většinu systémových zkratek můžete změnit v „Nastavení systému › Klávesnice › Klávesové zkratky“."; "ok" = "OK"; +"space_key" = "Mezera"; diff --git a/Sources/KeyboardShortcuts/Localization/de.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/de.lproj/Localizable.strings index 3468b3ca..043a6086 100644 --- a/Sources/KeyboardShortcuts/Localization/de.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/de.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "Dieses Tastaturkürzel kann nicht verwendet werden, da es bereits systemweit verwendet wird."; "keyboard_shortcuts_can_be_changed" = "Die meisten systemweiten Tastaturkürzel können unter „Systemeinstellungen › Tastatur › Tastaturkurzbefehle“ geändert werden."; "ok" = "OK"; +"space_key" = "Leer"; diff --git a/Sources/KeyboardShortcuts/Localization/en.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/en.lproj/Localizable.strings index 15a15e1e..20b16c25 100644 --- a/Sources/KeyboardShortcuts/Localization/en.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/en.lproj/Localizable.strings @@ -5,3 +5,4 @@ "keyboard_shortcuts_can_be_changed" = "Most system-wide keyboard shortcuts can be changed in “System Settings › Keyboard › Keyboard Shortcuts”."; "force_use_shortcut" = "Use Anyway"; "ok" = "OK"; +"space_key" = "Space"; diff --git a/Sources/KeyboardShortcuts/Localization/es.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/es.lproj/Localizable.strings index e82f7efb..4b0567ba 100644 --- a/Sources/KeyboardShortcuts/Localization/es.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/es.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "Este atajo de teclado no se puede utilizar ya que está siendo utilizado por un atajo del sistema operativo."; "keyboard_shortcuts_can_be_changed" = "La mayoría de los atajos de teclado del sistema operativo pueden ser modificados en “Configuración del sistema › Teclado › Atajos de teclado“."; "ok" = "Aceptar"; +"space_key" = "Espacio"; diff --git a/Sources/KeyboardShortcuts/Localization/fr.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/fr.lproj/Localizable.strings index ceee5878..024c141f 100644 --- a/Sources/KeyboardShortcuts/Localization/fr.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/fr.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "Ce raccourci ne peut pas être utilisé car il s'agit d'un raccourci déjà présent dans le système."; "keyboard_shortcuts_can_be_changed" = "La plupart des raccourcis clavier de l'ensemble du système peuvent être modifiés en “Réglages du système… › Clavier › Raccourcis clavier…”."; "ok" = "OK"; +"space_key" = "Espace"; diff --git a/Sources/KeyboardShortcuts/Localization/hu.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/hu.lproj/Localizable.strings index 869345a6..960f0b64 100644 --- a/Sources/KeyboardShortcuts/Localization/hu.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/hu.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "Ez a billentyűparancs nem használható mert már egy rendszerszintü billentyűparancs."; "keyboard_shortcuts_can_be_changed" = "A legtöbb rendszerszintü billentyűparancsot a “Rendszerbeállítások › Billentyűzet › Billentyűparancsok“ menüben meg lehet változtatni"; "ok" = "OK"; +"space_key" = "Szóköz"; diff --git a/Sources/KeyboardShortcuts/Localization/ja.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/ja.lproj/Localizable.strings index 780d6a99..785a73f6 100644 --- a/Sources/KeyboardShortcuts/Localization/ja.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/ja.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "このショートカットキーは既にシステムで使われており使えません。"; "keyboard_shortcuts_can_be_changed" = "システムで設定されているショートカットキーは“システム設定 › キーボード › キーボードショートカット”で変更できます。"; "ok" = "OK"; +"space_key" = "スペース"; diff --git a/Sources/KeyboardShortcuts/Localization/ko.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/ko.lproj/Localizable.strings index 84c970e4..6fbe925d 100644 --- a/Sources/KeyboardShortcuts/Localization/ko.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/ko.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "이 키보드 단축키는 이미 시스템상에서 사용되고 있으므로 등록할 수 없습니다."; "keyboard_shortcuts_can_be_changed" = "대부분의 시스템 키보드 단축키는 “시스템 설정 › 키보드 › 키보드 단축키”에서 변경 가능합니다."; "ok" = "확인"; +"space_key" = "빈칸"; diff --git a/Sources/KeyboardShortcuts/Localization/nl.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/nl.lproj/Localizable.strings index 343e4aaa..32e71d18 100644 --- a/Sources/KeyboardShortcuts/Localization/nl.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/nl.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "Deze toetscombinatie kan niet worden gebruikt omdat hij al door het systeem gebruikt wordt."; "keyboard_shortcuts_can_be_changed" = "De meeste systeem toetscombinaties kunnen onder “Systeeminstellingen… > Toetsenbord > Toetscombinaties…” veranderd worden."; "ok" = "OK"; +"space_key" = "spatie"; diff --git a/Sources/KeyboardShortcuts/Localization/pt-BR.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/pt-BR.lproj/Localizable.strings index 0f1bbe6e..6e866f39 100644 --- a/Sources/KeyboardShortcuts/Localization/pt-BR.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/pt-BR.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "Este atalho não pode ser usado porque ele já é usado por um atalho do sistema."; "keyboard_shortcuts_can_be_changed" = "A maioria dos atalhos do sistema podem ser alterados em “Ajustes do Sistema › Teclado › Atalhos de Teclado”."; "ok" = "OK"; +"space_key" = "Espaço"; diff --git a/Sources/KeyboardShortcuts/Localization/ru.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/ru.lproj/Localizable.strings index f3b21236..1ca91f1b 100644 --- a/Sources/KeyboardShortcuts/Localization/ru.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/ru.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "Это сочетание клавиш нельзя использовать, поскольку оно является системным."; "keyboard_shortcuts_can_be_changed" = "Большинство системных сочетаний клавиш можно изменить в «Системные настройки › Клавиатура › Сочетания клавиш»."; "ok" = "OK"; +"space_key" = "Пробел"; diff --git a/Sources/KeyboardShortcuts/Localization/sk.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/sk.lproj/Localizable.strings index cac83a36..917161d9 100644 --- a/Sources/KeyboardShortcuts/Localization/sk.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/sk.lproj/Localizable.strings @@ -5,3 +5,4 @@ "keyboard_shortcuts_can_be_changed" = "Väčšinu klávesových skratiek pre celý systém je možné zmeniť v časti “Systémové nastavenia › Klávesnica › Klávesové skratky”."; "force_use_shortcut" = "Napriek tomu použiť"; "ok" = "OK"; +"space_key" = "Medzerník"; diff --git a/Sources/KeyboardShortcuts/Localization/zh-Hans.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/zh-Hans.lproj/Localizable.strings index f71305b6..2e4925e4 100644 --- a/Sources/KeyboardShortcuts/Localization/zh-Hans.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/zh-Hans.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "当前快捷键无法使用,因为它已被用作系统快捷键。"; "keyboard_shortcuts_can_be_changed" = "可以在 “系统设置 › 键盘 › 键盘快捷键” 中更改大多数系统快捷键。"; "ok" = "好"; +"space_key" = "空格"; diff --git a/Sources/KeyboardShortcuts/Localization/zh-TW.lproj/Localizable.strings b/Sources/KeyboardShortcuts/Localization/zh-TW.lproj/Localizable.strings index 88b4eb76..0d207d8d 100644 --- a/Sources/KeyboardShortcuts/Localization/zh-TW.lproj/Localizable.strings +++ b/Sources/KeyboardShortcuts/Localization/zh-TW.lproj/Localizable.strings @@ -4,3 +4,4 @@ "keyboard_shortcut_used_by_system" = "此快速鍵無法使用,因為它已被系統使用。"; "keyboard_shortcuts_can_be_changed" = "可以在「系統設定 › 鍵盤 › 鍵盤快速鍵」中更改大多數的系統快速鍵。"; "ok" = "好"; +"space_key" = "空格"; diff --git a/Sources/KeyboardShortcuts/Shortcut.swift b/Sources/KeyboardShortcuts/Shortcut.swift index a9e954de..26cbbee7 100644 --- a/Sources/KeyboardShortcuts/Shortcut.swift +++ b/Sources/KeyboardShortcuts/Shortcut.swift @@ -161,7 +161,7 @@ private let keyToCharacterMapping: [KeyboardShortcuts.Key: String] = [ .escape: "⎋", .help: "?⃝", .home: "↖", - .space: "Space", // This matches what macOS uses. + .space: "space_key".localized, // This matches what macOS uses. .tab: "⇥", .pageUp: "⇞", .pageDown: "⇟",