diff --git a/Core/manifest.mf b/Core/manifest.mf
index 7aa34c46dc..9c9ba77918 100644
--- a/Core/manifest.mf
+++ b/Core/manifest.mf
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
OpenIDE-Module: org.sleuthkit.autopsy.core/9
OpenIDE-Module-Localizing-Bundle: org/sleuthkit/autopsy/core/Bundle.properties
OpenIDE-Module-Layer: org/sleuthkit/autopsy/core/layer.xml
-OpenIDE-Module-Implementation-Version: 9
+OpenIDE-Module-Implementation-Version: 10
OpenIDE-Module-Requires: org.openide.windows.WindowManager, org.netbeans.api.javahelp.Help
AutoUpdate-Show-In-Client: true
AutoUpdate-Essential-Module: true
diff --git a/Core/nbproject/project.properties b/Core/nbproject/project.properties
index 377812104d..69d3afa92d 100644
--- a/Core/nbproject/project.properties
+++ b/Core/nbproject/project.properties
@@ -6,5 +6,5 @@ license.file=../LICENSE-2.0.txt
nbm.homepage=http://www.sleuthkit.org/
nbm.module.author=Brian Carrier
nbm.needs.restart=true
-spec.version.base=7.0
+spec.version.base=7.1
diff --git a/Core/nbproject/project.xml b/Core/nbproject/project.xml
index d5eb8a4d96..fb2fb85e48 100644
--- a/Core/nbproject/project.xml
+++ b/Core/nbproject/project.xml
@@ -194,6 +194,7 @@
org.sleuthkit.autopsy.actions
org.sleuthkit.autopsy.casemodule
org.sleuthkit.autopsy.casemodule.services
+ org.sleuthkit.autopsy.contentviewers
org.sleuthkit.autopsy.core
org.sleuthkit.autopsy.corecomponentinterfaces
org.sleuthkit.autopsy.corecomponents
diff --git a/Core/src/org/sleuthkit/autopsy/actions/AddBlackboardArtifactTagAction.java b/Core/src/org/sleuthkit/autopsy/actions/AddBlackboardArtifactTagAction.java
index 4e3efcad87..8cdef4af84 100755
--- a/Core/src/org/sleuthkit/autopsy/actions/AddBlackboardArtifactTagAction.java
+++ b/Core/src/org/sleuthkit/autopsy/actions/AddBlackboardArtifactTagAction.java
@@ -21,6 +21,8 @@ package org.sleuthkit.autopsy.actions;
import java.util.Collection;
import java.util.logging.Level;
import javax.swing.JOptionPane;
+
+import org.openide.util.NbBundle;
import org.openide.util.Utilities;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.autopsy.coreutils.Logger;
@@ -50,7 +52,11 @@ public class AddBlackboardArtifactTagAction extends AddTagAction {
@Override
protected String getActionDisplayName() {
- return Utilities.actionsGlobalContext().lookupAll(BlackboardArtifact.class).size() > 1 ? "Tag Results" : "Tag Result";
+ String singularTagResult = NbBundle.getMessage(this.getClass(),
+ "AddBlackboardArtifactTagAction.singularTagResult");
+ String pluralTagResult = NbBundle.getMessage(this.getClass(),
+ "AddBlackboardArtifactTagAction.pluralTagResult");
+ return Utilities.actionsGlobalContext().lookupAll(BlackboardArtifact.class).size() > 1 ? pluralTagResult : singularTagResult;
}
@Override
@@ -62,7 +68,13 @@ public class AddBlackboardArtifactTagAction extends AddTagAction {
}
catch (TskCoreException ex) {
Logger.getLogger(AddBlackboardArtifactTagAction.class.getName()).log(Level.SEVERE, "Error tagging result", ex);
- JOptionPane.showMessageDialog(null, "Unable to tag " + artifact.getDisplayName() + ".", "Tagging Error", JOptionPane.ERROR_MESSAGE);
+ JOptionPane.showMessageDialog(null,
+ NbBundle.getMessage(this.getClass(),
+ "AddBlackboardArtifactTagAction.unableToTag.msg",
+ artifact.getDisplayName()),
+ NbBundle.getMessage(this.getClass(),
+ "AddBlackboardArtifactTagAction.taggingErr"),
+ JOptionPane.ERROR_MESSAGE);
}
}
}
diff --git a/Core/src/org/sleuthkit/autopsy/actions/AddContentTagAction.java b/Core/src/org/sleuthkit/autopsy/actions/AddContentTagAction.java
index 8760ed364f..5d7f7d16bf 100755
--- a/Core/src/org/sleuthkit/autopsy/actions/AddContentTagAction.java
+++ b/Core/src/org/sleuthkit/autopsy/actions/AddContentTagAction.java
@@ -21,6 +21,8 @@ package org.sleuthkit.autopsy.actions;
import java.util.Collection;
import java.util.logging.Level;
import javax.swing.JOptionPane;
+
+import org.openide.util.NbBundle;
import org.openide.util.Utilities;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.autopsy.coreutils.Logger;
@@ -51,7 +53,9 @@ public class AddContentTagAction extends AddTagAction {
@Override
protected String getActionDisplayName() {
- return Utilities.actionsGlobalContext().lookupAll(AbstractFile.class).size() > 1 ? "Tag Files" : "Tag File";
+ String singularTagFile = NbBundle.getMessage(this.getClass(), "AddContentTagAction.singularTagFile");
+ String pluralTagFile = NbBundle.getMessage(this.getClass(), "AddContentTagAction.pluralTagFile");
+ return Utilities.actionsGlobalContext().lookupAll(AbstractFile.class).size() > 1 ? pluralTagFile : singularTagFile;
}
@Override
@@ -66,7 +70,13 @@ public class AddContentTagAction extends AddTagAction {
file = (AbstractFile)parentFile;
}
else {
- JOptionPane.showMessageDialog(null, "Unable to tag " + parentFile.getName() + ", not a regular file.", "Cannot Apply Tag", JOptionPane.WARNING_MESSAGE);
+ JOptionPane.showMessageDialog(null,
+ NbBundle.getMessage(this.getClass(),
+ "AddContentTagAction.unableToTag.msg",
+ parentFile.getName()),
+ NbBundle.getMessage(this.getClass(),
+ "AddContentTagAction.cannotApplyTagErr"),
+ JOptionPane.WARNING_MESSAGE);
continue;
}
}
@@ -78,12 +88,24 @@ public class AddContentTagAction extends AddTagAction {
file = (AbstractFile)parentFile;
}
else {
- JOptionPane.showMessageDialog(null, "Unable to tag " + parentFile.getName() + ", not a regular file.", "Cannot Apply Tag", JOptionPane.WARNING_MESSAGE);
+ JOptionPane.showMessageDialog(null,
+ NbBundle.getMessage(this.getClass(),
+ "AddContentTagAction.unableToTag.msg",
+ parentFile.getName()),
+ NbBundle.getMessage(this.getClass(),
+ "AddContentTagAction.cannotApplyTagErr"),
+ JOptionPane.WARNING_MESSAGE);
continue;
}
}
else {
- JOptionPane.showMessageDialog(null, "Unable to tag " + parentFile.getName() + ", not a regular file.", "Cannot Apply Tag", JOptionPane.WARNING_MESSAGE);
+ JOptionPane.showMessageDialog(null,
+ NbBundle.getMessage(this.getClass(),
+ "AddContentTagAction.unableToTag.msg",
+ parentFile.getName()),
+ NbBundle.getMessage(this.getClass(),
+ "AddContentTagAction.cannotApplyTagErr"),
+ JOptionPane.WARNING_MESSAGE);
continue;
}
}
@@ -92,7 +114,12 @@ public class AddContentTagAction extends AddTagAction {
}
catch (TskCoreException ex) {
Logger.getLogger(AddContentTagAction.class.getName()).log(Level.SEVERE, "Error tagging result", ex);
- JOptionPane.showMessageDialog(null, "Unable to tag " + file.getName() + ".", "Tagging Error", JOptionPane.ERROR_MESSAGE);
+ JOptionPane.showMessageDialog(null,
+ NbBundle.getMessage(this.getClass(),
+ "AddContentTagAction.unableToTag.msg2",
+ file.getName()),
+ NbBundle.getMessage(this.getClass(), "AddContentTagAction.taggingErr"),
+ JOptionPane.ERROR_MESSAGE);
}
}
}
diff --git a/Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java b/Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java
index 65f6a5e589..6d5c91d074 100755
--- a/Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java
+++ b/Core/src/org/sleuthkit/autopsy/actions/AddTagAction.java
@@ -24,6 +24,8 @@ import java.util.List;
import java.util.logging.Level;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
+
+import org.openide.util.NbBundle;
import org.openide.util.actions.Presenter;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.autopsy.casemodule.services.TagsManager;
@@ -85,7 +87,7 @@ abstract class AddTagAction extends TagAction implements Presenter.Popup {
}
// Create a "Quick Tag" sub-menu.
- JMenu quickTagMenu = new JMenu("Quick Tag");
+ JMenu quickTagMenu = new JMenu(NbBundle.getMessage(this.getClass(), "AddTagAction.quickTag"));
add(quickTagMenu);
// Each tag name in the current set of tags gets its own menu item in
@@ -105,7 +107,7 @@ abstract class AddTagAction extends TagAction implements Presenter.Popup {
}
}
else {
- JMenuItem empty = new JMenuItem("No tags");
+ JMenuItem empty = new JMenuItem(NbBundle.getMessage(this.getClass(), "AddTagAction.noTags"));
empty.setEnabled(false);
quickTagMenu.add(empty);
}
@@ -115,7 +117,7 @@ abstract class AddTagAction extends TagAction implements Presenter.Popup {
// The "Quick Tag" menu also gets an "Choose Tag..." menu item.
// Selecting this item initiates a dialog that can be used to create
// or select a tag name and adds a tag with the resulting name.
- JMenuItem newTagMenuItem = new JMenuItem("New Tag...");
+ JMenuItem newTagMenuItem = new JMenuItem(NbBundle.getMessage(this.getClass(), "AddTagAction.newTag"));
newTagMenuItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
@@ -131,7 +133,8 @@ abstract class AddTagAction extends TagAction implements Presenter.Popup {
// Create a "Choose Tag and Comment..." menu item. Selecting this item initiates
// a dialog that can be used to create or select a tag name with an
// optional comment and adds a tag with the resulting name.
- JMenuItem tagAndCommentItem = new JMenuItem("Tag and Comment...");
+ JMenuItem tagAndCommentItem = new JMenuItem(
+ NbBundle.getMessage(this.getClass(), "AddTagAction.tagAndComment"));
tagAndCommentItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
diff --git a/Core/src/org/sleuthkit/autopsy/actions/Bundle.properties b/Core/src/org/sleuthkit/autopsy/actions/Bundle.properties
index ad0c347ecb..2151fafa49 100755
--- a/Core/src/org/sleuthkit/autopsy/actions/Bundle.properties
+++ b/Core/src/org/sleuthkit/autopsy/actions/Bundle.properties
@@ -14,3 +14,37 @@ GetTagNameAndCommentDialog.commentLabel.text=Comment:
GetTagNameAndCommentDialog.cancelButton.text=Cancel
GetTagNameAndCommentDialog.tagCombo.toolTipText=Select tag to use
GetTagNameAndCommentDialog.tagLabel.text=Tag:
+AddBlackboardArtifactTagAction.singularTagResult=Tag Result
+AddBlackboardArtifactTagAction.pluralTagResult=Tag Results
+AddBlackboardArtifactTagAction.unableToTag.msg=Unable to tag {0}.
+AddBlackboardArtifactTagAction.taggingErr=Tagging Error
+AddContentTagAction.singularTagFile=Tag File
+AddContentTagAction.pluralTagFile=Tag Files
+AddContentTagAction.unableToTag.msg=Unable to tag {0}, not a regular file.
+AddContentTagAction.cannotApplyTagErr=Cannot Apply Tag
+AddContentTagAction.unableToTag.msg2=Unable to tag {0}.
+AddContentTagAction.taggingErr=Tagging Error
+AddTagAction.quickTag=Quick Tag
+AddTagAction.noTags=No tags
+AddTagAction.newTag=New Tag...
+AddTagAction.tagAndComment=Tag and Comment...
+DeleteBlackboardArtifactTagAction.deleteTags=Delete Tag(s)
+DeleteBlackboardArtifactTagAction.unableToDelTag.msg=Unable to delete tag {0}.
+DeleteBlackboardArtifactTagAction.tagDelErr=Tag Deletion Error
+DeleteContentTagAction.deleteTags=Delete Tag(s)
+DeleteContentTagAction.unableToDelTag.msg=Unable to delete tag {0}.
+DeleteContentTagAction.tagDelErr=Tag Deletion Error
+GetTagNameAndCommentDialog.noTags=No Tags
+GetTagNameAndCommentDialog.createTag=Create Tag
+GetTagNameAndCommentDialog.cancelName=cancel
+GetTagNameDialog.createTag=Create Tag
+GetTagNameDialog.cancelName=Cancel
+GetTagNameDialog.mustSupplyTtagName.msg=Must supply a tag name to continue.
+GetTagNameDialog.tagNameErr=Tag Name
+GetTagNameDialog.illegalChars.msg=The tag name contains illegal characters.\
+Cannot contain any of the following symbols\: \\ \: * ? " < > |
+GetTagNameDialog.illegalCharsErr=Illegal Characters
+GetTagNameDialog.unableToAddTagNameToCase.msg=Unable to add the {0} tag name to the case.
+GetTagNameDialog.taggingErr=Tagging Error
+GetTagNameDialog.tagNameAlreadyDef.msg=A {0} tag name has already been defined.
+GetTagNameDialog.dupTagErr=Duplicate Tag Error
diff --git a/Core/src/org/sleuthkit/autopsy/actions/Bundle_ja.properties b/Core/src/org/sleuthkit/autopsy/actions/Bundle_ja.properties
new file mode 100644
index 0000000000..0cf5a8be40
--- /dev/null
+++ b/Core/src/org/sleuthkit/autopsy/actions/Bundle_ja.properties
@@ -0,0 +1,46 @@
+GetTagNameDialog.cancelButton.text=\u30AD\u30E3\u30F3\u30BB\u30EB
+GetTagNameDialog.okButton.text=OK
+GetTagNameDialog.preexistingLabel.text=\u65E2\u5B58\u30BF\u30B0\uFF1A
+GetTagNameDialog.newTagPanel.border.title=\u65B0\u898F\u30BF\u30B0
+GetTagNameDialog.tagNameLabel.text=\u30BF\u30B0\u540D\uFF1A
+GetTagNameAndCommentDialog.newTagButton.text=\u65B0\u898F\u30BF\u30B0
+GetTagNameAndCommentDialog.okButton.text=OK
+GetTagNameAndCommentDialog.commentText.toolTipText=\u30BF\u30B0\u306E\u30B3\u30E1\u30F3\u30C8\u3092\u5165\u529B\u307E\u305F\u306F\u7A7A\u6B04\u306B\u3057\u3066\u304F\u3060\u3055\u3044
+GetTagNameAndCommentDialog.commentLabel.text=\u30B3\u30E1\u30F3\u30C8\uFF1A
+GetTagNameAndCommentDialog.cancelButton.text=\u30AD\u30E3\u30F3\u30BB\u30EB
+GetTagNameAndCommentDialog.tagCombo.toolTipText=\u4F7F\u7528\u3059\u308B\u30BF\u30B0\u3092\u9078\u629E
+GetTagNameAndCommentDialog.tagLabel.text=\u30BF\u30B0\uFF1A
+AddBlackboardArtifactTagAction.singularTagResult=\u7D50\u679C\u306B\u30BF\u30B0\u3092\u8FFD\u52A0
+AddBlackboardArtifactTagAction.pluralTagResult=\u7D50\u679C\u306B\u30BF\u30B0\u3092\u8FFD\u52A0
+AddBlackboardArtifactTagAction.unableToTag.msg={0}\u306B\u30BF\u30B0\u3092\u8FFD\u52A0\u3067\u304D\u307E\u305B\u3093\u3002
+AddBlackboardArtifactTagAction.taggingErr=\u30BF\u30B0\u4ED8\u3051\u30A8\u30E9\u30FC
+AddContentTagAction.singularTagFile=\u30D5\u30A1\u30A4\u30EB\u306B\u30BF\u30B0\u3092\u8FFD\u52A0
+AddContentTagAction.pluralTagFile=\u30D5\u30A1\u30A4\u30EB\u306B\u30BF\u30B0\u3092\u8FFD\u52A0
+AddContentTagAction.unableToTag.msg={0}\u306B\u30BF\u30B0\u3092\u8FFD\u52A0\u3067\u304D\u307E\u305B\u3093\u3002\u901A\u5E38\u30D5\u30A1\u30A4\u30EB\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002
+AddContentTagAction.unableToTag.msg2={0}\u306B\u30BF\u30B0\u3092\u8FFD\u52A0\u3067\u304D\u307E\u305B\u3093\u3002
+AddContentTagAction.taggingErr=\u30BF\u30B0\u4ED8\u3051\u30A8\u30E9\u30FC
+AddTagAction.quickTag=\u30AF\u30A4\u30C3\u30AF\u30BF\u30B0
+AddTagAction.noTags=\u30BF\u30B0\u7121\u3057
+AddTagAction.newTag=\u65B0\u898F\u30BF\u30B0\u2026
+AddTagAction.tagAndComment=\u30BF\u30B0\u3068\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0\u2026
+DeleteBlackboardArtifactTagAction.deleteTags=\u30BF\u30B0\u3092\u524A\u9664
+DeleteBlackboardArtifactTagAction.unableToDelTag.msg=\u30BF\u30B0{0}\u306E\u524A\u9664\u304C\u3067\u304D\u307E\u305B\u3093\u3002
+DeleteBlackboardArtifactTagAction.tagDelErr=\u30BF\u30B0\u524A\u9664\u30A8\u30E9\u30FC
+DeleteContentTagAction.deleteTags=\u30BF\u30B0\u3092\u524A\u9664
+DeleteContentTagAction.unableToDelTag.msg=\u30BF\u30B0{0}\u306E\u524A\u9664\u304C\u3067\u304D\u307E\u305B\u3093\u3002
+DeleteContentTagAction.tagDelErr=\u30BF\u30B0\u524A\u9664\u30A8\u30E9\u30FC
+GetTagNameAndCommentDialog.noTags=\u30BF\u30B0\u7121\u3057
+GetTagNameAndCommentDialog.createTag=\u30BF\u30B0\u3092\u4F5C\u6210
+GetTagNameAndCommentDialog.cancelName=\u30AD\u30E3\u30F3\u30BB\u30EB
+GetTagNameDialog.createTag=\u30BF\u30B0\u3092\u4F5C\u6210
+GetTagNameDialog.cancelName=\u30AD\u30E3\u30F3\u30BB\u30EB
+GetTagNameDialog.mustSupplyTtagName.msg=\u30BF\u30B0\u540D\u3092\u6307\u5B9A\u3057\u306A\u3051\u308C\u3070\u3001\u5148\u306B\u9032\u3081\u307E\u305B\u3093\u3002
+GetTagNameDialog.tagNameErr=\u30BF\u30B0\u540D
+GetTagNameDialog.illegalChars.msg=\u4E0D\u6B63\u306A\u6587\u5B57\u304C\u30BF\u30B0\u540D\u306B\u542B\u307E\u308C\u3066\u3044\u307E\u3059\u3002\
+\u6B21\u306E\u6587\u5B57\u306F\u4F7F\u3048\u307E\u305B\u3093\uFF1A \\ \: * ? " < > |
+GetTagNameDialog.illegalCharsErr=\u4E0D\u6B63\u306A\u6587\u5B57
+GetTagNameDialog.unableToAddTagNameToCase.msg=\u30BF\u30B0\u540D{0}\u3092\u30B1\u30FC\u30B9\u306B\u8FFD\u52A0\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002
+GetTagNameDialog.taggingErr=\u30BF\u30B0\u4ED8\u3051\u30A8\u30E9\u30FC
+GetTagNameDialog.tagNameAlreadyDef.msg=\u30BF\u30B0\u540D{0}\u306F\u65E2\u306B\u5B9A\u7FA9\u3055\u308C\u3066\u3044\u307E\u3059\u3002
+GetTagNameDialog.dupTagErr=\u91CD\u8907\u30BF\u30B0\u306E\u30A8\u30E9\u30FC
+AddContentTagAction.cannotApplyTagErr=\u30BF\u30B0\u3092\u9069\u7528\u3067\u304D\u307E\u305B\u3093
\ No newline at end of file
diff --git a/Core/src/org/sleuthkit/autopsy/actions/DeleteBlackboardArtifactTagAction.java b/Core/src/org/sleuthkit/autopsy/actions/DeleteBlackboardArtifactTagAction.java
index 3899b09c82..db19ad6f6f 100755
--- a/Core/src/org/sleuthkit/autopsy/actions/DeleteBlackboardArtifactTagAction.java
+++ b/Core/src/org/sleuthkit/autopsy/actions/DeleteBlackboardArtifactTagAction.java
@@ -23,6 +23,8 @@ import java.util.Collection;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
+
+import org.openide.util.NbBundle;
import org.openide.util.Utilities;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.datamodel.BlackboardArtifactTag;
@@ -32,7 +34,8 @@ import org.sleuthkit.datamodel.TskCoreException;
* Instances of this Action allow users to delete tags applied to blackboard artifacts.
*/
public class DeleteBlackboardArtifactTagAction extends TagAction {
- private static final String MENU_TEXT = "Delete Tag(s)";
+ private static final String MENU_TEXT = NbBundle.getMessage(DeleteBlackboardArtifactTagAction.class,
+ "DeleteBlackboardArtifactTagAction.deleteTags");
// This class is a singleton to support multi-selection of nodes, since
// org.openide.nodes.NodeOp.findActions(Node[] nodes) will only pick up an Action if every
@@ -59,7 +62,13 @@ public class DeleteBlackboardArtifactTagAction extends TagAction {
}
catch (TskCoreException ex) {
Logger.getLogger(AddContentTagAction.class.getName()).log(Level.SEVERE, "Error deleting tag", ex);
- JOptionPane.showMessageDialog(null, "Unable to delete tag " + tag.getName() + ".", "Tag Deletion Error", JOptionPane.ERROR_MESSAGE);
+ JOptionPane.showMessageDialog(null,
+ NbBundle.getMessage(this.getClass(),
+ "DeleteBlackboardArtifactTagAction.unableToDelTag.msg",
+ tag.getName()),
+ NbBundle.getMessage(this.getClass(),
+ "DeleteBlackboardArtifactTagAction.tagDelErr"),
+ JOptionPane.ERROR_MESSAGE);
}
}
}
diff --git a/Core/src/org/sleuthkit/autopsy/actions/DeleteContentTagAction.java b/Core/src/org/sleuthkit/autopsy/actions/DeleteContentTagAction.java
index 6f4bfd42a1..b8bd85e321 100755
--- a/Core/src/org/sleuthkit/autopsy/actions/DeleteContentTagAction.java
+++ b/Core/src/org/sleuthkit/autopsy/actions/DeleteContentTagAction.java
@@ -23,6 +23,8 @@ import java.util.Collection;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
+
+import org.openide.util.NbBundle;
import org.openide.util.Utilities;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.datamodel.ContentTag;
@@ -32,7 +34,8 @@ import org.sleuthkit.datamodel.TskCoreException;
* Instances of this Action allow users to delete tags applied to content.
*/
public class DeleteContentTagAction extends TagAction {
- private static final String MENU_TEXT = "Delete Tag(s)";
+ private static final String MENU_TEXT = NbBundle.getMessage(DeleteContentTagAction.class,
+ "DeleteContentTagAction.deleteTags");
// This class is a singleton to support multi-selection of nodes, since
// org.openide.nodes.NodeOp.findActions(Node[] nodes) will only pick up an Action if every
@@ -59,7 +62,12 @@ public class DeleteContentTagAction extends TagAction {
}
catch (TskCoreException ex) {
Logger.getLogger(AddContentTagAction.class.getName()).log(Level.SEVERE, "Error deleting tag", ex);
- JOptionPane.showMessageDialog(null, "Unable to delete tag " + tag.getName() + ".", "Tag Deletion Error", JOptionPane.ERROR_MESSAGE);
+ JOptionPane.showMessageDialog(null,
+ NbBundle.getMessage(this.getClass(),
+ "DeleteContentTagAction.unableToDelTag.msg",
+ tag.getName()),
+ NbBundle.getMessage(this.getClass(), "DeleteContentTagAction.tagDelErr"),
+ JOptionPane.ERROR_MESSAGE);
}
}
}
diff --git a/Core/src/org/sleuthkit/autopsy/actions/GetTagNameAndCommentDialog.form b/Core/src/org/sleuthkit/autopsy/actions/GetTagNameAndCommentDialog.form
index cbbdaebb26..47ff059281 100644
--- a/Core/src/org/sleuthkit/autopsy/actions/GetTagNameAndCommentDialog.form
+++ b/Core/src/org/sleuthkit/autopsy/actions/GetTagNameAndCommentDialog.form
@@ -109,6 +109,7 @@
+
diff --git a/Core/src/org/sleuthkit/autopsy/actions/GetTagNameAndCommentDialog.java b/Core/src/org/sleuthkit/autopsy/actions/GetTagNameAndCommentDialog.java
index e953694d90..68c38b6114 100644
--- a/Core/src/org/sleuthkit/autopsy/actions/GetTagNameAndCommentDialog.java
+++ b/Core/src/org/sleuthkit/autopsy/actions/GetTagNameAndCommentDialog.java
@@ -30,6 +30,8 @@ import javax.swing.JComponent;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.KeyStroke;
+
+import org.openide.util.NbBundle;
import org.openide.windows.WindowManager;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.autopsy.casemodule.services.TagsManager;
@@ -38,7 +40,8 @@ import org.sleuthkit.datamodel.TagName;
import org.sleuthkit.datamodel.TskCoreException;
public class GetTagNameAndCommentDialog extends JDialog {
- private static final String NO_TAG_NAMES_MESSAGE = "No Tags";
+ private static final String NO_TAG_NAMES_MESSAGE = NbBundle.getMessage(GetTagNameAndCommentDialog.class,
+ "GetTagNameAndCommentDialog.noTags");
private final HashMap tagNames = new HashMap<>();
private TagNameAndComment tagNameAndComment = null;
@@ -66,11 +69,13 @@ public class GetTagNameAndCommentDialog extends JDialog {
}
private GetTagNameAndCommentDialog() {
- super((JFrame)WindowManager.getDefault().getMainWindow(), "Create Tag", true);
+ super((JFrame)WindowManager.getDefault().getMainWindow(),
+ NbBundle.getMessage(GetTagNameAndCommentDialog.class, "GetTagNameAndCommentDialog.createTag"),
+ true);
initComponents();
// Set up the dialog to close when Esc is pressed.
- String cancelName = "cancel";
+ String cancelName = NbBundle.getMessage(this.getClass(), "GetTagNameAndCommentDialog.cancelName");
InputMap inputMap = getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), cancelName);
ActionMap actionMap = getRootPane().getActionMap();
@@ -240,7 +245,7 @@ public class GetTagNameAndCommentDialog extends JDialog {
private javax.swing.JTextField commentText;
private javax.swing.JButton newTagButton;
private javax.swing.JButton okButton;
- private javax.swing.JComboBox tagCombo;
+ private javax.swing.JComboBox tagCombo;
private javax.swing.JLabel tagLabel;
// End of variables declaration//GEN-END:variables
}
diff --git a/Core/src/org/sleuthkit/autopsy/actions/GetTagNameDialog.java b/Core/src/org/sleuthkit/autopsy/actions/GetTagNameDialog.java
index fb0d50ddc4..f74ddd38e8 100644
--- a/Core/src/org/sleuthkit/autopsy/actions/GetTagNameDialog.java
+++ b/Core/src/org/sleuthkit/autopsy/actions/GetTagNameDialog.java
@@ -34,6 +34,7 @@ import javax.swing.JOptionPane;
import javax.swing.KeyStroke;
import javax.swing.table.AbstractTableModel;
import org.openide.util.ImageUtilities;
+import org.openide.util.NbBundle;
import org.openide.windows.WindowManager;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.autopsy.casemodule.services.TagsManager;
@@ -52,12 +53,14 @@ public class GetTagNameDialog extends JDialog {
}
private GetTagNameDialog() {
- super((JFrame)WindowManager.getDefault().getMainWindow(), "Create Tag", true);
+ super((JFrame)WindowManager.getDefault().getMainWindow(),
+ NbBundle.getMessage(GetTagNameDialog.class, "GetTagNameDialog.createTag"),
+ true);
setIconImage(ImageUtilities.loadImage(TAG_ICON_PATH));
initComponents();
// Set up the dialog to close when Esc is pressed.
- String cancelName = "cancel";
+ String cancelName = NbBundle.getMessage(this.getClass(), "GetTagNameDialog.cancelName");
InputMap inputMap = getRootPane().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), cancelName);
ActionMap actionMap = getRootPane().getActionMap();
@@ -276,10 +279,17 @@ public class GetTagNameDialog extends JDialog {
private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed
String tagDisplayName = tagNameField.getText();
if (tagDisplayName.isEmpty()) {
- JOptionPane.showMessageDialog(null, "Must supply a tag name to continue.", "Tag Name", JOptionPane.ERROR_MESSAGE);
+ JOptionPane.showMessageDialog(null,
+ NbBundle.getMessage(this.getClass(),
+ "GetTagNameDialog.mustSupplyTtagName.msg"),
+ NbBundle.getMessage(this.getClass(), "GetTagNameDialog.tagNameErr"),
+ JOptionPane.ERROR_MESSAGE);
}
else if (containsIllegalCharacters(tagDisplayName)) {
- JOptionPane.showMessageDialog(null, "The tag name contains illegal characters.\nCannot contain any of the following symbols: \\ : * ? \" < > |", "Illegal Characters", JOptionPane.ERROR_MESSAGE);
+ JOptionPane.showMessageDialog(null,
+ NbBundle.getMessage(this.getClass(), "GetTagNameDialog.illegalChars.msg"),
+ NbBundle.getMessage(this.getClass(), "GetTagNameDialog.illegalCharsErr"),
+ JOptionPane.ERROR_MESSAGE);
}
else {
tagName = tagNames.get(tagDisplayName);
@@ -290,12 +300,22 @@ public class GetTagNameDialog extends JDialog {
}
catch (TskCoreException ex) {
Logger.getLogger(AddTagAction.class.getName()).log(Level.SEVERE, "Error adding " + tagDisplayName + " tag name", ex);
- JOptionPane.showMessageDialog(null, "Unable to add the " + tagDisplayName + " tag name to the case.", "Tagging Error", JOptionPane.ERROR_MESSAGE);
+ JOptionPane.showMessageDialog(null,
+ NbBundle.getMessage(this.getClass(),
+ "GetTagNameDialog.unableToAddTagNameToCase.msg",
+ tagDisplayName),
+ NbBundle.getMessage(this.getClass(), "GetTagNameDialog.taggingErr"),
+ JOptionPane.ERROR_MESSAGE);
tagName = null;
}
catch (TagsManager.TagNameAlreadyExistsException ex) {
Logger.getLogger(AddTagAction.class.getName()).log(Level.SEVERE, "Error adding " + tagDisplayName + " tag name", ex);
- JOptionPane.showMessageDialog(null, "A " + tagDisplayName + " tag name has already been defined.", "Duplicate Tag Error", JOptionPane.ERROR_MESSAGE);
+ JOptionPane.showMessageDialog(null,
+ NbBundle.getMessage(this.getClass(),
+ "GetTagNameDialog.tagNameAlreadyDef.msg",
+ tagDisplayName),
+ NbBundle.getMessage(this.getClass(), "GetTagNameDialog.dupTagErr"),
+ JOptionPane.ERROR_MESSAGE);
tagName = null;
}
}
diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageAction.java b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageAction.java
index 469b600ac2..a769194ed3 100644
--- a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageAction.java
+++ b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageAction.java
@@ -111,15 +111,18 @@ public final class AddImageAction extends CallableSystemAction implements Presen
final IngestConfigurator ingestConfig = Lookup.getDefault().lookup(IngestConfigurator.class);
if (null != ingestConfig && ingestConfig.isIngestRunning()) {
- final String msg = "Ingest is ongoing on another data source. Adding a new source now might slow down the current ingest.
Do you want to proceed and add a new data source now?";
- if (JOptionPane.showConfirmDialog(null, msg, "Ingest in progress", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.NO_OPTION) {
+ final String msg = NbBundle.getMessage(this.getClass(), "AddImageAction.ingestConfig.ongoingIngest.msg");
+ if (JOptionPane.showConfirmDialog(null, msg,
+ NbBundle.getMessage(this.getClass(),
+ "AddImageAction.ingestConfig.ongoingIngest.title"),
+ JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.NO_OPTION) {
return;
}
}
iterator = new AddImageWizardIterator(this);
wizardDescriptor = new WizardDescriptor(iterator);
- wizardDescriptor.setTitle("Add Data Source");
+ wizardDescriptor.setTitle(NbBundle.getMessage(this.getClass(), "AddImageAction.wizard.title"));
wizardDescriptor.putProperty(NAME, e);
if (dialog != null) {
diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageTask.java b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageTask.java
index 0057aa689f..1aecf44f31 100644
--- a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageTask.java
+++ b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageTask.java
@@ -24,6 +24,8 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.logging.Level;
+
+import org.openide.util.NbBundle;
import org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessorCallback;
import org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessorProgressMonitor;
import org.sleuthkit.autopsy.coreutils.Logger;
@@ -97,7 +99,9 @@ import org.sleuthkit.datamodel.TskException;
String currDir = process.currentDirectory();
if (currDir != null) {
if (!currDir.isEmpty() ) {
- progressMonitor.setProgressText("Adding: " + currDir);
+ progressMonitor.setProgressText(
+ NbBundle.getMessage(this.getClass(), "AddImageTask.run.progress.adding",
+ currDir));
}
}
// this sleep here prevents the UI from locking up
@@ -298,7 +302,7 @@ import org.sleuthkit.datamodel.TskException;
logger.log(Level.INFO, "interrupt() add image process");
addImageProcess.stop(); //it might take time to truly stop processing and writing to db
} catch (TskCoreException ex) {
- throw new Exception("Error stopping add-image process.", ex);
+ throw new Exception(NbBundle.getMessage(this.getClass(), "AddImageTask.interrupt.exception.msg"), ex);
}
}
diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressPanel.java b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressPanel.java
index 951d60c834..14920f7183 100644
--- a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressPanel.java
+++ b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressPanel.java
@@ -29,6 +29,7 @@ import javax.swing.event.ChangeListener;
import org.openide.WizardDescriptor;
import org.openide.util.HelpCtx;
import org.openide.util.Lookup;
+import org.openide.util.NbBundle;
import org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessorProgressMonitor;
/**
@@ -136,7 +137,8 @@ class AddImageWizardAddingProgressPanel implements WizardDescriptor.FinishablePa
public boolean isValid() {
// set the focus to the next button of the wizard dialog if it's enabled
if (imgAdded) {
- Lookup.getDefault().lookup(AddImageAction.class).requestFocusButton("Next >");
+ Lookup.getDefault().lookup(AddImageAction.class).requestFocusButton(
+ NbBundle.getMessage(this.getClass(), "AddImageWizardAddingProgressPanel.isValid.focusNext"));
}
return imgAdded;
@@ -147,7 +149,8 @@ class AddImageWizardAddingProgressPanel implements WizardDescriptor.FinishablePa
*/
void setStateStarted() {
component.getProgressBar().setIndeterminate(true);
- component.setProgressBarTextAndColor("*This process may take some time for large data sources.", 0, Color.black);
+ component.setProgressBarTextAndColor(
+ NbBundle.getMessage(this.getClass(), "AddImageWizardAddingProgressPanel.stateStarted.progressBarText"), 0, Color.black);
}
/**
diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressVisual.java b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressVisual.java
index a7be36a1d7..afd5ec7281 100644
--- a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressVisual.java
+++ b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardAddingProgressVisual.java
@@ -23,6 +23,7 @@ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JProgressBar;
import org.openide.WizardDescriptor;
+import org.openide.util.NbBundle;
/**
* visual component to display progress bar and status updates while adding an
@@ -30,7 +31,8 @@ import org.openide.WizardDescriptor;
*/
class AddImageWizardAddingProgressVisual extends javax.swing.JPanel {
- private static final String ADDING_DATA_SOURCE_COMPLETE = "Adding Data Source - Complete";
+ private static final String ADDING_DATA_SOURCE_COMPLETE = NbBundle
+ .getMessage(AddImageWizardAddingProgressVisual.class, "AddImageWizardAddingProgressVisual.addingDsComplete.text");
private String errorLog = "";
private boolean hasCriticalErrors = false;
@@ -42,7 +44,7 @@ import org.openide.WizardDescriptor;
*/
@Override
public String getName() {
- return "Add Data Source";
+ return NbBundle.getMessage(this.getClass(), "AddImageWizardAddingProgressVisual.getName.text");
}
/**
@@ -115,10 +117,12 @@ import org.openide.WizardDescriptor;
//progressBar.setValue(100); //always invoked when process completed
if (hasCriticalErrors) {
statusLabel.setForeground(Color.RED);
- statusLabel.setText("*Failed to add data source (critical errors encountered). Click below to view the log.");
+ statusLabel.setText(
+ NbBundle.getMessage(this.getClass(), "AddImageWizardAddingProgressVisual.showErrors.critText"));
} else {
statusLabel.setForeground(Color.BLACK);
- statusLabel.setText("*Data Source added (non-critical errors encountered). Click below to view the log.");
+ statusLabel.setText(
+ NbBundle.getMessage(this.getClass(), "AddImageWizardAddingProgressVisual.showErrors.nonCritText"));
}
errorLog += errors + "\n";
diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardChooseDataSourcePanel.java b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardChooseDataSourcePanel.java
index d662439f3b..9f595e92d3 100644
--- a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardChooseDataSourcePanel.java
+++ b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardChooseDataSourcePanel.java
@@ -25,6 +25,8 @@ import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.logging.Level;
+
+import org.openide.util.NbBundle;
import org.sleuthkit.autopsy.coreutils.Logger;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
@@ -106,7 +108,8 @@ class AddImageWizardChooseDataSourcePanel implements WizardDescriptor.Panel");
+ Lookup.getDefault().lookup(AddImageAction.class).requestFocusButton(
+ NbBundle.getMessage(this.getClass(), "AddImageWizardChooseDataSourcePanel.moveFocusNext"));
}
}
diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardChooseDataSourceVisual.java b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardChooseDataSourceVisual.java
index 65a97761dd..7cd8f412ba 100644
--- a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardChooseDataSourceVisual.java
+++ b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardChooseDataSourceVisual.java
@@ -18,7 +18,6 @@
*/
package org.sleuthkit.autopsy.casemodule;
-
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
@@ -37,25 +36,22 @@ import javax.swing.JSeparator;
import javax.swing.event.DocumentEvent;
import javax.swing.ListCellRenderer;
import org.openide.util.Lookup;
+import org.openide.util.NbBundle;
import org.sleuthkit.autopsy.coreutils.Logger;
import org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessor;
/**
- * visual component for the first panel of add image wizard.
- * Allows the user to choose the data source type and then select the data source
+ * visual component for the first panel of add image wizard. Allows the user to
+ * choose the data source type and then select the data source
*
*/
final class AddImageWizardChooseDataSourceVisual extends JPanel {
static final Logger logger = Logger.getLogger(AddImageWizardChooseDataSourceVisual.class.getName());
-
private AddImageWizardChooseDataSourcePanel wizPanel;
-
private JPanel currentPanel;
- private Map datasourceProcessorsMap = new HashMap();
-
-
- List coreDSPTypes = new ArrayList();
+ private Map datasourceProcessorsMap = new HashMap<>();
+ List coreDSPTypes = new ArrayList<>();
/**
* Creates new form AddImageVisualPanel1
@@ -65,46 +61,45 @@ final class AddImageWizardChooseDataSourceVisual extends JPanel {
AddImageWizardChooseDataSourceVisual(AddImageWizardChooseDataSourcePanel wizPanel) {
initComponents();
this.wizPanel = wizPanel;
-
+
customInit();
}
private void customInit() {
-
+
typePanel.setLayout(new BorderLayout());
-
+
discoverDataSourceProcessors();
-
+
// set up the DSP type combobox
typeComboBox.removeAllItems();
-
+
Set dspTypes = datasourceProcessorsMap.keySet();
-
+
// make a list of core DSPs
// ensure that the core DSPs are at the top and in a fixed order
coreDSPTypes.add(ImageDSProcessor.getType());
coreDSPTypes.add(LocalDiskDSProcessor.getType());
coreDSPTypes.add(LocalFilesDSProcessor.getType());
-
- for(String dspType:coreDSPTypes){
+
+ for (String dspType : coreDSPTypes) {
typeComboBox.addItem(dspType);
}
-
+
// now add any addtional DSPs that haven't already been added
- for(String dspType:dspTypes){
+ for (String dspType : dspTypes) {
if (!coreDSPTypes.contains(dspType)) {
typeComboBox.addItem(dspType);
}
}
-
- // set a custom renderer that draws a separator at the end of the core DSPs in the combobox
- typeComboBox.setRenderer(new ComboboxSeparatorRenderer(typeComboBox.getRenderer()){
+
+ typeComboBox.setRenderer(new ComboboxSeparatorRenderer(typeComboBox.getRenderer()) {
@Override
- protected boolean addSeparatorAfter(JList list, Object value, int index){
- return (index == coreDSPTypes.size() - 1);
- }
- });
-
+ protected boolean addSeparatorAfter(JList list, Object value, int index) {
+ return (index == coreDSPTypes.size() - 1);
+ }
+ });
+
//add actionlistner to listen for change
ActionListener cbActionListener = new ActionListener() {
@Override
@@ -117,24 +112,23 @@ final class AddImageWizardChooseDataSourceVisual extends JPanel {
}
private void discoverDataSourceProcessors() {
-
- for (DataSourceProcessor dsProcessor: Lookup.getDefault().lookupAll(DataSourceProcessor.class)) {
-
- if (!datasourceProcessorsMap.containsKey(dsProcessor.getDataSourceType()) ) {
- datasourceProcessorsMap.put(dsProcessor.getDataSourceType(), dsProcessor);
- }
- else {
- logger.log(Level.SEVERE, "discoverDataSourceProcessors(): A DataSourceProcessor already exists for type = " + dsProcessor.getDataSourceType() );
- }
- }
- }
- private void dspSelectionChanged() {
- // update the current panel to selection
- currentPanel = getCurrentDSProcessor().getPanel();
- updateCurrentPanel(currentPanel);
+ for (DataSourceProcessor dsProcessor : Lookup.getDefault().lookupAll(DataSourceProcessor.class)) {
+
+ if (!datasourceProcessorsMap.containsKey(dsProcessor.getDataSourceType())) {
+ datasourceProcessorsMap.put(dsProcessor.getDataSourceType(), dsProcessor);
+ } else {
+ logger.log(Level.SEVERE, "discoverDataSourceProcessors(): A DataSourceProcessor already exists for type = {0}", dsProcessor.getDataSourceType());
+ }
+ }
}
-
+
+ private void dspSelectionChanged() {
+ // update the current panel to selection
+ currentPanel = getCurrentDSProcessor().getPanel();
+ updateCurrentPanel(currentPanel);
+ }
+
/**
* Changes the current panel to the given panel.
*
@@ -143,7 +137,7 @@ final class AddImageWizardChooseDataSourceVisual extends JPanel {
private void updateCurrentPanel(JPanel panel) {
currentPanel = panel;
typePanel.removeAll();
- typePanel.add((JPanel) currentPanel, BorderLayout.CENTER);
+ typePanel.add(currentPanel, BorderLayout.CENTER);
typePanel.validate();
typePanel.repaint();
currentPanel.addPropertyChangeListener(new PropertyChangeListener() {
@@ -157,24 +151,26 @@ final class AddImageWizardChooseDataSourceVisual extends JPanel {
}
}
});
-
+
updateUI(null);
}
- /**
+ /**
* Returns the currently selected DS Processor
- * @return DataSourceProcessor the DataSourceProcessor corresponding to the data source type selected in the combobox
+ *
+ * @return DataSourceProcessor the DataSourceProcessor corresponding to the
+ * data source type selected in the combobox
*/
protected DataSourceProcessor getCurrentDSProcessor() {
// get the type of the currently selected panel and then look up
// the correspodning DS Handler in the map
String dsType = (String) typeComboBox.getSelectedItem();
DataSourceProcessor dsProcessor = datasourceProcessorsMap.get(dsType);
-
+
return dsProcessor;
-
+
}
-
+
/**
* Returns the name of the this panel. This name will be shown on the left
* panel of the "Add Image" wizard panel.
@@ -183,10 +179,9 @@ final class AddImageWizardChooseDataSourceVisual extends JPanel {
*/
@Override
public String getName() {
- return "Enter Data Source Information";
+ return NbBundle.getMessage(this.getClass(), "AddImageWizardChooseDataSourceVisual.getName.text");
}
-
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
@@ -309,25 +304,27 @@ final class AddImageWizardChooseDataSourceVisual extends JPanel {
this.wizPanel.enableNextButton(getCurrentDSProcessor().isPanelValid());
}
-
- public abstract class ComboboxSeparatorRenderer implements ListCellRenderer{
+ public abstract class ComboboxSeparatorRenderer implements ListCellRenderer {
+
private ListCellRenderer delegate;
private JPanel separatorPanel = new JPanel(new BorderLayout());
private JSeparator separator = new JSeparator();
- public ComboboxSeparatorRenderer(ListCellRenderer delegate){
- this.delegate = delegate;
+ public ComboboxSeparatorRenderer(ListCellRenderer delegate) {
+ this.delegate = delegate;
}
- public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus){
+ @Override
+ public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
Component comp = delegate.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
- if(index!=-1 && addSeparatorAfter(list, value, index)){
+ if (index != -1 && addSeparatorAfter(list, value, index)) {
separatorPanel.removeAll();
separatorPanel.add(comp, BorderLayout.CENTER);
separatorPanel.add(separator, BorderLayout.SOUTH);
return separatorPanel;
- }else
+ } else {
return comp;
+ }
}
protected abstract boolean addSeparatorAfter(JList list, Object value, int index);
diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardIngestConfigPanel.java b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardIngestConfigPanel.java
index c4c2f6d4dd..0e0726480b 100644
--- a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardIngestConfigPanel.java
+++ b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardIngestConfigPanel.java
@@ -19,6 +19,7 @@
package org.sleuthkit.autopsy.casemodule;
+import org.openide.util.NbBundle;
import org.sleuthkit.autopsy.ingest.IngestConfigurator;
import java.awt.Color;
import java.awt.Component;
@@ -275,9 +276,11 @@ class AddImageWizardIngestConfigPanel implements WizardDescriptor.PanelIngest is ongoing on another data source. Adding a new source now might slow down the current ingest.
Do you want to proceed and add a new data source now?