Make translateable: SystemStat, custom footer (#9945)

Fixes #9942.
reviewable/pr9959/r1
zwim 1 year ago committed by GitHub
parent c9df3a000f
commit ebaef61536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -626,7 +626,7 @@ end
function ReaderFooter:set_custom_text(touchmenu_instance) function ReaderFooter:set_custom_text(touchmenu_instance)
local text_dialog local text_dialog
text_dialog = MultiInputDialog:new{ text_dialog = MultiInputDialog:new{
title = "Enter a custom text", title = _("Enter a custom text"),
fields = { fields = {
{ {
text = self.custom_text or "", text = self.custom_text or "",

@ -53,12 +53,22 @@ function SystemStat:putSeparator()
end end
function SystemStat:appendCounters() function SystemStat:appendCounters()
self:put({_("KOReader started at"), os.date("%c", time.to_s(self.start_time))}) local use_twelve_hour_clock = G_reader_settings:isTrue("twelve_hour_clock")
self:put({
_("KOReader started at"),
datetime.secondsToDateTime(time.to_s(self.start_time), use_twelve_hour_clock, true)
})
if self.suspend_time then if self.suspend_time then
self:put({_(" Last suspend time"), os.date("%c", time.to_s(self.suspend_time))}) self:put({
" " .. _("Last suspend time"),
datetime.secondsToDateTime(time.to_s(self.suspend_time), use_twelve_hour_clock, true)
})
end end
if self.resume_time then if self.resume_time then
self:put({_(" Last resume time"), os.date("%c", time.to_s(self.resume_time))}) self:put({
" " .. _("Last resume time"),
datetime.secondsToDateTime(time.to_s(self.resume_time), use_twelve_hour_clock, true)
})
end end
local uptime = time.boottime_or_realtime_coarse() - self.start_monotonic_time local uptime = time.boottime_or_realtime_coarse() - self.start_monotonic_time
local suspend = 0 local suspend = 0

Loading…
Cancel
Save