ctlTooltip // Disable vertical display if UI language is English.
This commit is contained in:
parent
23b5428383
commit
7cbfb9fb1a
|
@ -243,10 +243,10 @@ struct suiPrefPaneExperience: View {
|
||||||
isOn: $selAlwaysShowTooltipTextsHorizontally.onChange {
|
isOn: $selAlwaysShowTooltipTextsHorizontally.onChange {
|
||||||
mgrPrefs.alwaysShowTooltipTextsHorizontally = selAlwaysShowTooltipTextsHorizontally
|
mgrPrefs.alwaysShowTooltipTextsHorizontally = selAlwaysShowTooltipTextsHorizontally
|
||||||
}
|
}
|
||||||
)
|
).disabled(Bundle.main.preferredLocalizations[0] == "en")
|
||||||
Text(
|
Text(
|
||||||
LocalizedStringKey(
|
LocalizedStringKey(
|
||||||
"Key names in tooltip will be shown as symbols when the typing direction of the client app is vertical."
|
"Key names in tooltip will be shown as symbols when the tooltip is vertical. However, this option will be ignored since tooltip will always be horizontal if the UI language is English."
|
||||||
)
|
)
|
||||||
).preferenceDescription()
|
).preferenceDescription()
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,6 +29,7 @@ public class ctlTooltip: NSWindowController {
|
||||||
public var direction: NSAttributedTextView.writingDirection = .horizontal {
|
public var direction: NSAttributedTextView.writingDirection = .horizontal {
|
||||||
didSet {
|
didSet {
|
||||||
if #unavailable(macOS 10.13) { direction = .horizontal }
|
if #unavailable(macOS 10.13) { direction = .horizontal }
|
||||||
|
if Bundle.main.preferredLocalizations[0] == "en" { direction = .horizontal }
|
||||||
messageText.direction = direction
|
messageText.direction = direction
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,7 @@
|
||||||
"in front of the phrase (like macOS built-in Zhuyin IME)" = "in front of the phrase (like macOS built-in Zhuyin IME)";
|
"in front of the phrase (like macOS built-in Zhuyin IME)" = "in front of the phrase (like macOS built-in Zhuyin IME)";
|
||||||
"Intonation Key:" = "Intonation Key:";
|
"Intonation Key:" = "Intonation Key:";
|
||||||
"Japanese" = "Japanese";
|
"Japanese" = "Japanese";
|
||||||
"Key names in tooltip will be shown as symbols when the typing direction of the client app is vertical." = "Key names in tooltip will be shown as symbols when the typing direction of the client app is vertical.";
|
"Key names in tooltip will be shown as symbols when the tooltip is vertical. However, this option will be ignored since tooltip will always be horizontal if the UI language is English." = "Key names in tooltip will be shown as symbols when the tooltip is vertical. However, this option will be ignored since tooltip will always be horizontal if the UI language is English.";
|
||||||
"Keyboard Shortcuts:" = "Keyboard Shortcuts:";
|
"Keyboard Shortcuts:" = "Keyboard Shortcuts:";
|
||||||
"Keyboard" = "Keyboard";
|
"Keyboard" = "Keyboard";
|
||||||
"Misc Settings:" = "Misc Settings:";
|
"Misc Settings:" = "Misc Settings:";
|
||||||
|
|
|
@ -174,7 +174,7 @@
|
||||||
"in front of the phrase (like macOS built-in Zhuyin IME)" = "in front of the phrase (like macOS built-in Zhuyin IME)";
|
"in front of the phrase (like macOS built-in Zhuyin IME)" = "in front of the phrase (like macOS built-in Zhuyin IME)";
|
||||||
"Intonation Key:" = "Intonation Key:";
|
"Intonation Key:" = "Intonation Key:";
|
||||||
"Japanese" = "Japanese";
|
"Japanese" = "Japanese";
|
||||||
"Key names in tooltip will be shown as symbols when the typing direction of the client app is vertical." = "Key names in tooltip will be shown as symbols when the typing direction of the client app is vertical.";
|
"Key names in tooltip will be shown as symbols when the tooltip is vertical. However, this option will be ignored since tooltip will always be horizontal if the UI language is English." = "Key names in tooltip will be shown as symbols when the tooltip is vertical. However, this option will be ignored since tooltip will always be horizontal if the UI language is English.";
|
||||||
"Keyboard Shortcuts:" = "Keyboard Shortcuts:";
|
"Keyboard Shortcuts:" = "Keyboard Shortcuts:";
|
||||||
"Keyboard" = "Keyboard";
|
"Keyboard" = "Keyboard";
|
||||||
"Misc Settings:" = "Misc Settings:";
|
"Misc Settings:" = "Misc Settings:";
|
||||||
|
|
|
@ -174,7 +174,7 @@
|
||||||
"in front of the phrase (like macOS built-in Zhuyin IME)" = "単語の前で // macOS 内蔵注音入力のやり方";
|
"in front of the phrase (like macOS built-in Zhuyin IME)" = "単語の前で // macOS 内蔵注音入力のやり方";
|
||||||
"Intonation Key:" = "音調キー:";
|
"Intonation Key:" = "音調キー:";
|
||||||
"Japanese" = "和語";
|
"Japanese" = "和語";
|
||||||
"Key names in tooltip will be shown as symbols when the typing direction of the client app is vertical." = "縦書き入力の場合、ヒントにはキーの名前は常に符号で表示する。";
|
"Key names in tooltip will be shown as symbols when the tooltip is vertical. However, this option will be ignored since tooltip will always be horizontal if the UI language is English." = "縦書き入力の場合、ヒントにはキーの名前は常に符号で表示する。";
|
||||||
"Keyboard Shortcuts:" = "ショートカット:";
|
"Keyboard Shortcuts:" = "ショートカット:";
|
||||||
"Keyboard" = "配列設定";
|
"Keyboard" = "配列設定";
|
||||||
"Misc Settings:" = "他の設定:";
|
"Misc Settings:" = "他の設定:";
|
||||||
|
|
|
@ -174,7 +174,7 @@
|
||||||
"in front of the phrase (like macOS built-in Zhuyin IME)" = "将游标置于词语前方 // macOS 内建注音风格";
|
"in front of the phrase (like macOS built-in Zhuyin IME)" = "将游标置于词语前方 // macOS 内建注音风格";
|
||||||
"Intonation Key:" = "声调键:";
|
"Intonation Key:" = "声调键:";
|
||||||
"Japanese" = "和语";
|
"Japanese" = "和语";
|
||||||
"Key names in tooltip will be shown as symbols when the typing direction of the client app is vertical." = "纵排输入的情况下,工具提示内的按键名称会以符号显示。";
|
"Key names in tooltip will be shown as symbols when the tooltip is vertical. However, this option will be ignored since tooltip will always be horizontal if the UI language is English." = "纵排输入的情况下,工具提示内的按键名称会以符号显示。";
|
||||||
"Keyboard Shortcuts:" = "键盘快速键:";
|
"Keyboard Shortcuts:" = "键盘快速键:";
|
||||||
"Keyboard" = "键盘设定";
|
"Keyboard" = "键盘设定";
|
||||||
"Misc Settings:" = "杂项:";
|
"Misc Settings:" = "杂项:";
|
||||||
|
|
|
@ -174,7 +174,7 @@
|
||||||
"in front of the phrase (like macOS built-in Zhuyin IME)" = "將游標置於詞語前方 // macOS 內建注音風格";
|
"in front of the phrase (like macOS built-in Zhuyin IME)" = "將游標置於詞語前方 // macOS 內建注音風格";
|
||||||
"Intonation Key:" = "聲調鍵:";
|
"Intonation Key:" = "聲調鍵:";
|
||||||
"Japanese" = "和語";
|
"Japanese" = "和語";
|
||||||
"Key names in tooltip will be shown as symbols when the typing direction of the client app is vertical." = "縱排輸入的情況下,工具提示內的按鍵名稱會以符號顯示。";
|
"Key names in tooltip will be shown as symbols when the tooltip is vertical. However, this option will be ignored since tooltip will always be horizontal if the UI language is English." = "縱排輸入的情況下,工具提示內的按鍵名稱會以符號顯示。";
|
||||||
"Keyboard Shortcuts:" = "鍵盤快速鍵:";
|
"Keyboard Shortcuts:" = "鍵盤快速鍵:";
|
||||||
"Keyboard" = "鍵盤設定";
|
"Keyboard" = "鍵盤設定";
|
||||||
"Misc Settings:" = "雜項:";
|
"Misc Settings:" = "雜項:";
|
||||||
|
|
Loading…
Reference in New Issue