We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Battery plugin says Consumed in the During last charge section. It should be Charged instead.
Consumed
During last charge
Charged
The text was updated successfully, but these errors were encountered:
i didn't check your statement.If true you can fix it with
--- a/plugins/batterystat.koplugin/main.lua +++ b/plugins/batterystat.koplugin/main.lua @@ -79,8 +79,9 @@ local function shorten(number) return string.format("%.2f", number); end -function Usage:dump(kv_pairs) - table.insert(kv_pairs, {INDENTATION .. _("Consumed %"), shorten(self.percentage)}) +function Usage:dump(kv_pairs, id) + local name = id or _("Consumed %") + table.insert(kv_pairs, {INDENTATION .. name, shorten(self.percentage)}) table.insert(kv_pairs, {INDENTATION .. _("Total time"), util.secondsToHClock(self.time, true, true)}) table.insert(kv_pairs, {INDENTATION .. _("% per hour"), shorten(self:percentagePerHour())}) end @@ -254,7 +255,7 @@ function BatteryStat:dump() self.sleeping:dump(kv_pairs) self.sleeping:dumpRemaining(kv_pairs) table.insert(kv_pairs, {_("During last charge"), ""}) - self.charging:dump(kv_pairs) + self.charging:dump(kv_pairs, _("Charged %")) self.charging:dumpCharging(kv_pairs) table.insert(kv_pairs, {_("Since last charge"), ""}) self.discharging:dump(kv_pairs)
Sorry, something went wrong.
[Plugin] BatteryStat: consumed → charged for charging
da1dc2d
Closes <koreader#6057>.
[Plugin] BatteryStat: consumed → charged for charging (#6646)
b031d1c
Closes <#6057>.
pazos
Successfully merging a pull request may close this issue.
Issue
Battery plugin says
![Reader_2020-Apr-12_135629](https://user-images.githubusercontent.com/6279855/79299621-8d697a80-7eb2-11ea-87f6-a3a3c3bda598.png)
Consumed
in theDuring last charge
section.It should be
Charged
instead.The text was updated successfully, but these errors were encountered: