From 1eda9a2ca3901360dad75ee2de774ed73da00ea2 Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Fri, 21 Dec 2018 15:43:09 -0500 Subject: [PATCH] 4556 change message regarding incompatible cr to be bundle message --- .../autopsy/centralrepository/datamodel/AbstractSqlEamDb.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/AbstractSqlEamDb.java b/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/AbstractSqlEamDb.java index 3f66069e98..35e1e44537 100644 --- a/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/AbstractSqlEamDb.java +++ b/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/AbstractSqlEamDb.java @@ -40,6 +40,7 @@ import java.util.Set; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.logging.Level; +import org.openide.util.NbBundle.Messages; import org.sleuthkit.autopsy.casemodule.Case; import static org.sleuthkit.autopsy.centralrepository.datamodel.EamDbUtil.updateSchemaVersion; import org.sleuthkit.autopsy.coreutils.Logger; @@ -3170,6 +3171,7 @@ abstract class AbstractSqlEamDb implements EamDb { * * @throws EamDbException */ + @Messages({"AbstractSqlEamDb.upgradeSchema.incompatible=The selected Central Repository is not compatable with the current version of the application, please upgrade the application if you wish to use this Central Repository"}) @Override public void upgradeSchema() throws EamDbException, SQLException, IncompatibleCentralRepoException { @@ -3225,7 +3227,7 @@ abstract class AbstractSqlEamDb implements EamDb { //we can not use the CaseDbSchemaVersionNumber.isCompatible method //because it is specific to case db schema versions only supporting major versions greater than 1 if (SOFTWARE_CR_DB_SCHEMA_VERSION.getMajor() < dbSchemaVersion.getMajor()) { - throw new IncompatibleCentralRepoException("The selected Central Repository is not compatable with the current version of the application, please upgrade the application if you wish to use this Central Repository"); + throw new IncompatibleCentralRepoException(Bundle.AbstractSqlEamDb_upgradeSchema_incompatible()); } if (dbSchemaVersion.equals(SOFTWARE_CR_DB_SCHEMA_VERSION)) { logger.log(Level.INFO, "Central Repository is up to date");