PrefUI // +onlyLoadFactoryLangModelsIfNeeded.

This commit is contained in:
ShikiSuen 2022-09-21 13:11:40 +08:00
parent b747dd063e
commit 0477c6e2da
6 changed files with 13 additions and 0 deletions

View File

@ -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 {

View File

@ -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:";

View File

@ -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:";

View File

@ -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:" = "出力設定:";

View File

@ -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:" = "输出设定:";

View File

@ -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:" = "輸出設定:";