Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/speech/speech.py
Comment thread
SaschaCowley marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -3018,7 +3018,7 @@ def getFormatFieldSpeech( # noqa: C901
if formatConfig["reportSpellingErrors2"] & ReportSpellingErrors.SPEECH.value:
# Translators: Reported when text contains a spelling error.
texts.append(_("spelling error"))
elif extraDetail:
elif extraDetail and formatConfig["reportSpellingErrors2"] & ReportSpellingErrors.SPEECH.value:
# Translators: Reported when moving out of text containing a spelling error.
texts.append(_("out of spelling error"))
textList.extend(texts)
Expand All @@ -3032,7 +3032,7 @@ def getFormatFieldSpeech( # noqa: C901
if formatConfig["reportSpellingErrors2"] & ReportSpellingErrors.SPEECH.value:
# Translators: Reported when text contains a grammar error.
texts.append(_("grammar error"))
elif extraDetail:
elif extraDetail and formatConfig["reportSpellingErrors2"] & ReportSpellingErrors.SPEECH.value:
# Translators: Reported when moving out of text containing a grammar error.
texts.append(_("out of grammar error"))
textList.extend(texts)
Expand Down
Loading