prettify the too busy message

This commit is contained in:
Damien Elmes 2011-01-13 18:51:48 +09:00
parent 7a7c1d3b0d
commit 828c2cdf17

View file

@ -73,6 +73,9 @@ class Sync(QThread):
self.emit(SIGNAL("badUserPass")) self.emit(SIGNAL("badUserPass"))
elif error.data.get('status') == "oldVersion": elif error.data.get('status') == "oldVersion":
msg=_("The sync protocol has changed. Please upgrade.") msg=_("The sync protocol has changed. Please upgrade.")
elif "busy" in error.data.get('status', ''):
msg=_("""\
AnkiWeb is under heavy load at the moment. Please try again in a little while.""")
elif error.data.get('type') == 'noResponse': elif error.data.get('type') == 'noResponse':
msg=_("""\ msg=_("""\
The server didn't reply. Please try again shortly, and if the problem \ The server didn't reply. Please try again shortly, and if the problem \