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/RemoteBuildManager.java | 17 +++++------------
1 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/upgrader/RemoteBuildManager.java b/opends/src/quicksetup/org/opends/quicksetup/upgrader/RemoteBuildManager.java
index 693c10f..b97621a 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/upgrader/RemoteBuildManager.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/upgrader/RemoteBuildManager.java
@@ -26,9 +26,10 @@
*/
package org.opends.quicksetup.upgrader;
+import static org.opends.messages.QuickSetupMessages.*;
import org.opends.quicksetup.Application;
-import org.opends.quicksetup.i18n.ResourceProvider;
+
import org.opends.quicksetup.util.Utils;
import javax.swing.*;
@@ -194,7 +195,7 @@
int bytesRead = 0;
byte[] buf = new byte[1024];
app.notifyListeners(0,
- getMsg("build-manager-downloading-build"),
+ INFO_BUILD_MANAGER_DOWNLOADING_BUILD.get(),
null);
while ((i = is.read(buf)) != -1) {
fos.write(buf, 0, i);
@@ -203,14 +204,14 @@
if (length > 0) {
int progress = (bytesRead * 100) / length;
app.notifyListeners(0,
- getMsg("build-manager-downloading-build-progress",
+ INFO_BUILD_MANAGER_DOWNLOADING_BUILD_PROGRESS.get(
String.valueOf(progress)),
null);
}
}
}
app.notifyListeners(0,
- getMsg("build-manager-downloading-build-done"),
+ INFO_BUILD_MANAGER_DOWNLOADING_BUILD_DONE.get(),
null);
} finally {
if (is != null) {
@@ -399,14 +400,6 @@
}
}
- private String getMsg(String key) {
- return ResourceProvider.getInstance().getMsg(key);
- }
-
- private String getMsg(String key, String... args) {
- return ResourceProvider.getInstance().getMsg(key, args);
- }
-
/**
* For testing only.
* @param args command line arguments
--
Gitblit v1.10.0