Skip to content

Commit 563e0a4

Browse files
committed
Add "LiteralSpeak" to speech style menu.
1 parent 4f5a940 commit 563e0a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

addon/globalPlugins/MathCAT/MathCATPreferences.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ def getSpeechStyleFromDirectory(dir: str, lang: str) -> list[str]:
383383
# remove "_Rules.yaml" from the list
384384
name[: name.find("_Rules.yaml")] for name in getSpeechStyleFromDirectory(languagePath, languageCode)
385385
]
386+
# There isn't a LiteralSpeak rules file since it has no language-specific rules. We add it at the end.
387+
# Translators: at the moment, do NOT translate this string as some code specifically looks for this name.
388+
all_style_files.append("LiteralSpeak")
386389
for name in all_style_files:
387390
self.m_choiceSpeechStyle.Append((name))
388391
try:

0 commit comments

Comments
 (0)