From ad950f4be0f700fae45401fd08bfafce12c05bf5 Mon Sep 17 00:00:00 2001 From: "U-BASIS\\dsmyda" Date: Sun, 18 Aug 2019 19:23:41 -0400 Subject: [PATCH] Added bundle messages --- .../autopsy/report/caseuco/CaseUcoFormatExporter.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/report/caseuco/CaseUcoFormatExporter.java b/Core/src/org/sleuthkit/autopsy/report/caseuco/CaseUcoFormatExporter.java index f31d1652be..02cf6824f0 100755 --- a/Core/src/org/sleuthkit/autopsy/report/caseuco/CaseUcoFormatExporter.java +++ b/Core/src/org/sleuthkit/autopsy/report/caseuco/CaseUcoFormatExporter.java @@ -208,11 +208,16 @@ public final class CaseUcoFormatExporter { * @param outputFilePath * @param progressPanel */ + @NbBundle.Messages({ + "CaseUcoFormatExporter.startMsg=Generating CASE-UCO Report", + "CaseUcoFormatExporter.datasourceMsg=Generating CASE-UCO Report for %s", + "CaseUcoFormatExporter.finishMsg=Finished generating CASE-UCO Report" + }) public static void export(List tagTypes, List interestingItemSets, File caseReportFolder, ReportProgressPanel progressPanel) throws IOException, SQLException, NoCurrentCaseException, TskCoreException { - progressPanel.updateStatusLabel("Generating CASE-UCO Report"); + progressPanel.updateStatusLabel(Bundle.CaseUcoFormatExporter_startMsg()); //Acquire references for file discovery Case currentCase = Case.getCurrentCaseThrows(); String caseTempDirectory = currentCase.getTempDirectory(); @@ -237,6 +242,8 @@ public final class CaseUcoFormatExporter { String caseTraceId = saveCaseInfo(skCase, jsonGenerator); for (DataSource ds : skCase.getDataSources()) { + progressPanel.updateStatusLabel(String.format( + Bundle.CaseUcoFormatExporter_datasourceMsg(), ds.getName())); String dataSourceTraceId = saveDataSourceInfo(ds.getId(), caseTraceId, skCase, jsonGenerator); for (TagName tn : tagTypes) { @@ -268,6 +275,7 @@ public final class CaseUcoFormatExporter { } } finilizeJsonOutputFile(jsonGenerator); + progressPanel.updateStatusLabel(Bundle.CaseUcoFormatExporter_finishMsg()); } }