mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
fix clock off message
This commit is contained in:
parent
ba589ac8cc
commit
46a771def3
1 changed files with 3 additions and 6 deletions
|
|
@ -2,10 +2,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import re
|
import re
|
||||||
import traceback
|
|
||||||
import signal
|
import signal
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
|
|
@ -13,7 +10,6 @@ from send2trash import send2trash
|
||||||
from aqt.qt import *
|
from aqt.qt import *
|
||||||
from anki import Collection
|
from anki import Collection
|
||||||
from anki.utils import isWin, isMac, intTime, splitFields, ids2str
|
from anki.utils import isWin, isMac, intTime, splitFields, ids2str
|
||||||
|
|
||||||
from anki.hooks import runHook, addHook
|
from anki.hooks import runHook, addHook
|
||||||
import aqt
|
import aqt
|
||||||
import aqt.progress
|
import aqt.progress
|
||||||
|
|
@ -25,6 +21,7 @@ from aqt.utils import restoreGeom, showInfo, showWarning,\
|
||||||
openHelp, openLink, checkInvalidFilename
|
openHelp, openLink, checkInvalidFilename
|
||||||
import anki.db
|
import anki.db
|
||||||
|
|
||||||
|
|
||||||
class AnkiQt(QMainWindow):
|
class AnkiQt(QMainWindow):
|
||||||
def __init__(self, app, profileManager, args):
|
def __init__(self, app, profileManager, args):
|
||||||
QMainWindow.__init__(self)
|
QMainWindow.__init__(self)
|
||||||
|
|
@ -825,9 +822,9 @@ title="%s">%s</button>''' % (
|
||||||
aqt.update.showMessages(self, data)
|
aqt.update.showMessages(self, data)
|
||||||
|
|
||||||
def clockIsOff(self, diff):
|
def clockIsOff(self, diff):
|
||||||
diffText = ngettext("%s second", "%s seconds", diff)
|
diffText = ngettext("%s second", "%s seconds", diff) % diff
|
||||||
warn = _("""\
|
warn = _("""\
|
||||||
In order to ensure your collection works correctly when moved between \
|
iIn order to ensure your collection works correctly when moved between \
|
||||||
devices, Anki requires your computer's internal clock to be set correctly. \
|
devices, Anki requires your computer's internal clock to be set correctly. \
|
||||||
The internal clock can be wrong even if your system is showing the correct \
|
The internal clock can be wrong even if your system is showing the correct \
|
||||||
local time.
|
local time.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue