[plugin] String and formatting (#8980)

Easy the life of translators and fixes a stupid string typo.
pull/8983/head
zwim 2 years ago committed by GitHub
parent eaa6e77398
commit b845674bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,5 +2,5 @@ local _ = require("gettext")
return {
name = "autosuspend",
fullname = _("Auto power save"),
description = _([["Puts the device into standby, suspend or power off after specified periods of inactivity."]]),
description = _([[Puts the device into standby, suspend or power off after specified periods of inactivity.]]),
}

@ -44,14 +44,14 @@ function SystemStat:appendCounters()
if self.resume_sec then
self:put({_(" Last resume time"), os.date("%c", self.resume_sec)})
end
self:put({_(" Up time"),
self:put({" " .. _("Up time"),
util.secondsToClockDuration("", os.difftime(os.time(), self.start_sec), false, true, true)})
if Device:canSuspend() then
self:put({_(" Time in suspend"),
self:put({" " .. _("Time in suspend"),
util.secondsToClockDuration("", Device.total_suspend_tv:tonumber(), false, true, true)})
end
if Device:canStandby() then
self:put({_(" Time in standby"),
self:put({" " .. _("Time in standby"),
util.secondsToClockDuration("", Device.total_standby_tv:tonumber(), false, true, true)})
end
self:put({_("Counters"), ""})

Loading…
Cancel
Save