[nvda-addons] Re: commit/resourceMonitor: 4 new changesets

  • From: "Joseph Lee" <joseph.lee22590@xxxxxxxxx>
  • To: <nvda-addons@xxxxxxxxxxxxx>, <nvda-addons-commits@xxxxxxxxxxxxx>
  • Date: Fri, 28 Apr 2017 11:33:13 -0700

Hi,

Resource Monitor 17.05 will hit the air soon, which now includes a new command 
to announce system's uptime (time passed since last boot).
Cheers,
Joseph

-----Original Message-----
From: nvda-addons-commits-bounce@xxxxxxxxxxxxx 
[mailto:nvda-addons-commits-bounce@xxxxxxxxxxxxx] On Behalf Of ;
commits-noreply@xxxxxxxxxxxxx
Sent: Friday, April 28, 2017 11:31 AM
To: nvda-addons-commits@xxxxxxxxxxxxx
Subject: commit/resourceMonitor: 4 new changesets

4 new commits in resourceMonitor:

https://bitbucket.org/nvdaaddonteam/resourcemonitor/commits/0777af89c47e/
Changeset:   0777af89c47e
Branch:      None
User:        tuukkao
Date:        2017-04-17 12:00:32+00:00
Summary:     Add a script for announcing the system's uptime.

Affected #:  3 files

diff --git a/addon/globalPlugins/resourceMonitor/__init__.py 
b/addon/globalPlugins/resourceMonitor/__init__.py
index e2698d4..28c73ca 100644
--- a/addon/globalPlugins/resourceMonitor/__init__.py
+++ b/addon/globalPlugins/resourceMonitor/__init__.py
@@ -1,9 +1,10 @@
 #Resource Monitor for NvDA
 #Presents basic info on CPU load, memory and disk usage, as well as battery 
information.
-#Authors: Alex Hall (core mechanics and messages), Joseph Lee 
(internationalization), Beqa Gozalishvili (updated psutil to 0.6.1, and made 
needed changes to make code run).
+#Authors: Alex Hall (core mechanics and messages), Joseph Lee 
(internationalization), Beqa Gozalishvili (updated psutil to 0.6.1, and made 
needed changes to make code run), Tuukka Ojala (uptime).
 # Copyright 2013-2017, released under GPL.
 
 import _winreg
+from datetime import datetime
 import sys
 import os
 import globalPluginHandler
@@ -173,6 +174,31 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
        # Translators: Input help mode message about Windows version command in 
Resource Monitor.
        script_announceWinVer.__doc__=_("Announces the version of Windows you 
are using.")
 
+       def getUptime(self):
+               bootTimestamp = psutil.boot_time()
+               if bootTimestamp == 0.0:
+                       raise TypeError
+               uptime = datetime.now() - datetime.fromtimestamp(bootTimestamp)
+               hours, remainingMinutes = divmod(uptime.seconds, 3600)
+               minutes, seconds = divmod(remainingMinutes, 60)
+               hoursMinutesSeconds = 
"{hours:02}:{minutes:02}:{seconds:02}".format(hours=hours, minutes=minutes, 
seconds=seconds)
+               # Translators: The system's uptime
+               return _("{days} days, 
+{hoursMinutesSeconds}").format(days=uptime.days, 
+hoursMinutesSeconds=hoursMinutesSeconds)
+
+       def script_announceUptime(self, gesture):
+               try:
+                       uptime = self.getUptime()
+                       if scriptHandler.getLastScriptRepeatCount() == 0:
+                               ui.message(uptime)
+                       else:
+                               if api.copyToClip(uptime):
+                                       ui.message(self.RMCopyMessage)
+               except:
+                       # Translators: Obtaining uptime failed
+                       ui.message(_("Failed to get the system's uptime."))
+       # Translators: Input help mode message about obtaining the system's 
uptime
+       script_announceUptime.__doc__=_("Announces the system's uptime.")
+
        def script_announceResourceSummary(self, gesture):
                # Faster to build info on the fly rather than keep appending to 
a string.
                # Translators: presents the overall summary of resource usage, 
such as CPU load and RAM usage.
@@ -200,4 +226,5 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                "KB:NVDA+shift+4":"announceBatteryInfo",
                "KB:NVDA+shift+5":"announceRamInfo",
                "KB:NVDA+shift+6":"announceWinVer",
+               "kb:nvda+shift+7": "announceUptime",
        }

diff --git a/buildVars.py b/buildVars.py index d264b52..0358ef0 100644
--- a/buildVars.py
+++ b/buildVars.py
@@ -21,7 +21,7 @@ addon_info = {
        # version
        "addon_version" : "17.02",
        # Author(s)
-       "addon_author" : "Alex Hall <mehgcap@xxxxxxxxx>, Joseph Lee 
<joseph.lee22590@xxxxxxxxx>, beqa gozalishvili <beqaprogger@xxxxxxxxx> and 
other NVDA contributors",
+       "addon_author" : "Alex Hall <mehgcap@xxxxxxxxx>, Joseph Lee 
+<joseph.lee22590@xxxxxxxxx>, beqa gozalishvili <beqaprogger@xxxxxxxxx>, 
+Tuukka Ojala <tuukka.ojala@xxxxxxxxx> and other NVDA contributors",
        # URL for the add-on documentation support
        "addon_url" : "http://addons.nvda-project.org/";,
        # Documentation file name

diff --git a/readme.md b/readme.md
index 4785686..4035c59 100644
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,6 @@
 [[!meta title="Resource Monitor"]]
 
-* Authors: Alex Hall, Joseph Lee, beqa gozalishvili and other NVDA contributors
+* Authors: Alex Hall, Joseph Lee, beqa gozalishvili, Tuukka Ojala and 
+other NVDA contributors
 * Download [stable version][1]
 
 This plugin gives information about CPU load, memory usage and other resource 
usage information.
@@ -13,6 +13,7 @@ This plugin gives information about CPU load, memory usage 
and other resource us
 * NVDA+Shift+3 Presents the used and total space of the static and removable 
drives.
 * NVDA+Shift+4 Presents battery percentage, charging status, remaining time 
(if not charging), and a warning if the battery is low or critical.
 * NVDA+Shift+6 Presents  CPU Architecture 32/64-bit and Windows version and 
service pack numbers.
+* NVDA+Shift+7 presents the system's uptime.
 
 If you have NvDA 2013.3 or later installed, you can change these shortcut keys.
 


https://bitbucket.org/nvdaaddonteam/resourcemonitor/commits/4bd5b1702b0f/
Changeset:   4bd5b1702b0f
Branch:      None
User:        josephsl
Date:        2017-04-19 08:43:28+00:00
Summary:     17.05: System uptime will be announced when NVDA+Shift+7 is 
pressed. re #2

Add a script for announcing the system's uptime.
Affected #:  3 files

diff --git a/addon/globalPlugins/resourceMonitor/__init__.py 
b/addon/globalPlugins/resourceMonitor/__init__.py
index e2698d4..28c73ca 100644
--- a/addon/globalPlugins/resourceMonitor/__init__.py
+++ b/addon/globalPlugins/resourceMonitor/__init__.py
@@ -1,9 +1,10 @@
 #Resource Monitor for NvDA
 #Presents basic info on CPU load, memory and disk usage, as well as battery 
information.
-#Authors: Alex Hall (core mechanics and messages), Joseph Lee 
(internationalization), Beqa Gozalishvili (updated psutil to 0.6.1, and made 
needed changes to make code run).
+#Authors: Alex Hall (core mechanics and messages), Joseph Lee 
(internationalization), Beqa Gozalishvili (updated psutil to 0.6.1, and made 
needed changes to make code run), Tuukka Ojala (uptime).
 # Copyright 2013-2017, released under GPL.
 
 import _winreg
+from datetime import datetime
 import sys
 import os
 import globalPluginHandler
@@ -173,6 +174,31 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
        # Translators: Input help mode message about Windows version command in 
Resource Monitor.
        script_announceWinVer.__doc__=_("Announces the version of Windows you 
are using.")
 
+       def getUptime(self):
+               bootTimestamp = psutil.boot_time()
+               if bootTimestamp == 0.0:
+                       raise TypeError
+               uptime = datetime.now() - datetime.fromtimestamp(bootTimestamp)
+               hours, remainingMinutes = divmod(uptime.seconds, 3600)
+               minutes, seconds = divmod(remainingMinutes, 60)
+               hoursMinutesSeconds = 
"{hours:02}:{minutes:02}:{seconds:02}".format(hours=hours, minutes=minutes, 
seconds=seconds)
+               # Translators: The system's uptime
+               return _("{days} days, 
+{hoursMinutesSeconds}").format(days=uptime.days, 
+hoursMinutesSeconds=hoursMinutesSeconds)
+
+       def script_announceUptime(self, gesture):
+               try:
+                       uptime = self.getUptime()
+                       if scriptHandler.getLastScriptRepeatCount() == 0:
+                               ui.message(uptime)
+                       else:
+                               if api.copyToClip(uptime):
+                                       ui.message(self.RMCopyMessage)
+               except:
+                       # Translators: Obtaining uptime failed
+                       ui.message(_("Failed to get the system's uptime."))
+       # Translators: Input help mode message about obtaining the system's 
uptime
+       script_announceUptime.__doc__=_("Announces the system's uptime.")
+
        def script_announceResourceSummary(self, gesture):
                # Faster to build info on the fly rather than keep appending to 
a string.
                # Translators: presents the overall summary of resource usage, 
such as CPU load and RAM usage.
@@ -200,4 +226,5 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                "KB:NVDA+shift+4":"announceBatteryInfo",
                "KB:NVDA+shift+5":"announceRamInfo",
                "KB:NVDA+shift+6":"announceWinVer",
+               "kb:nvda+shift+7": "announceUptime",
        }

diff --git a/buildVars.py b/buildVars.py index d264b52..0358ef0 100644
--- a/buildVars.py
+++ b/buildVars.py
@@ -21,7 +21,7 @@ addon_info = {
        # version
        "addon_version" : "17.02",
        # Author(s)
-       "addon_author" : "Alex Hall <mehgcap@xxxxxxxxx>, Joseph Lee 
<joseph.lee22590@xxxxxxxxx>, beqa gozalishvili <beqaprogger@xxxxxxxxx> and 
other NVDA contributors",
+       "addon_author" : "Alex Hall <mehgcap@xxxxxxxxx>, Joseph Lee 
+<joseph.lee22590@xxxxxxxxx>, beqa gozalishvili <beqaprogger@xxxxxxxxx>, 
+Tuukka Ojala <tuukka.ojala@xxxxxxxxx> and other NVDA contributors",
        # URL for the add-on documentation support
        "addon_url" : "http://addons.nvda-project.org/";,
        # Documentation file name

diff --git a/readme.md b/readme.md
index 4785686..4035c59 100644
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,6 @@
 [[!meta title="Resource Monitor"]]
 
-* Authors: Alex Hall, Joseph Lee, beqa gozalishvili and other NVDA contributors
+* Authors: Alex Hall, Joseph Lee, beqa gozalishvili, Tuukka Ojala and 
+other NVDA contributors
 * Download [stable version][1]
 
 This plugin gives information about CPU load, memory usage and other resource 
usage information.
@@ -13,6 +13,7 @@ This plugin gives information about CPU load, memory usage 
and other resource us
 * NVDA+Shift+3 Presents the used and total space of the static and removable 
drives.
 * NVDA+Shift+4 Presents battery percentage, charging status, remaining time 
(if not charging), and a warning if the battery is low or critical.
 * NVDA+Shift+6 Presents  CPU Architecture 32/64-bit and Windows version and 
service pack numbers.
+* NVDA+Shift+7 presents the system's uptime.
 
 If you have NvDA 2013.3 or later installed, you can change these shortcut keys.
 


https://bitbucket.org/nvdaaddonteam/resourcemonitor/commits/b7dbdce5df27/
Changeset:   b7dbdce5df27
Branch:      None
User:        josephsl
Date:        2017-04-19 22:33:22+00:00
Summary:     Merge branch 'stable'

Affected #:  3 files

diff --git a/addon/globalPlugins/resourceMonitor/__init__.py 
b/addon/globalPlugins/resourceMonitor/__init__.py
index 28c73ca..0a20bd4 100644
--- a/addon/globalPlugins/resourceMonitor/__init__.py
+++ b/addon/globalPlugins/resourceMonitor/__init__.py
@@ -43,6 +43,7 @@ releaseIDs={
        10240:("Windows 10Ver1507","Windows Server Tech Preview"),
        10586:("Windows 10Ver1511","Windows Server Tech Preview"),
        14393:("Windows 10Ver1607","Windows Server 2016"),
+       15063:("Windows 10Ver1703","Windows Server 1703"),
 }
 
 def _win10RID(build, isClient):

diff --git a/addon/locale/vi/LC_MESSAGES/nvda.po 
b/addon/locale/vi/LC_MESSAGES/nvda.po
new file mode 100644
index 0000000..6a8b166
--- /dev/null
+++ b/addon/locale/vi/LC_MESSAGES/nvda.po
@@ -0,0 +1,167 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is 
+distributed under the same license as the resourceMonitor package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: resourceMonitor 17.02\n"
+"Report-Msgid-Bugs-To: nvda-translations@xxxxxxxxxxxxx\n"
+"POT-Creation-Date: 2017-02-03 18:05+1000\n"
+"PO-Revision-Date: 2017-03-25 19:28+0700\n"
+"Language: vi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Last-Translator: Dang Hoai Phuc <danghoaiphuc@xxxxxxxxx>\n"
+"Language-Team: \n"
+"X-Generator: Poedit 1.8.12\n"
+
+#. Translators: The gestures category for this add-on in input gestures dialog 
(2013.3 or later).
+#. Add-on summary, usually the user visible name of the addon.
+#. Translators: Summary for this add-on to be shown on installation and add-on 
information.
+msgid "Resource Monitor"
+msgstr "Theo Dõi Tài Nguyên"
+
+#. Translators: Presented when a resource summary is copied to clipboard.
+msgid "Resource summary copied to clipboard"
+msgstr "Đã chép thông tin tóm tắt của tài liệu lên bộ nhớ tạm"
+
+#. Translators: Message reported when there is no battery on the system, 
mostly laptops with battery pack removed and running on AC power.
+msgid "This computer does not have a battery connected."
+msgstr "Máy tính bạn không có sử dụng pin"
+
+#. Translators: message presented when AC is connected and battery is 
charging, also show current battery percentage.
+#, python-brace-format
+msgid "{percent}%, battery charging."
+msgstr "Đang sạc pin, {percent}%. "
+
+#. Translators: message presented when computer is running on battery power, 
showing percentage remaining and estimated remaining time.
+#. discharging battery, so provide info on it #, python-brace-format 
+msgid "{percent}% battery remaining, about {time}."
+msgstr "Pin còn {percent}%, khoảng {time}."
+
+#. Translators: Message reported when battery level is low.
+msgid " Warning: low battery."
+msgstr " Cảnh báo: pin yếu."
+
+#. Translators: Message reported when battery level is critical.
+msgid " Warning: battery is critically low."
+msgstr " Cảnh báo: gần hết pin."
+
+#. Translators: Input help message about battery info command in Resource 
Monitor.
+msgid ""
+"Presents battery percentage, charging status, remaining time (if not "
+"charging), and a warning if the battery is low or critical."
+msgstr ""
+"Thông báo tình trạng pin, ví dụ như đang sạc, thời gian còn lại, tình trạng "
+"pin yếu hoặc khi gần hết pin."
+
+#. Translators: Shows drive letter, type of drive (fixed or removable), used 
capacity and total capacity of a drive (example: C drive, ntfs; 40 GB of 100 GB 
used (40%).
+#, python-brace-format
+msgid ""
+"{driveName} ({driveType} drive): {usedSpace} of {totalSpace} used {percent}%."
+msgstr ""
+"{driveName} (ổ đĩa {driveType}): {usedSpace} của {totalSpace} được sử dụng "
+"{percent}%."
+
+#. Translators: Input help message about drive info command in Resource 
Monitor.
+msgid ""
+"Presents the used and total space of the static and removable drives on this "
+"computer."
+msgstr ""
+"Thông báo không gian lưu trữ tổng và không gian đã sử dụng của ổ đĩa được "
+"kết nối với máy."
+
+#. Translators: Shows average load of CPU cores (example: core 1, 50%).
+#, python-brace-format
+msgid "Core {coreNumber}: {corePercent}%"
+msgstr "Nhân {coreNumber}: {corePercent}%"
+
+#. Translators: Shows average load of the processor and the load for each core.
+#, python-brace-format
+msgid "Average CPU load {avgLoad}%, {cores}."
+msgstr "Tải trung bình của CPU {avgLoad}%, {cores}."
+
+#. Translators: Input help mode message about processor info command in 
Resource Monitor.
+msgid "Presents the average processor load and the load of each core."
+msgstr "Thông báo tình trạng tải trung bình của bộ xử lý và của mỗi nhân."
+
+#. Translators: Shows RAM (physical memory) usage.
+#, python-brace-format
+msgid "Physical: {physicalUsed} of {physicalTotal} used ({physicalPercent}%). "
+msgstr ""
+"Vật lý: {physicalUsed} của {physicalTotal} được sử dụng "
+"({physicalPercent}%). "
+
+#. Translators: Shows virtual memory usage.
+#, python-brace-format
+msgid "Virtual: {virtualUsed} of {virtualTotal} used ({virtualPercent}%)."
+msgstr "Ảo: {virtualUsed} của {virtualTotal} được sử dụng ({virtualPercent}%)."
+
+#. Translators: Input help mode message about memory info command in Resource 
Monitor.
+msgid "Presents the used and total space for both physical and virtual ram."
+msgstr "Thông báo tình trạng bộ nhớ RAM vật lý và ảo."
+
+#. Translators: Presented under 64-bit Windows.
+msgid "64-bit"
+msgstr "64-bit"
+
+#. Translators: Presented under 32-bit Windows.
+msgid "32-bit"
+msgstr "32-bit"
+
+#. Translators: Presents Windows version (example output: "Windows version: 
Windows XP (32-bit)").
+#, python-brace-format
+msgid "Windows version: {winVersion} ({cpuBit})"
+msgstr "Phiên bản Windows: {winVersion} ({cpuBit})"
+
+#. Translators: Presents Windows version and service pack level (example 
output: "Windows version: Windows 7 service pack 1 (64-bit)").
+#, python-brace-format
+msgid "Windows version: {winVersion} {servicePackLevel} ({cpuBit})"
+msgstr "Phiên bản Windows: {winVersion} {servicePackLevel} ({cpuBit})"
+
+#. Translators: Input help mode message about Windows version command in 
Resource Monitor.
+msgid "Announces the version of Windows you are using."
+msgstr "Thông báo phiên bản Windows bạn đang sử dụng."
+
+#. Faster to build info on the fly rather than keep appending to a string.
+#. Translators: presents the overall summary of resource usage, such as CPU 
load and RAM usage.
+#, python-brace-format
+msgid "{ramPercent}% RAM used, CPU at {cpuPercent}%."
+msgstr "{ramPercent}% RAM được sử dụng, {cpuPercent}% CPU được tải."
+
+#. Translators: In addition to processor and memory usage, presented when 
battery is low.
+msgid " Warning: critically low battery."
+msgstr " Cảnh báo: gần sắp hết pin."
+
+#. Translators: Input help mode message about overall system resource 
+info command in Resource Monitor msgid ""
+"Presents used ram, average processor load, and battery info if available."
+msgstr "Thông báo tình trạng pin, bộ nhớ RAM và tốc độ tải trung bình của CPU"
+
+#. Translators: For battery status report, if battery time is 1 hour range 
(example: 1 hour, 30 minutes).
+msgid " hour, "
+msgstr " giờ, "
+
+#. Translators: For battery status report, if battery time is 2 hour range or 
greater (example: 3 hours, 10 minutes).
+msgid " hours, "
+msgstr " giờ, "
+
+#. Translators: For battery status report, minute value is 1 (example: 1 hour, 
1 minute).
+msgid " minute"
+msgstr " phút"
+
+#. Translators: For battery status report, minute value is 0 or between 2 and 
59 (example: 1 hour, 40 minutes).
+msgid " minutes"
+msgstr " phút"
+
+#. Add-on description
+#. Translators: Long description to be shown for this add-on on add-on 
+information from add-ons manager msgid ""
+"A handy resource monitor to report CPU load, memory usage, battery, disk "
+"usage status and more."
+msgstr ""
+"Add-on này dùng để thông báo tình trạng sử dụng các thiết bị của máy, bao "
+"gồm: CPU, RAM, ổ đĩa và pin."

diff --git a/buildVars.py b/buildVars.py index 0358ef0..5018c0a 100644
--- a/buildVars.py
+++ b/buildVars.py
@@ -19,7 +19,7 @@ addon_info = {
        # Translators: Long description to be shown for this add-on on add-on 
information from add-ons manager
        "addon_description" : _("A handy resource monitor to report CPU load, 
memory usage, battery, disk usage status and more."),
        # version
-       "addon_version" : "17.02",
+       "addon_version" : "17.04",
        # Author(s)
        "addon_author" : "Alex Hall <mehgcap@xxxxxxxxx>, Joseph Lee 
<joseph.lee22590@xxxxxxxxx>, beqa gozalishvili <beqaprogger@xxxxxxxxx>, Tuukka 
Ojala <tuukka.ojala@xxxxxxxxx> and other NVDA contributors",
        # URL for the add-on documentation support


https://bitbucket.org/nvdaaddonteam/resourcemonitor/commits/4d475a6b713e/
Changeset:   4d475a6b713e
Branch:      stable
User:        josephsl
Date:        2017-04-28 18:23:00+00:00
Summary:     Merge branch 'master' into stable

Affected #:  3 files

diff --git a/addon/globalPlugins/resourceMonitor/__init__.py 
b/addon/globalPlugins/resourceMonitor/__init__.py
index 0c32036..0a20bd4 100644
--- a/addon/globalPlugins/resourceMonitor/__init__.py
+++ b/addon/globalPlugins/resourceMonitor/__init__.py
@@ -1,9 +1,10 @@
 #Resource Monitor for NvDA
 #Presents basic info on CPU load, memory and disk usage, as well as battery 
information.
-#Authors: Alex Hall (core mechanics and messages), Joseph Lee 
(internationalization), Beqa Gozalishvili (updated psutil to 0.6.1, and made 
needed changes to make code run).
+#Authors: Alex Hall (core mechanics and messages), Joseph Lee 
(internationalization), Beqa Gozalishvili (updated psutil to 0.6.1, and made 
needed changes to make code run), Tuukka Ojala (uptime).
 # Copyright 2013-2017, released under GPL.
 
 import _winreg
+from datetime import datetime
 import sys
 import os
 import globalPluginHandler
@@ -174,6 +175,31 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
        # Translators: Input help mode message about Windows version command in 
Resource Monitor.
        script_announceWinVer.__doc__=_("Announces the version of Windows you 
are using.")
 
+       def getUptime(self):
+               bootTimestamp = psutil.boot_time()
+               if bootTimestamp == 0.0:
+                       raise TypeError
+               uptime = datetime.now() - datetime.fromtimestamp(bootTimestamp)
+               hours, remainingMinutes = divmod(uptime.seconds, 3600)
+               minutes, seconds = divmod(remainingMinutes, 60)
+               hoursMinutesSeconds = 
"{hours:02}:{minutes:02}:{seconds:02}".format(hours=hours, minutes=minutes, 
seconds=seconds)
+               # Translators: The system's uptime
+               return _("{days} days, 
+{hoursMinutesSeconds}").format(days=uptime.days, 
+hoursMinutesSeconds=hoursMinutesSeconds)
+
+       def script_announceUptime(self, gesture):
+               try:
+                       uptime = self.getUptime()
+                       if scriptHandler.getLastScriptRepeatCount() == 0:
+                               ui.message(uptime)
+                       else:
+                               if api.copyToClip(uptime):
+                                       ui.message(self.RMCopyMessage)
+               except:
+                       # Translators: Obtaining uptime failed
+                       ui.message(_("Failed to get the system's uptime."))
+       # Translators: Input help mode message about obtaining the system's 
uptime
+       script_announceUptime.__doc__=_("Announces the system's uptime.")
+
        def script_announceResourceSummary(self, gesture):
                # Faster to build info on the fly rather than keep appending to 
a string.
                # Translators: presents the overall summary of resource usage, 
such as CPU load and RAM usage.
@@ -201,4 +227,5 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin):
                "KB:NVDA+shift+4":"announceBatteryInfo",
                "KB:NVDA+shift+5":"announceRamInfo",
                "KB:NVDA+shift+6":"announceWinVer",
+               "kb:nvda+shift+7": "announceUptime",
        }

diff --git a/buildVars.py b/buildVars.py index 7b93160..5018c0a 100644
--- a/buildVars.py
+++ b/buildVars.py
@@ -21,7 +21,7 @@ addon_info = {
        # version
        "addon_version" : "17.04",
        # Author(s)
-       "addon_author" : "Alex Hall <mehgcap@xxxxxxxxx>, Joseph Lee 
<joseph.lee22590@xxxxxxxxx>, beqa gozalishvili <beqaprogger@xxxxxxxxx> and 
other NVDA contributors",
+       "addon_author" : "Alex Hall <mehgcap@xxxxxxxxx>, Joseph Lee 
+<joseph.lee22590@xxxxxxxxx>, beqa gozalishvili <beqaprogger@xxxxxxxxx>, 
+Tuukka Ojala <tuukka.ojala@xxxxxxxxx> and other NVDA contributors",
        # URL for the add-on documentation support
        "addon_url" : "http://addons.nvda-project.org/";,
        # Documentation file name

diff --git a/readme.md b/readme.md
index 4785686..4035c59 100644
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,6 @@
 [[!meta title="Resource Monitor"]]
 
-* Authors: Alex Hall, Joseph Lee, beqa gozalishvili and other NVDA contributors
+* Authors: Alex Hall, Joseph Lee, beqa gozalishvili, Tuukka Ojala and 
+other NVDA contributors
 * Download [stable version][1]
 
 This plugin gives information about CPU load, memory usage and other resource 
usage information.
@@ -13,6 +13,7 @@ This plugin gives information about CPU load, memory usage 
and other resource us
 * NVDA+Shift+3 Presents the used and total space of the static and removable 
drives.
 * NVDA+Shift+4 Presents battery percentage, charging status, remaining time 
(if not charging), and a warning if the battery is low or critical.
 * NVDA+Shift+6 Presents  CPU Architecture 32/64-bit and Windows version and 
service pack numbers.
+* NVDA+Shift+7 presents the system's uptime.
 
 If you have NvDA 2013.3 or later installed, you can change these shortcut keys.

Repository URL: https://bitbucket.org/nvdaaddonteam/resourcemonitor/

--

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: A list to discuss add-on code enhancements and for reporting bugs.

Community addons are available from: http://addons.nvda-project.org
To send a message to the list: nvda-addons@xxxxxxxxxxxxx
To change your list settings/unsubscribe: 
//www.freelists.org/list/nvda-addons
To contact list moderators: nvda-addons-moderators@xxxxxxxxxxxxx

Other related posts:

  • » [nvda-addons] Re: commit/resourceMonitor: 4 new changesets - Joseph Lee