www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 9160cff264fa90b577f8ea76d1a061f367efcd7c
parent a3250b399261152ec2538425733cb1c62e82a863
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun, 26 Jul 2009 09:44:18 +0000

Display more helpful message on newer DB version error


Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -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";