Merge pull request #47 from Derbeth/master

Fixing the translation in the warning about system clock
This commit is contained in:
Damien Elmes 2013-10-21 01:04:52 -07:00
commit f8985c036c

View File

@ -809,6 +809,7 @@ 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)
warn = _("""\ warn = _("""\
In order to ensure your collection works correctly when moved between \ In 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. \
@ -823,7 +824,7 @@ Please go to the time settings on your computer and check the following:
- Timezone - Timezone
- Daylight savings - Daylight savings
Difference to correct time: %d seconds.""") % diff Difference to correct time: %s.""") % diffText
showWarning(warn) showWarning(warn)
self.app.closeAllWindows() self.app.closeAllWindows()