1 new commit in controlUsageAssistant: https://bitbucket.org/nvdaaddonteam/controlusageassistant/commits/737ad3af9b05/ Changeset: 737ad3af9b05 Branch: master User: josephsl Date: 2013-05-23 13:48:01 Summary: 2.0-dev: Translations - added translatable strings and comments; virtual buffer: now uses different code to detect special cases with Adobe REader. Affected #: 2 files diff --git a/addon/globalPlugins/controlUsageAssistant/__init__.py b/addon/globalPlugins/controlUsageAssistant/__init__.py index 54883f7..e368283 100755 --- a/addon/globalPlugins/controlUsageAssistant/__init__.py +++ b/addon/globalPlugins/controlUsageAssistant/__init__.py @@ -45,12 +45,8 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin): # In case appModule is not found but we do have the current process name registered. return procOffsets[curProc] elif isinstance(curObj.treeInterceptor, VirtualBuffer): - # We're dealing with virtual buffer (virtual buffer is a tree interceptor). However, watch out for Adobe Reader. - if curProc == "AcroRd32.exe": - return -400 - else: - # Not Adobe Reader. - return 200 + # We're dealing with virtual buffer (virtual buffer is a tree interceptor). However, watch out for Adobe Reader (check using ternary operation). + return -400 if (curProc == "AcroRd32.exe") else 200 else: # Found nothing, so return zero to fall back to default entries. return 0 diff --git a/addon/globalPlugins/controlUsageAssistant/ctrltypelist.py b/addon/globalPlugins/controlUsageAssistant/ctrltypelist.py index 8a6e428..dcea57c 100755 --- a/addon/globalPlugins/controlUsageAssistant/ctrltypelist.py +++ b/addon/globalPlugins/controlUsageAssistant/ctrltypelist.py @@ -48,23 +48,32 @@ helpMessages = { 64:"Press enter to interact with the embedded object. Press CONTROL+NVDA+SPACE to return to the website text", # 200: Virtual Buffer. - 252:"Use the browse mode and quick navigation commands to read through the webpage", + + # Translators: Help message for reading virtual buffer documents, such as webpages. + 252:_("Use the browse mode and quick navigation commands to read through the webpage"), # App-specific case 1: AppeModule for app is present. # 300: Explorer (to deal with specific cases. - 329:"Use the arrow keys to move between start screen tiles", + + # Translators: Help message for navigating start screen tiles (for Windows 8). + 329:_("Use the arrow keys to move between start screen tiles"), # 400: Microsoft powerpoint (powerpnt): + + # Translators: Help message for viewing list of slides in Powerpoint. 403:"Use up and down arrow keys to move between slides", # App-specific case 2: AppeModule for app is not present (use processes). + # -300: Excel. + # Translators: Help message for navigating spreadsheet cells in Excel. -329:_("Use the arrow keys to move between spreadsheet cells"), # -400: Adobe Reader (special case). - -452:"Use the browse mode and quick navigation commands to read through the PDF document" + # Translators: Help message for reading PDF documents in Adobe Reader. + -452:_("Use the browse mode and quick navigation commands to read the PDF document") } Repository URL: https://bitbucket.org/nvdaaddonteam/controlusageassistant/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. ---------------------------------------------------------------- NVDA add-ons Central: A list for discussing NVDA add-ons To post a message, send an email to nvda-addons@xxxxxxxxxxxxx. To unsubscribe, send an email with the subject line of "unsubscribe" (without quotes) to nvda-addons-request@xxxxxxxxxxxxx. If you have questions for list moderators, please send a message to nvda-addons-moderators@xxxxxxxxxxxxx. Community addons can be found here: http://addons.nvda-project.org