Display more helpful message on newer DB version error

This commit is contained in:
Dan Stillman 2009-07-26 09:44:18 +00:00
parent a3250b3992
commit 9160cff264

View file

@ -333,7 +333,14 @@ var Zotero = new function(){
}
catch (e) {
if (typeof e == 'string' && e.match('newer than SQL file')) {
_startupError = e;
// TODO: localize
var zoteroVersionIsOlder = "This version of Zotero is older than the version last used with your database.";
var upgradeToLatestVersion = "Please upgrade to the latest version from zotero.org.";
var currentVersion = "Current version: " + this.version;
var kbURL = "http://zotero.org/support/kb/newer_db_version";
var seeKB = "See " + kbURL + " for more information.";
var msg = Zotero.localeJoin([zoteroVersionIsOlder, upgradeToLatestVersion]) + "\n\n" + currentVersion + "\n\n" + seeKB;
_startupError = msg;
}
else {
_startupError = "Database upgrade error";