Skip to content

Commit e083a76

Browse files
committed
add more translator comments
1 parent 86d361a commit e083a76

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

addon/globalPlugins/MathCAT/MathCATgui.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ def __init__( self, parent ):
3535
self.m_panelCategories = wx.Panel( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
3636
bSizerCategories = wx.BoxSizer( wx.VERTICAL )
3737

38+
# Translators: A heading that labels three navigation pane tab names in the MathCAT dialog
3839
self.m_staticTextCategories = wx.StaticText( self.m_panelCategories, wx.ID_ANY, _("Categories:"), wx.DefaultPosition, wx.DefaultSize, 0 )
3940
self.m_staticTextCategories.Wrap( -1 )
4041

4142
bSizerCategories.Add( self.m_staticTextCategories, 0, wx.ALL, 5 )
4243

43-
# Translators: these are tab headings for the MathCAT preferences dialog
44+
# Translators: these are navigation pane headings for the MathCAT preferences dialog under the title "Categories"
4445
m_listBoxPreferencesTopicChoices = [ _("Speech"), _("Navigation"), _("Braille") ]
4546
self.m_listBoxPreferencesTopic = wx.ListBox( self.m_panelCategories, wx.ID_ANY, wx.Point( -1,-1 ), wx.Size( -1,-1 ), m_listBoxPreferencesTopicChoices, wx.LB_NO_SB|wx.LB_SINGLE )
4647
bSizerCategories.Add( self.m_listBoxPreferencesTopic, 0, wx.ALL, 5 )
@@ -82,12 +83,13 @@ def __init__( self, parent ):
8283

8384
bSizerLanguage = wx.BoxSizer( wx.HORIZONTAL )
8485

86+
# Translators: label for pull down allowing users to choose the speech language for math
8587
self.m_staticTextLanguage = wx.StaticText( self.m_panelSpeech, wx.ID_ANY, _("Language:"), wx.DefaultPosition, wx.DefaultSize, 0 )
8688
self.m_staticTextLanguage.Wrap( -1 )
8789

8890
bSizerLanguage.Add( self.m_staticTextLanguage, 0, wx.ALL, 5 )
8991

90-
m_choiceLanguageChoices = [ _("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") ]
92+
m_choiceLanguageChoices = [ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ]
9193
self.m_choiceLanguage = wx.Choice( self.m_panelSpeech, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choiceLanguageChoices, 0 )
9294
self.m_choiceLanguage.SetSelection( 0 )
9395
bSizerLanguage.Add( self.m_choiceLanguage, 0, wx.ALL, 5 )
@@ -97,12 +99,13 @@ def __init__( self, parent ):
9799

98100
bSizerSpeechStyle = wx.BoxSizer( wx.HORIZONTAL )
99101

102+
# Translators: label for pull down allowing users to choose the "style" (version, rules) of speech for math
100103
self.m_staticTextSpeechStyle = wx.StaticText( self.m_panelSpeech, wx.ID_ANY, _("Speech style:"), wx.DefaultPosition, wx.DefaultSize, 0 )
101104
self.m_staticTextSpeechStyle.Wrap( -1 )
102105

103106
bSizerSpeechStyle.Add( self.m_staticTextSpeechStyle, 0, wx.ALL, 5 )
104107

105-
m_choiceSpeechStyleChoices = [ _("xxxxxxxxxxxxxxxx") ]
108+
m_choiceSpeechStyleChoices = [ "xxxxxxxxxxxxxxxx" ]
106109
self.m_choiceSpeechStyle = wx.Choice( self.m_panelSpeech, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choiceSpeechStyleChoices, 0 )
107110
self.m_choiceSpeechStyle.SetSelection( 0 )
108111
bSizerSpeechStyle.Add( self.m_choiceSpeechStyle, 0, wx.ALL, 5 )
@@ -112,11 +115,13 @@ def __init__( self, parent ):
112115

113116
bSizer71 = wx.BoxSizer( wx.HORIZONTAL )
114117

115-
self.m_staticTextSpeechAmount = wx.StaticText( self.m_panelSpeech, wx.ID_ANY, _("Speech amount:"), wx.DefaultPosition, wx.DefaultSize, 0 )
118+
# Translators: label for pull down to specify how verbose/terse the speech should be
119+
self.m_staticTextSpeechAmount = wx.StaticText( self.m_panelSpeech, wx.ID_ANY, _("Speech verbosity:"), wx.DefaultPosition, wx.DefaultSize, 0 )
116120
self.m_staticTextSpeechAmount.Wrap( -1 )
117121

118122
bSizer71.Add( self.m_staticTextSpeechAmount, 0, wx.ALL, 5 )
119123

124+
# Translators: options for speech verbosity.
120125
m_choiceSpeechAmountChoices = [ _("Terse"), _("Medium"), _("Verbose") ]
121126
self.m_choiceSpeechAmount = wx.Choice( self.m_panelSpeech, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choiceSpeechAmountChoices, 0 )
122127
self.m_choiceSpeechAmount.SetSelection( 0 )
@@ -127,6 +132,7 @@ def __init__( self, parent ):
127132

128133
bSizerRelativeSpeed = wx.BoxSizer( wx.HORIZONTAL )
129134

135+
# Translators: label for slider that specifies a percentage of the normal speech rate that should be used for math
130136
self.m_staticTextRelativeSpeed = wx.StaticText( self.m_panelSpeech, wx.ID_ANY, _("Relative speech rate:"), wx.DefaultPosition, wx.DefaultSize, 0 )
131137
self.m_staticTextRelativeSpeed.Wrap( -1 )
132138

@@ -141,6 +147,7 @@ def __init__( self, parent ):
141147

142148
bSizerPauseFactor = wx.BoxSizer( wx.HORIZONTAL )
143149

150+
# Translators: label for slider that specifies relative factor to increase or decrease pauses in the math speech
144151
self.m_staticPauseFactor = wx.StaticText( self.m_panelSpeech, wx.ID_ANY, _("Pause factor:"), wx.DefaultPosition, wx.DefaultSize, 0 )
145152
self.m_staticPauseFactor.Wrap( -1 )
146153

@@ -154,6 +161,7 @@ def __init__( self, parent ):
154161

155162
bSizerSpeechSound = wx.BoxSizer( wx.HORIZONTAL )
156163

164+
# Translators: label for check box controling a beep sound
157165
self.m_checkBoxSpeechSound = wx.CheckBox( self.m_panelSpeech, wx.ID_ANY, _("Make a sound when starting/ending math speech"), wx.DefaultPosition, wx.DefaultSize, 0 )
158166
bSizerSpeechSound.Add( self.m_checkBoxSpeechSound, 0, wx.ALL, 5 )
159167

@@ -162,11 +170,13 @@ def __init__( self, parent ):
162170

163171
bSizerSubjectArea = wx.BoxSizer( wx.HORIZONTAL )
164172

173+
# Translators: label for pull down to specify a subject area (Geometry, Calculus, ...) to use speech for that subject area
165174
self.m_staticTextSubjectArea = wx.StaticText( self.m_panelSpeech, wx.ID_ANY, _("Subject area to be used when it cannot be determined automatically:"), wx.DefaultPosition, wx.DefaultSize, 0 )
166175
self.m_staticTextSubjectArea.Wrap( -1 )
167176

168177
bSizerSubjectArea.Add( self.m_staticTextSubjectArea, 0, wx.ALL, 5 )
169178

179+
# Translators: a generic (non-specific) math subject area
170180
m_choiceSubjectAreaChoices = [ _("General") ]
171181
self.m_choiceSubjectArea = wx.Choice( self.m_panelSpeech, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choiceSubjectAreaChoices, 0 )
172182
self.m_choiceSubjectArea.SetSelection( 0 )
@@ -177,6 +187,7 @@ def __init__( self, parent ):
177187

178188
bSizerSpeechForChemical = wx.BoxSizer( wx.HORIZONTAL )
179189

190+
# Translators: label for pull down to specify how verbose/terse the speech should be
180191
self.m_staticTextSpeechForChemical = wx.StaticText( self.m_panelSpeech, wx.ID_ANY, _("Speech for chemical formulas:"), wx.DefaultPosition, wx.DefaultSize, 0 )
181192
self.m_staticTextSpeechForChemical.Wrap( -1 )
182193

0 commit comments

Comments
 (0)