[orca] Present the number of results for the "list of" dialogs
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Present the number of results for the "list of" dialogs
- Date: Thu, 7 Feb 2013 20:32:48 +0000 (UTC)
commit cdcc81731b710cdab2ce8a3dd42612698c1e1295
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Feb 7 15:30:42 2013 -0500
Present the number of results for the "list of" dialogs
src/orca/structural_navigation.py | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index ec1959c..23d7fe5 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -363,6 +363,18 @@ class StructuralNavigationObject:
return
title, columnHeaders, rowData = self._dialogData()
+ count = len(objects)
+ # Translators: Orca has a command that presents a list of
+ # structural navigation objects in a dialog box so that users
+ # can navigate more quickly than they could with native keyboard
+ # navigation. This is a message that will be presented to the
+ # user to indicate how many items were found.
+ result = ngettext("%d item found", "%d items found", count) % count
+ title = "%s: %s" % (title, result)
+ if not count:
+ script.presentMessage(title)
+ return
+
rows = [[obj] + rowData(obj) for obj in objects]
orca_gui_navlist.showUI(title, columnHeaders, rows)
@@ -419,6 +431,18 @@ class StructuralNavigationObject:
return
title, columnHeaders, rowData = self._dialogData(arg=level)
+ count = len(objects)
+ # Translators: Orca has a command that presents a list of
+ # structural navigation objects in a dialog box so that users
+ # can navigate more quickly than they could with native keyboard
+ # navigation. This is a message that will be presented to the
+ # user to indicate how many items were found.
+ result = ngettext("%d item found", "%d items found", count) % count
+ title = "%s: %s" % (title, result)
+ if not count:
+ script.presentMessage(title)
+ return
+
rows = [[obj] + rowData(obj) for obj in objects]
orca_gui_navlist.showUI(title, columnHeaders, rows)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]