From 80c58327faaa4873369f6bb949e62792c2f708e0 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 15 Aug 2007 21:34:53 +0000
Subject: [PATCH] This commit is a step toward getting OpenDS internationalized. There are still issues to be resolved before we can declare that we are internationalized but this commit covers the bulk of changes needed at this time.
---
opends/src/quicksetup/org/opends/quicksetup/upgrader/BuildExtractorCliHelper.java | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/upgrader/BuildExtractorCliHelper.java b/opends/src/quicksetup/org/opends/quicksetup/upgrader/BuildExtractorCliHelper.java
index b8c651e..56e2874 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/upgrader/BuildExtractorCliHelper.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/upgrader/BuildExtractorCliHelper.java
@@ -27,6 +27,8 @@
package org.opends.quicksetup.upgrader;
+import static org.opends.messages.QuickSetupMessages.*;
+
import org.opends.quicksetup.UserDataException;
import java.util.logging.Logger;
@@ -67,7 +69,7 @@
LOG.log(Level.INFO, "obtaining file information interactively");
while(true) {
String fileName = promptForString(
- getMsg("upgrade-file-prompt"), null);
+ INFO_UPGRADE_FILE_PROMPT.get(), null);
try {
uud.setInstallPackage(validateInstallPackFile(fileName));
LOG.log(Level.INFO, "file specified interactively: " +
@@ -79,8 +81,8 @@
}
} else {
throw new UserDataException(null,
- getMsg("error-option-required-or-interactive",
- "-" + UpgradeLauncher.FILE_OPTION_SHORT + "/--" +
+ INFO_ERROR_OPTION_REQUIRED_OR_INTERACTIVE.get("-" +
+ UpgradeLauncher.FILE_OPTION_SHORT + "/--" +
UpgradeLauncher.FILE_OPTION_LONG));
}
return uud;
@@ -92,11 +94,10 @@
File f = new File(fileName);
if (!f.exists()) {
throw new UserDataException(null,
- getMsg("build-extractor-error-file-no-exist",
- fileName));
+ INFO_BUILD_EXTRACTOR_ERROR_FILE_NO_EXIST.get(fileName));
} else if (f.isDirectory() || !f.getName().toLowerCase().endsWith(".zip")) {
throw new UserDataException(null,
- getMsg("build-extractor-error-file-not-zip", fileName));
+ INFO_BUILD_EXTRACTOR_ERROR_FILE_NOT_ZIP.get(fileName));
}
return f;
}
--
Gitblit v1.10.0