Skip to content

Commit 005f247

Browse files
committed
add more translator comments
1 parent e083a76 commit 005f247

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

addon/globalPlugins/MathCAT/MathCATgui.py

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def __init__( self, parent ):
193193

194194
bSizerSpeechForChemical.Add( self.m_staticTextSpeechForChemical, 0, wx.ALL, 5 )
195195

196+
# Translators: values for chemistry options with example speech in parenthesis
196197
m_choiceSpeechForChemicalChoices = [ _("Spell it out (H 2 O)"), _("Off (H sub 2 O)") ]
197198
self.m_choiceSpeechForChemical = wx.Choice( self.m_panelSpeech, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choiceSpeechForChemicalChoices, 0 )
198199
self.m_choiceSpeechForChemical.SetSelection( 0 )
@@ -205,30 +206,38 @@ def __init__( self, parent ):
205206
self.m_panelSpeech.SetSizer( bSizerSpeech )
206207
self.m_panelSpeech.Layout()
207208
bSizerSpeech.Fit( self.m_panelSpeech )
208-
self.m_simplebookPanelsCategories.AddPage( self.m_panelSpeech, _("a page"), False )
209+
self.m_simplebookPanelsCategories.AddPage( self.m_panelSpeech, "a page", False )
209210
self.m_panelNavigation = wx.Panel( self.m_simplebookPanelsCategories, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.BORDER_SIMPLE|wx.TAB_TRAVERSAL )
210211
bSizerNavigation = wx.BoxSizer( wx.VERTICAL )
211212

213+
# Translators: label for pull down to specify one of three modes use to navigate math expressions
212214
sbSizerNavigationMode = wx.StaticBoxSizer( wx.StaticBox( self.m_panelNavigation, wx.ID_ANY, _("Navigation mode to use when beginning to navigate an equation:") ), wx.VERTICAL )
213215

216+
# Translators: names of different modes of navigation. "Enhanced" mode understands math structure
217+
# Translators: "Simple" walks by character expect for things like fractions, roots, and scripts
218+
# Translators: "Chracter" moves around by character, automatically moving into fractions, etc
214219
m_choiceNavigationModeChoices = [ _("Enhanced"), _("Simple"), _("Character") ]
215220
self.m_choiceNavigationMode = wx.Choice( sbSizerNavigationMode.GetStaticBox(), wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choiceNavigationModeChoices, 0 )
216221
self.m_choiceNavigationMode.SetSelection( 1 )
217222
sbSizerNavigationMode.Add( self.m_choiceNavigationMode, 0, wx.ALL, 5 )
218223

224+
# Translators: label for checkbox that controls whether any changes to the navigation mode should be preserved
219225
self.m_checkBoxResetNavigationMode = wx.CheckBox( sbSizerNavigationMode.GetStaticBox(), wx.ID_ANY, _("Reset navigation mode on entry to an expression"), wx.DefaultPosition, wx.DefaultSize, 0 )
220226
sbSizerNavigationMode.Add( self.m_checkBoxResetNavigationMode, 0, wx.ALL, 5 )
221227

222228

223229
bSizerNavigation.Add( sbSizerNavigationMode, 1, wx.EXPAND, 5 )
224230

231+
# Translators: label for pull down to specify whether the expression is spoken or described (an overview)
225232
sbSizerNavigationSpeech = wx.StaticBoxSizer( wx.StaticBox( self.m_panelNavigation, wx.ID_ANY, _("Navigation speech to use when beginning to navigate an equation:") ), wx.VERTICAL )
226233

234+
# Translators: either "Speak" the expression or give a description (overview) of the expression
227235
m_choiceNavigationSpeechChoices = [ _("Speak"), _("Describe/overview") ]
228236
self.m_choiceNavigationSpeech = wx.Choice( sbSizerNavigationSpeech.GetStaticBox(), wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choiceNavigationSpeechChoices, 0 )
229237
self.m_choiceNavigationSpeech.SetSelection( 1 )
230238
sbSizerNavigationSpeech.Add( self.m_choiceNavigationSpeech, 0, wx.ALL, 5 )
231239

240+
# Translators: label for checkbox that controls whether any changes to the speak vs overview reading should be preserved
232241
self.m_checkBoxResetNavigationSpeech = wx.CheckBox( sbSizerNavigationSpeech.GetStaticBox(), wx.ID_ANY, _("Reset navigation speech on entry to an expression"), wx.DefaultPosition, wx.DefaultSize, 0 )
233242
self.m_checkBoxResetNavigationSpeech.SetValue(True)
234243
sbSizerNavigationSpeech.Add( self.m_checkBoxResetNavigationSpeech, 0, wx.ALL, 5 )
@@ -238,16 +247,19 @@ def __init__( self, parent ):
238247

239248
bSizerNavigationZoom = wx.BoxSizer( wx.VERTICAL )
240249

250+
# Translators: label for checkbox that controls whether arrow keys move out of fractions, etc., or whether you have to manually back out of the fraction, etc.
241251
self.m_checkBoxAutomaticZoom = wx.CheckBox( self.m_panelNavigation, wx.ID_ANY, _("Automatic zoom out of 2D notations"), wx.DefaultPosition, wx.DefaultSize, 0 )
242252
bSizerNavigationZoom.Add( self.m_checkBoxAutomaticZoom, 0, wx.ALL, 5 )
243253

244254
bSizerSpeechAmountNavigation = wx.BoxSizer( wx.HORIZONTAL )
245255

256+
# Translators: label for pull down to specify whether you want a terse or verbose reading of navigation commands
246257
self.m_staticTextSpeechAmountNavigation = wx.StaticText( self.m_panelNavigation, wx.ID_ANY, _("Speech amount for navigation:"), wx.DefaultPosition, wx.DefaultSize, 0 )
247258
self.m_staticTextSpeechAmountNavigation.Wrap( -1 )
248259

249260
bSizerSpeechAmountNavigation.Add( self.m_staticTextSpeechAmountNavigation, 0, wx.ALL, 5 )
250261

262+
# Translators: options for speech verbosity.
251263
m_choiceSpeechAmountNavigationChoices = [ _("Terse"), _("Medium"), _("Verbose") ]
252264
self.m_choiceSpeechAmountNavigation = wx.Choice( self.m_panelNavigation, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choiceSpeechAmountNavigationChoices, 0 )
253265
self.m_choiceSpeechAmountNavigation.SetSelection( 0 )
@@ -263,17 +275,19 @@ def __init__( self, parent ):
263275
self.m_panelNavigation.SetSizer( bSizerNavigation )
264276
self.m_panelNavigation.Layout()
265277
bSizerNavigation.Fit( self.m_panelNavigation )
266-
self.m_simplebookPanelsCategories.AddPage( self.m_panelNavigation, _("a page"), False )
278+
self.m_simplebookPanelsCategories.AddPage( self.m_panelNavigation, "a page", False )
267279
self.m_panelBraille = wx.Panel( self.m_simplebookPanelsCategories, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.BORDER_SIMPLE|wx.TAB_TRAVERSAL )
268280
bSizerBraille = wx.BoxSizer( wx.VERTICAL )
269281

270282
bSizerBrailleMathCode = wx.BoxSizer( wx.HORIZONTAL )
271283

284+
# Translators: label for pull down to specify which braille code to use
272285
self.m_staticTextBrailleMathCode = wx.StaticText( self.m_panelBraille, wx.ID_ANY, _("Braille math code for refreshable displays:"), wx.DefaultPosition, wx.DefaultSize, 0 )
273286
self.m_staticTextBrailleMathCode.Wrap( -1 )
274287

275288
bSizerBrailleMathCode.Add( self.m_staticTextBrailleMathCode, 0, wx.ALL, 5 )
276289

290+
# Translators: names of various braille codes -- probably only translate if a different alphabet is used
277291
m_choiceBrailleMathCodeChoices = [ _("Nemeth"), _("UEB"), _("CMU"), _("Vietnam") ]
278292
self.m_choiceBrailleMathCode = wx.Choice( self.m_panelBraille, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choiceBrailleMathCodeChoices, 0 )
279293
self.m_choiceBrailleMathCode.SetSelection( 1 )
@@ -284,11 +298,17 @@ def __init__( self, parent ):
284298

285299
bSizerBrailleHighlights = wx.BoxSizer( wx.HORIZONTAL )
286300

301+
# Translators: label for pull down to specify how braille dots should be modify when navigating/selecting subexpressions
287302
self.m_staticTextBrailleHighlights = wx.StaticText( self.m_panelBraille, wx.ID_ANY, _("Highlight with dots 7 && 8 the current nav node:"), wx.DefaultPosition, wx.DefaultSize, 0 )
288303
self.m_staticTextBrailleHighlights.Wrap( -1 )
289304

290305
bSizerBrailleHighlights.Add( self.m_staticTextBrailleHighlights, 0, wx.ALL, 5 )
291306

307+
# Translators: options for using dots 7 and 8:
308+
# Translators: "off" -- don't highlight
309+
# Translators: "First character" -- only the first character of the current navigation node uses dots 7 & 8
310+
# Translators: "Endpoints" -- only the first and last character of the current navigation node uses dots 7 & 8
311+
# Translators: "All" -- all the characters for the current navigation node use dots 7 & 8
292312
m_choiceBrailleHighlightsChoices = [ _("Off"), _("First character"), _("Endpoints"), _("All") ]
293313
self.m_choiceBrailleHighlights = wx.Choice( self.m_panelBraille, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choiceBrailleHighlightsChoices, 0 )
294314
self.m_choiceBrailleHighlights.SetSelection( 1 )
@@ -316,7 +336,7 @@ def __init__( self, parent ):
316336
self.m_panelBraille.SetSizer( bSizerBraille )
317337
self.m_panelBraille.Layout()
318338
bSizerBraille.Fit( self.m_panelBraille )
319-
self.m_simplebookPanelsCategories.AddPage( self.m_panelBraille, _("a page"), False )
339+
self.m_simplebookPanelsCategories.AddPage( self.m_panelBraille, "a page", False )
320340

321341
gbSizerMathCATPreferences.Add( self.m_simplebookPanelsCategories, wx.GBPosition( 0, 1 ), wx.GBSpan( 1, 1 ), wx.EXPAND |wx.ALL, 10 )
322342

@@ -329,18 +349,23 @@ def __init__( self, parent ):
329349

330350
bSizerButtons.Add( ( 0, 0), 1, wx.EXPAND, 5 )
331351

352+
# Translators: dialog "ok" button
332353
self.m_buttonOK = wx.Button( self.m_panelButtons, wx.ID_ANY, _("OK"), wx.DefaultPosition, wx.DefaultSize, 0 )
333354
bSizerButtons.Add( self.m_buttonOK, 0, wx.ALL, 5 )
334355

356+
# Translators: dialog "cancel" button
335357
self.m_buttonCancel = wx.Button( self.m_panelButtons, wx.ID_ANY, _("Cancel"), wx.DefaultPosition, wx.DefaultSize, 0 )
336358
bSizerButtons.Add( self.m_buttonCancel, 0, wx.ALL, 5 )
337359

360+
# Translators: dialog "apply" button
338361
self.m_buttonApply = wx.Button( self.m_panelButtons, wx.ID_ANY, _("Apply"), wx.DefaultPosition, wx.DefaultSize, 0 )
339362
bSizerButtons.Add( self.m_buttonApply, 0, wx.ALL, 5 )
340363

364+
# Translators: button to reset all the preferences to their default values
341365
self.m_buttonReset = wx.Button( self.m_panelButtons, wx.ID_ANY, _("Reset to defaults"), wx.DefaultPosition, wx.DefaultSize, 0 )
342366
bSizerButtons.Add( self.m_buttonReset, 0, wx.ALL, 5 )
343367

368+
# Translators: button to bring up a help page
344369
self.m_buttonHelp = wx.Button( self.m_panelButtons, wx.ID_ANY, _("Help"), wx.DefaultPosition, wx.DefaultSize, 0 )
345370
bSizerButtons.Add( self.m_buttonHelp, 0, wx.ALL, 5 )
346371

0 commit comments

Comments
 (0)