2222
2323class MathCATPreferencesDialog (wx .Dialog ):
2424 def __init__ (self , parent ):
25- # Translators: title for MathCAT preferences dialog
2625 wx .Dialog .__init__ (
2726 self ,
2827 parent ,
2928 id = wx .ID_ANY ,
29+ # Translators: title for MathCAT preferences dialog
3030 title = _ ("MathCAT Preferences" ),
3131 pos = wx .DefaultPosition ,
3232 size = wx .Size (- 1 , - 1 ),
@@ -44,10 +44,10 @@ def __init__(self, parent):
4444 )
4545 bSizerCategories = wx .BoxSizer (wx .VERTICAL )
4646
47- # Translators: A heading that labels three navigation pane tab names in the MathCAT dialog
4847 self .m_staticTextCategories = wx .StaticText (
4948 self .m_panelCategories ,
5049 wx .ID_ANY ,
50+ # Translators: A heading that labels three navigation pane tab names in the MathCAT dialog
5151 _ ("Categories:" ),
5252 wx .DefaultPosition ,
5353 wx .DefaultSize ,
@@ -112,10 +112,10 @@ def __init__(self, parent):
112112
113113 bSizerImpairment = wx .BoxSizer (wx .HORIZONTAL )
114114
115- # Translators: this is the text label for whom to target the speech for (options are below)
116115 self .m_staticTextImpairment = wx .StaticText (
117116 self .m_panelSpeech ,
118117 wx .ID_ANY ,
118+ # Translators: this is the text label for whom to target the speech for (options are below)
119119 _ ("Generate speech for:" ),
120120 wx .DefaultPosition ,
121121 wx .DefaultSize ,
@@ -149,10 +149,10 @@ def __init__(self, parent):
149149
150150 bSizerLanguage = wx .BoxSizer (wx .HORIZONTAL )
151151
152- # Translators: label for pull down allowing users to choose the speech language for math
153152 self .m_staticTextLanguage = wx .StaticText (
154153 self .m_panelSpeech ,
155154 wx .ID_ANY ,
155+ # Translators: label for pull down allowing users to choose the speech language for math
156156 _ ("Language:" ),
157157 wx .DefaultPosition ,
158158 wx .DefaultSize ,
@@ -178,10 +178,10 @@ def __init__(self, parent):
178178
179179 bSizerSpeechStyle = wx .BoxSizer (wx .HORIZONTAL )
180180
181- # Translators: label for pull down allowing users to choose the "style" (version, rules) of speech for math
182181 self .m_staticTextSpeechStyle = wx .StaticText (
183182 self .m_panelSpeech ,
184183 wx .ID_ANY ,
184+ # Translators: label for pull down allowing users to choose the "style" (version, rules) of speech for math
185185 _ ("Speech style:" ),
186186 wx .DefaultPosition ,
187187 wx .DefaultSize ,
@@ -207,10 +207,10 @@ def __init__(self, parent):
207207
208208 bSizer71 = wx .BoxSizer (wx .HORIZONTAL )
209209
210- # Translators: label for pull down to specify how verbose/terse the speech should be
211210 self .m_staticTextSpeechAmount = wx .StaticText (
212211 self .m_panelSpeech ,
213212 wx .ID_ANY ,
213+ # Translators: label for pull down to specify how verbose/terse the speech should be
214214 _ ("Speech verbosity:" ),
215215 wx .DefaultPosition ,
216216 wx .DefaultSize ,
@@ -244,10 +244,10 @@ def __init__(self, parent):
244244
245245 bSizerRelativeSpeed = wx .BoxSizer (wx .HORIZONTAL )
246246
247- # Translators: label for slider that specifies a percentage of the normal speech rate that should be used for math
248247 self .m_staticTextRelativeSpeed = wx .StaticText (
249248 self .m_panelSpeech ,
250249 wx .ID_ANY ,
250+ # Translators: label for slider that specifies a percentage of the normal speech rate that should be used for math
251251 _ ("Relative speech rate:" ),
252252 wx .DefaultPosition ,
253253 wx .DefaultSize ,
@@ -274,10 +274,10 @@ def __init__(self, parent):
274274
275275 bSizerPauseFactor = wx .BoxSizer (wx .HORIZONTAL )
276276
277- # Translators: label for slider that specifies relative factor to increase or decrease pauses in the math speech
278277 self .m_staticPauseFactor = wx .StaticText (
279278 self .m_panelSpeech ,
280279 wx .ID_ANY ,
280+ # Translators: label for slider that specifies relative factor to increase or decrease pauses in the math speech
281281 _ ("Pause factor:" ),
282282 wx .DefaultPosition ,
283283 wx .DefaultSize ,
@@ -303,10 +303,10 @@ def __init__(self, parent):
303303
304304 bSizerSpeechSound = wx .BoxSizer (wx .HORIZONTAL )
305305
306- # Translators: label for check box controling a beep sound
307306 self .m_checkBoxSpeechSound = wx .CheckBox (
308307 self .m_panelSpeech ,
309308 wx .ID_ANY ,
309+ # Translators: label for check box controling a beep sound
310310 _ ("Make a sound when starting/ending math speech" ),
311311 wx .DefaultPosition ,
312312 wx .DefaultSize ,
@@ -318,10 +318,10 @@ def __init__(self, parent):
318318
319319 bSizerSubjectArea = wx .BoxSizer (wx .HORIZONTAL )
320320
321- # Translators: label for pull down to specify a subject area (Geometry, Calculus, ...) to use speech for that subject area
322321 self .m_staticTextSubjectArea = wx .StaticText (
323322 self .m_panelSpeech ,
324323 wx .ID_ANY ,
324+ # Translators: label for pull down to specify a subject area (Geometry, Calculus, ...)
325325 _ ("Subject area to be used when it cannot be determined automatically:" ),
326326 wx .DefaultPosition ,
327327 wx .DefaultSize ,
@@ -348,10 +348,10 @@ def __init__(self, parent):
348348
349349 bSizerSpeechForChemical = wx .BoxSizer (wx .HORIZONTAL )
350350
351- # Translators: label for pull down to specify how verbose/terse the speech should be
352351 self .m_staticTextSpeechForChemical = wx .StaticText (
353352 self .m_panelSpeech ,
354353 wx .ID_ANY ,
354+ # Translators: label for pull down to specify how verbose/terse the speech should be
355355 _ ("Speech for chemical formulas:" ),
356356 wx .DefaultPosition ,
357357 wx .DefaultSize ,
@@ -393,11 +393,11 @@ def __init__(self, parent):
393393 )
394394 bSizerNavigation = wx .BoxSizer (wx .VERTICAL )
395395
396- # Translators: label for pull down to specify one of three modes use to navigate math expressions
397396 sbSizerNavigationMode = wx .StaticBoxSizer (
398397 wx .StaticBox (
399398 self .m_panelNavigation ,
400399 wx .ID_ANY ,
400+ # Translators: label for pull down to specify one of three modes use to navigate math expressions
401401 _ ("Navigation mode to use when beginning to navigate an equation:" ),
402402 ),
403403 wx .VERTICAL ,
@@ -422,10 +422,10 @@ def __init__(self, parent):
422422 self .m_choiceNavigationMode .SetSelection (1 )
423423 sbSizerNavigationMode .Add (self .m_choiceNavigationMode , 0 , wx .ALL , 5 )
424424
425- # Translators: label for checkbox that controls whether any changes to the navigation mode should be preserved
426425 self .m_checkBoxResetNavigationMode = wx .CheckBox (
427426 sbSizerNavigationMode .GetStaticBox (),
428427 wx .ID_ANY ,
428+ # Translators: label for checkbox that controls whether any changes to the navigation mode should be preserved
429429 _ ("Reset navigation mode on entry to an expression" ),
430430 wx .DefaultPosition ,
431431 wx .DefaultSize ,
@@ -435,11 +435,11 @@ def __init__(self, parent):
435435
436436 bSizerNavigation .Add (sbSizerNavigationMode , 1 , wx .EXPAND , 5 )
437437
438- # Translators: label for pull down to specify whether the expression is spoken or described (an overview)
439438 sbSizerNavigationSpeech = wx .StaticBoxSizer (
440439 wx .StaticBox (
441440 self .m_panelNavigation ,
442441 wx .ID_ANY ,
442+ # Translators: label for pull down to specify whether the expression is spoken or described (an overview)
443443 _ ("Navigation speech to use when beginning to navigate an equation:" ),
444444 ),
445445 wx .VERTICAL ,
@@ -463,10 +463,10 @@ def __init__(self, parent):
463463 self .m_choiceNavigationSpeech .SetSelection (1 )
464464 sbSizerNavigationSpeech .Add (self .m_choiceNavigationSpeech , 0 , wx .ALL , 5 )
465465
466- # Translators: label for checkbox that controls whether any changes to the speak vs overview reading should be preserved
467466 self .m_checkBoxResetNavigationSpeech = wx .CheckBox (
468467 sbSizerNavigationSpeech .GetStaticBox (),
469468 wx .ID_ANY ,
469+ # Translators: label for checkbox that controls whether any changes to the speak vs overview reading should be ignored
470470 _ ("Reset navigation speech on entry to an expression" ),
471471 wx .DefaultPosition ,
472472 wx .DefaultSize ,
@@ -479,11 +479,11 @@ def __init__(self, parent):
479479
480480 bSizerNavigationZoom = wx .BoxSizer (wx .VERTICAL )
481481
482- # Translators: label for checkbox that controls whether arrow keys move out of fractions,
483- # etc., or whether you have to manually back out of the fraction, etc.
484482 self .m_checkBoxAutomaticZoom = wx .CheckBox (
485483 self .m_panelNavigation ,
486484 wx .ID_ANY ,
485+ # Translators: label for checkbox that controls whether arrow keys move out of fractions, etc.,
486+ # or whether you have to manually back out of the fraction, etc.
487487 _ ("Automatic zoom out of 2D notations" ),
488488 wx .DefaultPosition ,
489489 wx .DefaultSize ,
@@ -493,10 +493,10 @@ def __init__(self, parent):
493493
494494 bSizerSpeechAmountNavigation = wx .BoxSizer (wx .HORIZONTAL )
495495
496- # Translators: label for pull down to specify whether you want a terse or verbose reading of navigation commands
497496 self .m_staticTextSpeechAmountNavigation = wx .StaticText (
498497 self .m_panelNavigation ,
499498 wx .ID_ANY ,
499+ # Translators: label for pull down to specify whether you want a terse or verbose reading of navigation commands
500500 _ ("Speech amount for navigation:" ),
501501 wx .DefaultPosition ,
502502 wx .DefaultSize ,
@@ -547,10 +547,10 @@ def __init__(self, parent):
547547
548548 bSizerBrailleMathCode = wx .BoxSizer (wx .HORIZONTAL )
549549
550- # Translators: label for pull down to specify which braille code to use
551550 self .m_staticTextBrailleMathCode = wx .StaticText (
552551 self .m_panelBraille ,
553552 wx .ID_ANY ,
553+ # Translators: label for pull down to specify which braille code to use
554554 _ ("Braille math code for refreshable displays:" ),
555555 wx .DefaultPosition ,
556556 wx .DefaultSize ,
@@ -586,10 +586,10 @@ def __init__(self, parent):
586586
587587 bSizerBrailleHighlights = wx .BoxSizer (wx .HORIZONTAL )
588588
589- # Translators: label for pull down to specify how braille dots should be modify when navigating/selecting subexpressions
590589 self .m_staticTextBrailleHighlights = wx .StaticText (
591590 self .m_panelBraille ,
592591 wx .ID_ANY ,
592+ # Translators: label for pull down to specify how braille dots should be modified when navigating/selecting subexprs
593593 _ ("Highlight with dots 7 && 8 the current nav node:" ),
594594 wx .DefaultPosition ,
595595 wx .DefaultSize ,
@@ -660,32 +660,32 @@ def __init__(self, parent):
660660
661661 bSizerButtons .Add ((0 , 0 ), 1 , wx .EXPAND , 5 )
662662
663- # Translators: dialog "ok" button
664663 self .m_buttonOK = wx .Button (
665664 self .m_panelButtons ,
666665 wx .ID_ANY ,
666+ # Translators: dialog "ok" button
667667 _ ("OK" ),
668668 wx .DefaultPosition ,
669669 wx .DefaultSize ,
670670 0 ,
671671 )
672672 bSizerButtons .Add (self .m_buttonOK , 0 , wx .ALL , 5 )
673673
674- # Translators: dialog "cancel" button
675674 self .m_buttonCancel = wx .Button (
676675 self .m_panelButtons ,
677676 wx .ID_ANY ,
677+ # Translators: dialog "cancel" button
678678 _ ("Cancel" ),
679679 wx .DefaultPosition ,
680680 wx .DefaultSize ,
681681 0 ,
682682 )
683683 bSizerButtons .Add (self .m_buttonCancel , 0 , wx .ALL , 5 )
684684
685- # Translators: dialog "apply" button
686685 self .m_buttonApply = wx .Button (
687686 self .m_panelButtons ,
688687 wx .ID_ANY ,
688+ # Translators: dialog "apply" button
689689 _ ("Apply" ),
690690 wx .DefaultPosition ,
691691 wx .DefaultSize ,
@@ -704,10 +704,10 @@ def __init__(self, parent):
704704 )
705705 bSizerButtons .Add (self .m_buttonReset , 0 , wx .ALL , 5 )
706706
707- # Translators: button to bring up a help page
708707 self .m_buttonHelp = wx .Button (
709708 self .m_panelButtons ,
710709 wx .ID_ANY ,
710+ # Translators: button to bring up a help page
711711 _ ("Help" ),
712712 wx .DefaultPosition ,
713713 wx .DefaultSize ,
0 commit comments