Skip to content

Commit e9cca1a

Browse files
authored
Merge 738e099 into 71c2c41
2 parents 71c2c41 + 738e099 commit e9cca1a

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

source/globalCommands.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,24 @@ def script_toggleReportEmphasis(self,gesture):
406406
# Translators: Input help mode message for toggle report emphasis command.
407407
script_toggleReportEmphasis.__doc__=_("Toggles on and off the reporting of emphasis")
408408
script_toggleReportEmphasis.category=SCRCAT_DOCUMENTFORMATTING
409+
410+
@script(
411+
# Translators: Input help mode message for toggle report marked (highlighted) content command.
412+
description=_("Toggles on and off the reporting of marked (highlighted) text"),
413+
category=SCRCAT_DOCUMENTFORMATTING,
414+
)
415+
def script_toggleReportHighlightedText(self, gesture):
416+
shouldReport: bool = not config.conf["documentFormatting"]["reportHighlight"]
417+
config.conf["documentFormatting"]["reportHighlight"] = shouldReport
418+
if shouldReport:
419+
# Translators: The message announced when toggling the report marked (highlighted text)
420+
# document formatting setting.
421+
state = _("report marked (highlighted) text on")
422+
else:
423+
# Translators: The message announced when toggling the report marked (highlighted text)
424+
# document formatting setting.
425+
state = _("report marked (highlighted) text off")
426+
ui.message(state)
409427

410428
def script_toggleReportColor(self,gesture):
411429
if config.conf["documentFormatting"]["reportColor"]:

source/gui/settingsDialogs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ def makeSettings(self, settingsSizer):
21232123

21242124
# Translators: This is the label for a checkbox in the
21252125
# document formatting settings panel.
2126-
highlightText = _("Marked (highlighted text)")
2126+
highlightText = _("Mar&ked (highlighted text)")
21272127
self.highlightCheckBox = fontGroup.addItem(
21282128
wx.CheckBox(self, label=highlightText)
21292129
)

0 commit comments

Comments
 (0)