@@ -192,7 +192,7 @@ def reportFocus(self):
192192 speech .speak (ConvertSSMLTextForNVDA (text , self ._language ))
193193 except Exception as e :
194194 log .error (e )
195- # Translators: this message shows up in log file
195+ # Translators: this message directs users to look in the log file
196196 speech .speakMessage (_ ("Error in starting navigation of math: see NVDA error log for details" ))
197197
198198
@@ -206,7 +206,7 @@ def getBrailleRegions(self, review: bool = False):
206206 region .rawText = libmathcat .GetBraille ("" )
207207 except Exception as e :
208208 log .error (e )
209- # Translators: this message shows up in log file
209+ # Translators: this message directs users to look in the log file
210210 speech .speakMessage (_ ("Error in brailling math: see NVDA error log for details" ))
211211 region .rawText = ""
212212
@@ -248,15 +248,15 @@ def script_navigate(self, gesture: KeyboardInputGesture):
248248 braille .handler .update ()
249249 except Exception as e :
250250 log .error (e )
251- # Translators: this message shows up in log file
251+ # Translators: this message directs users to look in the log file
252252 speech .speakMessage (_ ("Error in navigating math: see NVDA error log for details" ))
253253
254254
255255 _startsWithMath = re .compile ("\\ s*?<math" )
256256 @script (
257- # For translators : Message to be announced during Keyboard Help
257+ # Translators : Message to be announced during Keyboard Help
258258 description = _ ("Copy navigation focus to clipboard" ),
259- # For translators : Name of the section in "Input gestures" dialog.
259+ # Translators : Name of the section in "Input gestures" dialog.
260260 category = _ ("Clipboard" ),
261261 gesture = "kb:control+c" ,
262262 )
@@ -268,10 +268,11 @@ def script_rawdataToClip(self, gesture: KeyboardInputGesture):
268268 elif self .init_mathml != '' :
269269 mathml = self .init_mathml
270270 self ._copyToClipAsMathML (mathml )
271+ # Translators: copy to clipboard
271272 ui .message (_ ("copy" ))
272273 except Exception as e :
273274 log .error (e )
274- # Translators: this message shows up in log file
275+ # Translators: this message directs users to look in the log file
275276 speech .speakMessage (_ ("unable to copy math: see NVDA error log for details" ))
276277
277278
@@ -355,6 +356,7 @@ def __init__(self):
355356 libmathcat .SetPreference ("TTS" , "SSML" )
356357 except Exception as e :
357358 log .error (e )
359+ # Translators: this message directs users to look in the log file
358360 speech .speakMessage (_ ("MathCAT initialization failed: see NVDA error log for details" ))
359361 self ._language = ""
360362
@@ -365,6 +367,7 @@ def getSpeechForMathMl(self, mathml: str):
365367 except Exception as e :
366368 log .error (e )
367369 log .error (f"MathML is { mathml } " )
370+ # Translators: this message directs users to look in the log file
368371 speech .speakMessage (_ ("Illegal MathML found: see NVDA error log for details" ))
369372 libmathcat .SetMathML ("<math></math>" ) # set it to something
370373 try :
@@ -383,6 +386,7 @@ def getSpeechForMathMl(self, mathml: str):
383386
384387 except Exception as e :
385388 log .error (e )
389+ # Translators: this message directs users to look in the log file
386390 speech .speakMessage (_ ("Error in speaking math: see NVDA error log for details" ))
387391 return ["" ]
388392
@@ -399,12 +403,14 @@ def getBrailleForMathMl(self, mathml: str):
399403 except Exception as e :
400404 log .error (e )
401405 log .error (f"MathML is { mathml } " )
406+ # Translators: this message directs users to look in the log file
402407 speech .speakMessage (_ ("Illegal MathML found: see NVDA error log for details" ))
403408 libmathcat .SetMathML ("<math></math>" ) # set it to something
404409 try :
405410 return libmathcat .GetBraille ("" )
406411 except Exception as e :
407412 log .error (e )
413+ # Translators: this message directs users to look in the log file
408414 speech .speakMessage (_ ("Error in brailling math: see NVDA error log for details" ))
409415 return ""
410416
0 commit comments