mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:03:26 +02:00
Edit the time in the 24 hour clock when calibre's interface language is set to German. Fixes #1001809 (Localization issue on scheduled news downloading)
This commit is contained in:
parent
82cb4bd7b5
commit
1c17a69e93
1 changed files with 3 additions and 0 deletions
|
|
@ -22,6 +22,7 @@
|
|||
from calibre.utils.date import utcnow
|
||||
from calibre.utils.network import internet_connected
|
||||
from calibre import force_unicode
|
||||
from calibre.utils.localization import get_lang, canonicalize_lang
|
||||
|
||||
def convert_day_time_schedule(val):
|
||||
day_of_week, hour, minute = val
|
||||
|
|
@ -57,6 +58,8 @@ def __init__(self, parent=None):
|
|||
|
||||
self.time = QTimeEdit(self)
|
||||
self.time.setDisplayFormat('hh:mm AP')
|
||||
if canonicalize_lang(get_lang()) in {'deu', 'nds'}:
|
||||
self.time.setDisplayFormat('HH:mm')
|
||||
self.hl = QHBoxLayout()
|
||||
self.l1 = QLabel(_('&Download after:'))
|
||||
self.l1.setBuddy(self.time)
|
||||
|
|
|
|||
Loading…
Reference in a new issue