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/BuildInformation.java | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/BuildInformation.java b/opends/src/quicksetup/org/opends/quicksetup/BuildInformation.java
index 81be967..c079645 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/BuildInformation.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/BuildInformation.java
@@ -27,8 +27,9 @@
package org.opends.quicksetup;
+import static org.opends.messages.QuickSetupMessages.*;
+
import org.opends.quicksetup.util.Utils;
-import org.opends.quicksetup.i18n.ResourceProvider;
import org.opends.server.util.DynamicConstants;
import java.util.HashMap;
@@ -115,7 +116,7 @@
} catch (IOException e) {
throw new ApplicationException(
ApplicationReturnCode.ReturnCode.START_ERROR,
- getMsg("error-creating-build-info"), e);
+ INFO_ERROR_CREATING_BUILD_INFO.get(), e);
} finally {
if (is != null) {
try {
@@ -329,8 +330,7 @@
String id = getBuildId();
if (id != null) {
sb.append(" (")
- .append(ResourceProvider.getInstance().
- getMsg("general-build-id"))
+ .append(INFO_GENERAL_BUILD_ID.get())
.append(": ")
.append(id)
.append(")");
@@ -389,15 +389,11 @@
for (String prop : props) {
if (null == values.get(prop)) {
throw new ApplicationException(
- ApplicationReturnCode.ReturnCode.TOOL_ERROR, getMsg(
- "error-prop-value", prop), null);
+ ApplicationReturnCode.ReturnCode.TOOL_ERROR,
+ INFO_ERROR_PROP_VALUE.get(prop), null);
}
}
}
- static private String getMsg(String key, String... args) {
- return ResourceProvider.getInstance().getMsg(key, args);
- }
-
}
--
Gitblit v1.10.0