diff --git a/Source/Modules/UIModules/PrefUI/suiPrefPaneDictionary.swift b/Source/Modules/UIModules/PrefUI/suiPrefPaneDictionary.swift index 75a228da..4e140760 100644 --- a/Source/Modules/UIModules/PrefUI/suiPrefPaneDictionary.swift +++ b/Source/Modules/UIModules/PrefUI/suiPrefPaneDictionary.swift @@ -19,6 +19,8 @@ struct suiPrefPaneDictionary: View { ?? LMMgr.dataFolderPath(isDefaultFolder: true) @State private var selAutoReloadUserData: Bool = UserDefaults.standard.bool( forKey: UserDef.kShouldAutoReloadUserDataFiles.rawValue) + @State private var selOnlyLoadFactoryLangModelsIfNeeded: Bool = UserDefaults.standard.bool( + forKey: UserDef.kOnlyLoadFactoryLangModelsIfNeeded.rawValue) @State private var selEnableCNS11643: Bool = UserDefaults.standard.bool(forKey: UserDef.kCNS11643Enabled.rawValue) @State private var selEnableSymbolInputSupport: Bool = UserDefaults.standard.bool( forKey: UserDef.kSymbolInputEnabled.rawValue) @@ -120,6 +122,12 @@ struct suiPrefPaneDictionary: View { ).controlSize(.small) } Preferences.Section(title: "") { + Toggle( + LocalizedStringKey("Only load factory language models if needed"), + isOn: $selOnlyLoadFactoryLangModelsIfNeeded.onChange { + PrefMgr.shared.onlyLoadFactoryLangModelsIfNeeded = selOnlyLoadFactoryLangModelsIfNeeded + } + ) Toggle( LocalizedStringKey("Enable CNS11643 Support (2022-08-02)"), isOn: $selEnableCNS11643.onChange { diff --git a/Source/Resources/Base.lproj/Localizable.strings b/Source/Resources/Base.lproj/Localizable.strings index c357bc1e..7c2d6817 100644 --- a/Source/Resources/Base.lproj/Localizable.strings +++ b/Source/Resources/Base.lproj/Localizable.strings @@ -194,6 +194,7 @@ "Misc Settings:" = "Misc Settings:"; "MiTAC" = "MiTAC"; "Note: The “Delete ⌫” key on Mac keyboard is named as “BackSpace ⌫” here in order to distinguish the real “Delete ⌦” key from full-sized desktop keyboards. If you want to use the real “Delete ⌦” key on a Mac keyboard with no numpad equipped, you have to press “Fn+⌫” instead." = "Note: The “Delete ⌫” key on Mac keyboard is named as “BackSpace ⌫” here in order to distinguish the real “Delete ⌦” key from full-sized desktop keyboards. If you want to use the real “Delete ⌦” key on a Mac keyboard with no numpad equipped, you have to press “Fn+⌫” instead."; +"Only load factory language models if needed" = "Only load factory language models if needed"; "Only override the intonation of the previous reading if different" = "Only override the intonation of the previous reading if different"; "Only use this with known Chromium-based browsers" = "Only use this with known Chromium-based browsers"; "Output Settings:" = "Output Settings:"; diff --git a/Source/Resources/en.lproj/Localizable.strings b/Source/Resources/en.lproj/Localizable.strings index c357bc1e..7c2d6817 100644 --- a/Source/Resources/en.lproj/Localizable.strings +++ b/Source/Resources/en.lproj/Localizable.strings @@ -194,6 +194,7 @@ "Misc Settings:" = "Misc Settings:"; "MiTAC" = "MiTAC"; "Note: The “Delete ⌫” key on Mac keyboard is named as “BackSpace ⌫” here in order to distinguish the real “Delete ⌦” key from full-sized desktop keyboards. If you want to use the real “Delete ⌦” key on a Mac keyboard with no numpad equipped, you have to press “Fn+⌫” instead." = "Note: The “Delete ⌫” key on Mac keyboard is named as “BackSpace ⌫” here in order to distinguish the real “Delete ⌦” key from full-sized desktop keyboards. If you want to use the real “Delete ⌦” key on a Mac keyboard with no numpad equipped, you have to press “Fn+⌫” instead."; +"Only load factory language models if needed" = "Only load factory language models if needed"; "Only override the intonation of the previous reading if different" = "Only override the intonation of the previous reading if different"; "Only use this with known Chromium-based browsers" = "Only use this with known Chromium-based browsers"; "Output Settings:" = "Output Settings:"; diff --git a/Source/Resources/ja.lproj/Localizable.strings b/Source/Resources/ja.lproj/Localizable.strings index 3b4f2c45..aa044c38 100644 --- a/Source/Resources/ja.lproj/Localizable.strings +++ b/Source/Resources/ja.lproj/Localizable.strings @@ -194,6 +194,7 @@ "Misc Settings:" = "他の設定:"; "MiTAC" = "神通配列"; "Note: The “Delete ⌫” key on Mac keyboard is named as “BackSpace ⌫” here in order to distinguish the real “Delete ⌦” key from full-sized desktop keyboards. If you want to use the real “Delete ⌦” key on a Mac keyboard with no numpad equipped, you have to press “Fn+⌫” instead." = "ご注意:Mac キーボードの「Delete ⌫」キーはここで「BackSpace ⌫」と呼ばれ、それはパソコンの常識としての本物の「Delete ⌦」と区別するためである。もし、テンキーの付いていない Mac キーボードで本物の「Delete ⌦」を使いたければ、代わりに「Fn+⌫」をご使用ください。"; +"Only load factory language models if needed" = "必要性を判断してから内蔵辞書を読み込む"; "Only override the intonation of the previous reading if different" = "カーソルの後部の音読みの異なる音調だけを上書きする"; "Only use this with known Chromium-based browsers" = "有名なる Chromium 系ブラウザーだけに、この装置を起用"; "Output Settings:" = "出力設定:"; diff --git a/Source/Resources/zh-Hans.lproj/Localizable.strings b/Source/Resources/zh-Hans.lproj/Localizable.strings index 208ac07e..740f0751 100644 --- a/Source/Resources/zh-Hans.lproj/Localizable.strings +++ b/Source/Resources/zh-Hans.lproj/Localizable.strings @@ -194,6 +194,7 @@ "Misc Settings:" = "杂项:"; "MiTAC" = "神通排列"; "Note: The “Delete ⌫” key on Mac keyboard is named as “BackSpace ⌫” here in order to distinguish the real “Delete ⌦” key from full-sized desktop keyboards. If you want to use the real “Delete ⌦” key on a Mac keyboard with no numpad equipped, you have to press “Fn+⌫” instead." = "注意:Mac 键盘的「Delete ⌫」键在此被称作「BackSpace 退格键 ⌫」以与 PC 键盘的真正的「Delete ⌦」键彼此区分开。若您想在没有数字小键盘的 Mac 电脑上使用真正的「Delete ⌦」按键的话,请改用「Fn+⌫」。"; +"Only load factory language models if needed" = "按需载入简繁体模式的原厂辞典资料"; "Only override the intonation of the previous reading if different" = "仅在键入的声调与游标正后方的字音不同时,尝试覆写"; "Only use this with known Chromium-based browsers" = "仅针对知名的 Chromium 核心的浏览器启用该措施"; "Output Settings:" = "输出设定:"; diff --git a/Source/Resources/zh-Hant.lproj/Localizable.strings b/Source/Resources/zh-Hant.lproj/Localizable.strings index 2206b502..0507ca81 100644 --- a/Source/Resources/zh-Hant.lproj/Localizable.strings +++ b/Source/Resources/zh-Hant.lproj/Localizable.strings @@ -194,6 +194,7 @@ "Misc Settings:" = "雜項:"; "MiTAC" = "神通排列"; "Note: The “Delete ⌫” key on Mac keyboard is named as “BackSpace ⌫” here in order to distinguish the real “Delete ⌦” key from full-sized desktop keyboards. If you want to use the real “Delete ⌦” key on a Mac keyboard with no numpad equipped, you have to press “Fn+⌫” instead." = "注意:Mac 鍵盤的「Delete ⌫」鍵在此被稱作「BackSpace 退格鍵 ⌫」以與 PC 鍵盤的真正的「Delete ⌦」鍵彼此區分開。若您想在沒有數字小鍵盤的 Mac 電腦上使用真正的「Delete ⌦」按鍵的話,請改用「Fn+⌫」。"; +"Only load factory language models if needed" = "按需載入簡繁體模式的原廠辭典資料"; "Only override the intonation of the previous reading if different" = "僅在鍵入的聲調與游標正後方的字音不同時,嘗試覆寫"; "Only use this with known Chromium-based browsers" = "僅針對知名的 Chromium 核心的瀏覽器啟用該措施"; "Output Settings:" = "輸出設定:";