You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/ui
NiLuJe 32bf53cfdf
ReaderFooter: Don't duplicate a 12h clock time format option (#6973)
* ReaderFooter:
	* Honor the global twelve_hour_clock setting, instead of
	  duplicating a local one.
	  (Re #6969)

* os.date is a thin wrapper around strftime, so we might be able to get
away with some not-quite-standard extensions...

These are *definitely* supported on Linux, but are *NOT* the glibc
extension (that'd be e.g., %-I), so, hopefully, they're somewhat
portable...

They are also supported on BSD/macOS.
They are *not* supported by the MS UCRT. That means MinGW-w64, too.
This *appears* to be supported on current Bionic (it might even support
said glibc format altering extensions).

* And of course, Windows is terrible, so, make this terribly ugly to not
break it there...

* Turns out BSD also supports the dash trim format extension, so, leave
the trimming to the libc, and handle the special-casing in a way that
doesn't create stupid locals.

* Random unrelated cleanup ^^.

(https://gitter.im/koreader/koreader?at=5fd24be492aa1c4ef5d11f31)

* Update the testsuite

(Because the default used to be 24h clock).

Changed the default to 24h clock ;p.

* Explain why we don't try to fix it in Lua
3 years ago
..
data Some RTL UI fix up after #6885 (#6975) 3 years ago
elements ReaderFooter: Don't duplicate a 12h clock time format option (#6973) 3 years ago
message [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
network Minor util & ffi/util cleanups (#6657) 4 years ago
plugin Tame BackgroundRunner: stop running when no more job (#6605) 4 years ago
widget ReaderFooter: Don't duplicate a 12h clock time format option (#6973) 3 years ago
bidi.lua [RTL UI] Bidi-wrap filenames, paths, urls, metadata 4 years ago
cloudmgr.lua [feat] Synchronize local folder with dropbox (#5591) 5 years ago
downloadmgr.lua PathChooser: clearer usage and behaviour (#4133) 6 years ago
event.lua [doc] Add internal documentation references (#5285) 5 years ago
font.lua Font menu: show font names with their own font 4 years ago
geometry.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
gesturerange.lua Text input fixes and enhancements (#4084) 6 years ago
hook_container.lua Move kobo auto-suspension logic out of UIManager (#2933) 7 years ago
language.lua [fix] Czech is now cs, not cs_CZ (#6689) 4 years ago
menusorter.lua [fix] MenuSorter: use orderedPairs for orphans (#6403) 4 years ago
opdsparser.lua OPDS*: Mangle Calibre feeds some more so that they don't confuse luxl/us (#6902) 4 years ago
otamanager.lua Various Wi-Fi QoL improvements (#6424) 4 years ago
quickstart.lua [CI] Switch to custom xgettext build to extract multiline strings (#5242) 5 years ago
renderimage.lua RenderImage: add renderSVGImageFile() (#6950) 3 years ago
rendertext.lua UI font rendering: use available bold fonts for bold (#5675) 5 years ago
screensaver.lua [feat] Allow message to be overlaid on other screensavers (#6238) 4 years ago
size.lua [UX] Thicker loading bar (#5581) 5 years ago
timeval.lua [fix] TimeVal: add dbg:guard against incorrect subtraction order (#4669) 5 years ago
translator.lua Minor util & ffi/util cleanups (#6657) 4 years ago
trapper.lua Make UIManager track prevent/allowStandby state. (#6558) 4 years ago
uimanager.lua [Kobo] Don't attempt to restart Nickel when asking for a reboot/shutdown (#6880) 4 years ago
wikipedia.lua Floor dimension computations (mul/div). (#6264) 4 years ago