Skip to content

Commit 15e9a60

Browse files
authored
Merge 905f5c4 into c305501
2 parents c305501 + 905f5c4 commit 15e9a60

5 files changed

Lines changed: 35 additions & 15 deletions

File tree

source/NVDAObjects/IAccessible/winword.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,12 @@ def fetchAssociatedHeaderCellText(self,cell,columnHeader=False):
214214

215215
@script(
216216
gesture="kb:NVDA+shift+c",
217-
# Translators: The label of a shortcut of NVDA.
218-
description=_("Set column header"),
217+
description=_(
218+
# Translators: The label of a shortcut of NVDA.
219+
"Set column header. Pressing once will set this cell as the first column header for any cell lower and "
220+
"to the right of it within this table. Pressing twice will forget the current column header for this "
221+
"cell."
222+
),
219223
category=SCRCAT_SYSTEMCARET
220224
)
221225
def script_setColumnHeader(self,gesture):
@@ -243,8 +247,11 @@ def script_setColumnHeader(self,gesture):
243247

244248
@script(
245249
gesture="kb:NVDA+shift+r",
246-
# Translators: The label of a shortcut of NVDA.
247-
description=_("Set row header."),
250+
description=_(
251+
# Translators: The label of a shortcut of NVDA.
252+
"Set row header. Pressing once will set this cell as the first row header for any cell lower and to he "
253+
"right of it within this table. Pressing twice will forget the current row header for this cell."
254+
),
248255
category=SCRCAT_SYSTEMCARET
249256
)
250257
def script_setRowHeader(self,gesture):

source/NVDAObjects/window/excel.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,8 +1462,12 @@ def script_openDropdown(self,gesture):
14621462
eventHandler.queueEvent("gainFocus",d)
14631463

14641464
@script(
1465-
# Translators: the description for a script for Excel
1466-
description=_("Sets the current cell as start of column header"),
1465+
description=_(
1466+
# Translators: the description for a script for Excel
1467+
"Sets the current cell as start of column header. Pressing once will set this cell as the first column "
1468+
"header for any cell lower and to the right of it within this region. Pressing twice will forget the "
1469+
"current column header for this cell."
1470+
),
14671471
gesture="kb:NVDA+shift+c",
14681472
category=SCRCAT_SYSTEMCARET
14691473
)
@@ -1485,8 +1489,11 @@ def script_setColumnHeader(self,gesture):
14851489
ui.message(_("Cannot find {address} in column headers").format(address=self.cellCoordsText))
14861490

14871491
@script(
1488-
# Translators: the description for a script for Excel
1489-
description=_("sets the current cell as start of row header"),
1492+
description=_(
1493+
# Translators: the description for a script for Excel
1494+
"sets the current cell as start of row headers. Pressing once will set this cell as the first row header "
1495+
"for any cell lower and to the right of it within this region. Pressing twice will forget the current row header for this cell."
1496+
),
14901497
gesture="kb:NVDA+shift+r",
14911498
category=SCRCAT_SYSTEMCARET
14921499
)

source/appModules/eclipse.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A part of NonVisual Desktop Access (NVDA)
22
# This file is covered by the GNU General Public License.
33
# See the file COPYING for more details.
4-
# Copyright (C) 2010-2022 NV Access Limited
4+
# Copyright (C) 2010-2023 NV Access Limited, Cyrille Bougot
55

66
import controlTypes
77
import appModuleHandler
@@ -63,7 +63,9 @@ def script_readDocumentation(self, gesture):
6363

6464
# If there aren't any suggestion selected, there is no way to find quick documentation
6565
if not self.appModule.selectedItem:
66-
gesture.send()
66+
# Translators: When trying to read the documentation but there is no selected autocompletion item in
67+
# Eclipse
68+
ui.message(_("No selection"))
6769
return
6870

6971
# Try to locate the documentation document

source/appModules/powerpnt.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,11 +1182,17 @@ def reportNewSlide(self):
11821182
self.makeTextInfo(textInfos.POSITION_FIRST).updateCaret()
11831183
sayAll.SayAllHandler.readText(sayAll.CURSOR.CARET)
11841184

1185+
@scriptHandler.script(
1186+
# Translators: The description for a script
1187+
description=_(
1188+
"Toggles between reporting the speaker notes or the actual slide content. This does not change"
1189+
" what is visible on-screen, but only what the user can read with NVDA"
1190+
),
1191+
category=SCRCAT_POWERPOINT,
1192+
)
11851193
def script_toggleNotesMode(self,gesture):
11861194
self.rootNVDAObject.notesMode=not self.rootNVDAObject.notesMode
11871195
self.rootNVDAObject.handleSlideChange()
1188-
# Translators: The description for a script
1189-
script_toggleNotesMode.__doc__=_("Toggles between reporting the speaker notes or the actual slide content. This does not change what is visible on-screen, but only what the user can read with NVDA")
11901196

11911197
def script_slideChange(self,gesture):
11921198
gesture.send()

source/browseMode.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# A part of NonVisual Desktop Access (NVDA)
22
# Copyright (C) 2007-2023 NV Access Limited, Babbage B.V., James Teh, Leonard de Ruijter,
3-
# Thomas Stivers, Accessolutions, Julien Cochuyt
3+
# Thomas Stivers, Accessolutions, Julien Cochuyt, Cyrille Bougot
44
# This file is covered by the GNU General Public License.
55
# See the file COPYING for more details.
66

@@ -604,8 +604,6 @@ def script_passThrough(self,gesture):
604604
self._focusLastFocusableObject()
605605
api.processPendingEvents(processEventQueue=True)
606606
gesture.send()
607-
# Translators: the description for the passThrough script on browseMode documents.
608-
script_passThrough.__doc__ = _("Passes gesture through to the application")
609607

610608
def script_disablePassThrough(self, gesture):
611609
if not self.passThrough or self.disableAutoPassThrough:

0 commit comments

Comments
 (0)