From 4b8694764b0c13f02c60d38a63754f8bf5ec8266 Mon Sep 17 00:00:00 2001 From: Serhii Bykov Date: Thu, 6 Aug 2026 14:03:19 +0200 Subject: [PATCH] fix(menu): localize file menu items --- Apps/Keyty/Sources/Keyty/App/Shell/MainMenu.swift | 4 ++-- .../Sources/Keyty/Resources/de.lproj/Localizable.strings | 2 ++ .../Sources/Keyty/Resources/en.lproj/Localizable.strings | 2 ++ .../Sources/Keyty/Resources/es.lproj/Localizable.strings | 2 ++ .../Sources/Keyty/Resources/fr.lproj/Localizable.strings | 2 ++ .../Sources/Keyty/Resources/ja.lproj/Localizable.strings | 2 ++ .../Sources/Keyty/Resources/uk.lproj/Localizable.strings | 2 ++ .../Sources/Keyty/Resources/zh-Hans.lproj/Localizable.strings | 2 ++ 8 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Apps/Keyty/Sources/Keyty/App/Shell/MainMenu.swift b/Apps/Keyty/Sources/Keyty/App/Shell/MainMenu.swift index 60bb341..7652e96 100644 --- a/Apps/Keyty/Sources/Keyty/App/Shell/MainMenu.swift +++ b/Apps/Keyty/Sources/Keyty/App/Shell/MainMenu.swift @@ -58,8 +58,8 @@ private extension MenuController { } private func makeFileMenu() -> NSMenu { - let menu = NSMenu(title: "File") - let close = NSMenuItem(title: "Close Window", action: #selector(NSWindow.performClose(_:)), keyEquivalent: "w") + let menu = NSMenu(title: L10n.MainMenu.file) + let close = NSMenuItem(title: L10n.MainMenu.closeWindow, action: #selector(NSWindow.performClose(_:)), keyEquivalent: "w") close.keyEquivalentModifierMask = [.command] menu.addItem(close) return menu diff --git a/Apps/Keyty/Sources/Keyty/Resources/de.lproj/Localizable.strings b/Apps/Keyty/Sources/Keyty/Resources/de.lproj/Localizable.strings index f375d23..0967fe1 100644 --- a/Apps/Keyty/Sources/Keyty/Resources/de.lproj/Localizable.strings +++ b/Apps/Keyty/Sources/Keyty/Resources/de.lproj/Localizable.strings @@ -1,5 +1,7 @@ /* Main menu */ "main_menu.about" = "Über %@"; +"main_menu.close_window" = "Fenster schließen"; +"main_menu.file" = "Ablage"; "main_menu.settings" = "Einstellungen…"; "main_menu.quit" = "%@ beenden"; diff --git a/Apps/Keyty/Sources/Keyty/Resources/en.lproj/Localizable.strings b/Apps/Keyty/Sources/Keyty/Resources/en.lproj/Localizable.strings index 0621be8..a9180b1 100644 --- a/Apps/Keyty/Sources/Keyty/Resources/en.lproj/Localizable.strings +++ b/Apps/Keyty/Sources/Keyty/Resources/en.lproj/Localizable.strings @@ -1,5 +1,7 @@ /* Main menu */ "main_menu.about" = "About %@"; +"main_menu.close_window" = "Close Window"; +"main_menu.file" = "File"; "main_menu.settings" = "Settings…"; "main_menu.quit" = "Quit %@"; diff --git a/Apps/Keyty/Sources/Keyty/Resources/es.lproj/Localizable.strings b/Apps/Keyty/Sources/Keyty/Resources/es.lproj/Localizable.strings index c8c1873..66787e1 100644 --- a/Apps/Keyty/Sources/Keyty/Resources/es.lproj/Localizable.strings +++ b/Apps/Keyty/Sources/Keyty/Resources/es.lproj/Localizable.strings @@ -1,5 +1,7 @@ /* Main menu */ "main_menu.about" = "Acerca de %@"; +"main_menu.close_window" = "Cerrar ventana"; +"main_menu.file" = "Archivo"; "main_menu.settings" = "Ajustes…"; "main_menu.quit" = "Salir de %@"; diff --git a/Apps/Keyty/Sources/Keyty/Resources/fr.lproj/Localizable.strings b/Apps/Keyty/Sources/Keyty/Resources/fr.lproj/Localizable.strings index a5d729b..d179b9b 100644 --- a/Apps/Keyty/Sources/Keyty/Resources/fr.lproj/Localizable.strings +++ b/Apps/Keyty/Sources/Keyty/Resources/fr.lproj/Localizable.strings @@ -1,5 +1,7 @@ /* Main menu */ "main_menu.about" = "À propos de %@"; +"main_menu.close_window" = "Fermer la fenêtre"; +"main_menu.file" = "Fichier"; "main_menu.settings" = "Réglages…"; "main_menu.quit" = "Quitter %@"; diff --git a/Apps/Keyty/Sources/Keyty/Resources/ja.lproj/Localizable.strings b/Apps/Keyty/Sources/Keyty/Resources/ja.lproj/Localizable.strings index 13d293e..1e4abfe 100644 --- a/Apps/Keyty/Sources/Keyty/Resources/ja.lproj/Localizable.strings +++ b/Apps/Keyty/Sources/Keyty/Resources/ja.lproj/Localizable.strings @@ -1,5 +1,7 @@ /* Main menu */ "main_menu.about" = "%@について"; +"main_menu.close_window" = "ウインドウを閉じる"; +"main_menu.file" = "ファイル"; "main_menu.settings" = "設定…"; "main_menu.quit" = "%@を終了"; diff --git a/Apps/Keyty/Sources/Keyty/Resources/uk.lproj/Localizable.strings b/Apps/Keyty/Sources/Keyty/Resources/uk.lproj/Localizable.strings index 063f484..c4120f7 100644 --- a/Apps/Keyty/Sources/Keyty/Resources/uk.lproj/Localizable.strings +++ b/Apps/Keyty/Sources/Keyty/Resources/uk.lproj/Localizable.strings @@ -1,5 +1,7 @@ /* Main menu */ "main_menu.about" = "Про %@"; +"main_menu.close_window" = "Закрити вікно"; +"main_menu.file" = "Файл"; "main_menu.settings" = "Параметри…"; "main_menu.quit" = "Завершити роботу %@"; diff --git a/Apps/Keyty/Sources/Keyty/Resources/zh-Hans.lproj/Localizable.strings b/Apps/Keyty/Sources/Keyty/Resources/zh-Hans.lproj/Localizable.strings index a868cc9..081fac9 100644 --- a/Apps/Keyty/Sources/Keyty/Resources/zh-Hans.lproj/Localizable.strings +++ b/Apps/Keyty/Sources/Keyty/Resources/zh-Hans.lproj/Localizable.strings @@ -1,5 +1,7 @@ /* Main menu */ "main_menu.about" = "关于 %@"; +"main_menu.close_window" = "关闭窗口"; +"main_menu.file" = "文件"; "main_menu.settings" = "设置…"; "main_menu.quit" = "退出 %@";