diff --git a/Core/src/org/sleuthkit/autopsy/modules/stix/Bundle.properties b/Core/src/org/sleuthkit/autopsy/modules/stix/Bundle.properties index b591ff7c56..10a5c0c593 100644 --- a/Core/src/org/sleuthkit/autopsy/modules/stix/Bundle.properties +++ b/Core/src/org/sleuthkit/autopsy/modules/stix/Bundle.properties @@ -11,3 +11,5 @@ STIXReportModule.progress.completedWithErrors=Completed with errors STIXReportModule.notifyMsg.unableToOpenFileDir=Unable to open STIX file/directory {0} STIXReportModule.progress.couldNotOpenFileDir=Could not open file/directory {0} STIXReportModule.notifyMsg.tooManyArtifactsgt1000=Too many STIX-related artifacts generated for "{0}". Only saving first 1000. +STIXReportModule.notifyErr.noFildDirProvided=No STIX file/directory provided +STIXReportModule.progress.noFildDirProvided=No STIX file/directory provided diff --git a/Core/src/org/sleuthkit/autopsy/modules/stix/STIXReportModule.java b/Core/src/org/sleuthkit/autopsy/modules/stix/STIXReportModule.java index e51dcdd47b..ee1021944b 100644 --- a/Core/src/org/sleuthkit/autopsy/modules/stix/STIXReportModule.java +++ b/Core/src/org/sleuthkit/autopsy/modules/stix/STIXReportModule.java @@ -132,17 +132,21 @@ public class STIXReportModule implements GeneralReportModule { // Process the file/directory name entry String stixFileName = configPanel.getStixFile(); if (stixFileName == null) { - logger.log(Level.SEVERE, "STIXReportModuleConfigPanel.stixFile not initialized "); - MessageNotifyUtil.Message.error("No STIX file/directory provided "); + logger.log(Level.SEVERE, "STIXReportModuleConfigPanel.stixFile not initialized "); //NON-NLS + MessageNotifyUtil.Message.error( + NbBundle.getMessage(this.getClass(), "STIXReportModule.notifyErr.noFildDirProvided")); progressPanel.complete(); - progressPanel.updateStatusLabel("No STIX file/directory provided "); + progressPanel.updateStatusLabel( + NbBundle.getMessage(this.getClass(), "STIXReportModule.progress.noFildDirProvided")); return; } if (stixFileName.isEmpty()) { - logger.log(Level.SEVERE, "No STIX file/directory provided "); - MessageNotifyUtil.Message.error("No STIX file/directory provided "); + logger.log(Level.SEVERE, "No STIX file/directory provided "); //NON-NLS + MessageNotifyUtil.Message.error( + NbBundle.getMessage(this.getClass(), "STIXReportModule.notifyErr.noFildDirProvided")); progressPanel.complete(); - progressPanel.updateStatusLabel("No STIX file/directory provided "); + progressPanel.updateStatusLabel( + NbBundle.getMessage(this.getClass(), "STIXReportModule.progress.noFildDirProvided")); return; } File stixFile = new File(stixFileName);