mention the date may be off when clock is off

This commit is contained in:
Damien Elmes 2009-11-28 16:35:39 +09:00
parent 581422892f
commit 8a0d63c4ce

View file

@ -2117,7 +2117,7 @@ it to your friends.
def syncClockOff(self, diff): def syncClockOff(self, diff):
ui.utils.showWarning( ui.utils.showWarning(
_("Your computer clock is not set to the correct time.\n") + _("The time or date on your computer is not correct.\n") +
ngettext("It is off by %d second.\n\n", ngettext("It is off by %d second.\n\n",
"It is off by %d seconds.\n\n", diff) % diff + "It is off by %d seconds.\n\n", diff) % diff +
_("Since this can cause many problems with syncing,\n" _("Since this can cause many problems with syncing,\n"
@ -2365,7 +2365,7 @@ it to your friends.
else: else:
ret = _("early") ret = _("early")
ui.utils.showWarning( ui.utils.showWarning(
_("Your computer clock is not set to the correct time.\n") + _("The time or date on your computer is not correct.\n") +
ngettext("It is %(sec)d second %(type)s.\n", ngettext("It is %(sec)d second %(type)s.\n",
"It is %(sec)d seconds %(type)s.\n", abs(diff)) "It is %(sec)d seconds %(type)s.\n", abs(diff))
% {"sec": abs(diff), "type": ret} + % {"sec": abs(diff), "type": ret} +