From 7962f082d3b1cd5ea4c438fba5ebd18e236853db Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 7 Mar 2022 22:21:37 +0800 Subject: [PATCH] (ctl)PrefWindow // +symbolInputEnabled. --- Source/WindowControllers/ctlPrefWindow.swift | 4 ++++ .../WindowNIBs/Base.lproj/frmPrefWindow.xib | 18 ++++++++++++++++++ .../WindowNIBs/en.lproj/frmPrefWindow.strings | 3 +++ .../WindowNIBs/ja.lproj/frmPrefWindow.strings | 3 +++ .../zh-Hans.lproj/frmPrefWindow.strings | 3 +++ .../zh-Hant.lproj/frmPrefWindow.strings | 4 ++++ 6 files changed, 35 insertions(+) diff --git a/Source/WindowControllers/ctlPrefWindow.swift b/Source/WindowControllers/ctlPrefWindow.swift index 705a9c9a..a24bba6d 100644 --- a/Source/WindowControllers/ctlPrefWindow.swift +++ b/Source/WindowControllers/ctlPrefWindow.swift @@ -174,6 +174,10 @@ extension RangeReplaceableCollection where Element: Hashable { mgrLangModel.setCNSEnabled(Preferences.cns11643Enabled) } + @IBAction func toggleSymbolInputEnabled(_ sender: Any) { + mgrLangModel.setSymbolEnabled(Preferences.symbolInputEnabled) + } + @IBAction func toggleTrad2KangXiAction(_ sender: Any) { if chkTrad2KangXi.state == .on && chkTrad2JISShinjitai.state == .on { Preferences.toggleShiftJISShinjitaiOutputEnabled() diff --git a/Source/WindowNIBs/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib b/Source/WindowNIBs/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib index 21379800..08134c55 100644 --- a/Source/WindowNIBs/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib +++ b/Source/WindowNIBs/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib @@ -598,11 +598,29 @@ + + + + diff --git a/Source/WindowNIBs/Source/WindowNIBs/en.lproj/frmPrefWindow.strings b/Source/WindowNIBs/Source/WindowNIBs/en.lproj/frmPrefWindow.strings index 69652d62..f1821d59 100644 --- a/Source/WindowNIBs/Source/WindowNIBs/en.lproj/frmPrefWindow.strings +++ b/Source/WindowNIBs/Source/WindowNIBs/en.lproj/frmPrefWindow.strings @@ -220,3 +220,6 @@ /* Class = "NSButtonCell"; title = "Space to +cycle candidates, Shift+Space to +cycle pages"; ObjectID = "dIN-TZ-67g"; */ "dIN-TZ-67g.title" = "Space to +cycle candidates, Shift+Space to +cycle pages"; + +/* Class = "NSButtonCell"; title = "Enable symbol input support (incl. certain emoji symbols)"; ObjectID = "hSv-LJ-Cq3"; */ +"hSv-LJ-Cq3.title" = "Enable symbol input support (incl. certain emoji symbols)"; diff --git a/Source/WindowNIBs/Source/WindowNIBs/ja.lproj/frmPrefWindow.strings b/Source/WindowNIBs/Source/WindowNIBs/ja.lproj/frmPrefWindow.strings index 1864b327..4d056e4b 100644 --- a/Source/WindowNIBs/Source/WindowNIBs/ja.lproj/frmPrefWindow.strings +++ b/Source/WindowNIBs/Source/WindowNIBs/ja.lproj/frmPrefWindow.strings @@ -220,3 +220,6 @@ /* Class = "NSButtonCell"; title = "Space to +cycle candidates, Shift+Space to +cycle pages"; ObjectID = "dIN-TZ-67g"; */ "dIN-TZ-67g.title" = "Shift+Space で次のページ、Space で次の候補文字を"; + +/* Class = "NSButtonCell"; title = "Enable symbol input support (incl. certain emoji symbols)"; ObjectID = "hSv-LJ-Cq3"; */ +"hSv-LJ-Cq3.title" = "僅かなる絵文字も含む符号入力サポートを起用"; diff --git a/Source/WindowNIBs/Source/WindowNIBs/zh-Hans.lproj/frmPrefWindow.strings b/Source/WindowNIBs/Source/WindowNIBs/zh-Hans.lproj/frmPrefWindow.strings index ba4c8b6e..3341201d 100644 --- a/Source/WindowNIBs/Source/WindowNIBs/zh-Hans.lproj/frmPrefWindow.strings +++ b/Source/WindowNIBs/Source/WindowNIBs/zh-Hans.lproj/frmPrefWindow.strings @@ -220,3 +220,6 @@ /* Class = "NSButtonCell"; title = "Space to +cycle candidates, Shift+Space to +cycle pages"; ObjectID = "dIN-TZ-67g"; */ "dIN-TZ-67g.title" = "Shift+Space 换下一页,Space 换选下一个候选字。"; + +/* Class = "NSButtonCell"; title = "Enable symbol input support (incl. certain emoji symbols)"; ObjectID = "hSv-LJ-Cq3"; */ +"hSv-LJ-Cq3.title" = "启用包括少许绘文字在内的符号输入支援"; diff --git a/Source/WindowNIBs/Source/WindowNIBs/zh-Hant.lproj/frmPrefWindow.strings b/Source/WindowNIBs/Source/WindowNIBs/zh-Hant.lproj/frmPrefWindow.strings index 6619d71b..a114c243 100644 --- a/Source/WindowNIBs/Source/WindowNIBs/zh-Hant.lproj/frmPrefWindow.strings +++ b/Source/WindowNIBs/Source/WindowNIBs/zh-Hant.lproj/frmPrefWindow.strings @@ -220,3 +220,7 @@ /* Class = "NSButtonCell"; title = "Space to +cycle candidates, Shift+Space to +cycle pages"; ObjectID = "dIN-TZ-67g"; */ "dIN-TZ-67g.title" = "Shift+Space 換下一頁,Space 換選下一個候選字"; + +/* Class = "NSButtonCell"; title = "Enable symbol input support (incl. certain emoji symbols)"; ObjectID = "hSv-LJ-Cq3"; */ +"hSv-LJ-Cq3.title" = "啟用包括少許繪文字在內的符號輸入支援"; +