diff --git a/lib/ac-api/src/main/java/com/webcodepro/applecommander/util/TextBundle.java b/lib/ac-api/src/main/java/com/webcodepro/applecommander/util/TextBundle.java index 101d00a..34d876f 100644 --- a/lib/ac-api/src/main/java/com/webcodepro/applecommander/util/TextBundle.java +++ b/lib/ac-api/src/main/java/com/webcodepro/applecommander/util/TextBundle.java @@ -66,7 +66,12 @@ public class TextBundle { * Retrieve a value for the given resource name. */ public String get(String name) { - return resourceBundle.getString(name); + if (resourceBundle.containsKey(name)) { + return resourceBundle.getString(name); + } + else { + return String.format("KeyNotFound: %s", name); + } } /** diff --git a/lib/ac-api/src/main/resources/com/webcodepro/applecommander/ui/UiBundle.properties b/lib/ac-api/src/main/resources/com/webcodepro/applecommander/ui/UiBundle.properties index 37771ad..e0634b5 100644 --- a/lib/ac-api/src/main/resources/com/webcodepro/applecommander/ui/UiBundle.properties +++ b/lib/ac-api/src/main/resources/com/webcodepro/applecommander/ui/UiBundle.properties @@ -23,9 +23,9 @@ DeleteFileHoverText=Delete a file (CTRL+D) DeleteFileErrorTitle=Unable to view a deleted file! ResizeDiskTitle = Resize disk? ResizeDiskMessage = This disk needs to be resized to match the formatted capacity. This should be an ApplePC HDV disk image - they typically start at 0 bytes and grow to the maximum capacity (32MB). Resize the disk? -ImportFileTitle = Unable to import file(s)! ImportMenuItem=Import...\tCTRL+I -ImportFileMessage = An error occurred during import!\n\nException was "{0}". +ImportErrorTitle = Unable to import file(s)! +ImportErrorMessage = An error occurred during import!\n\nException was "{0}". FilesTab=Files ExpandMenuItem=Expand\t+ CollapseMenuItem=Collapse\t-