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/guitools/org/opends/guitools/statuspanel/ServerStatusPooler.java |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/statuspanel/ServerStatusPooler.java b/opends/src/guitools/org/opends/guitools/statuspanel/ServerStatusPooler.java
index 61033c9..5ce90fc 100644
--- a/opends/src/guitools/org/opends/guitools/statuspanel/ServerStatusPooler.java
+++ b/opends/src/guitools/org/opends/guitools/statuspanel/ServerStatusPooler.java
@@ -33,7 +33,6 @@
 import java.util.logging.Logger;
 
 import org.opends.admin.ads.util.ApplicationTrustManager;
-import org.opends.guitools.i18n.ResourceProvider;
 import org.opends.guitools.statuspanel.event.ServerStatusChangeEvent;
 import org.opends.guitools.statuspanel.event.ServerStatusChangeListener;
 import org.opends.quicksetup.Installation;
@@ -423,20 +422,11 @@
         }
         catch (ConfigException ce)
         {
-          desc.setErrorMessage(ce.getMessage());
+          desc.setErrorMessage(ce.getMessageObject());
         }
         nTriesWithErrorOnline = 0;
       }
     }
   }
 
-  private String getMsg(String key)
-  {
-    return getI18n().getMsg(key);
-  }
-
-  private ResourceProvider getI18n()
-  {
-    return ResourceProvider.getInstance();
-  }
 }

--
Gitblit v1.10.0