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/installer/ui/InstallWelcomePanel.java |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/opends/src/quicksetup/org/opends/quicksetup/installer/ui/InstallWelcomePanel.java b/opends/src/quicksetup/org/opends/quicksetup/installer/ui/InstallWelcomePanel.java
index 42e5ba0..5261d57 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/installer/ui/InstallWelcomePanel.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/installer/ui/InstallWelcomePanel.java
@@ -27,6 +27,10 @@
 
 package org.opends.quicksetup.installer.ui;
 
+import org.opends.messages.Message;
+import static org.opends.messages.QuickSetupMessages.*;
+import org.opends.server.util.DynamicConstants;
+
 import java.awt.Component;
 
 import org.opends.quicksetup.ui.GuiApplication;
@@ -55,41 +59,38 @@
   /**
    * {@inheritDoc}
    */
-  protected String getTitle()
+  protected Message getTitle()
   {
-    return getMsg("welcome-panel-title");
+    return INFO_WELCOME_PANEL_TITLE.get();
   }
 
   /**
    * {@inheritDoc}
    */
-  protected String getInstructions()
+  protected Message getInstructions()
   {
     /*
      * We can use org.opends.server.util.DynamicConstants without problems as it
      * has been added to quicksetup.jar during build time.
      */
-    String[] args;
-    String msgKey;
+    Message message;
     if (Utils.isWebStart())
     {
-      msgKey = "welcome-panel-webstart-instructions";
-      args = new String[3];
       String cmd = Utils.isWindows()? Installation.WINDOWS_SETUP_FILE_NAME:
           Installation.UNIX_SETUP_FILE_NAME;
-      args[0] = UIFactory.applyFontToHtml(cmd,
-          UIFactory.INSTRUCTIONS_MONOSPACE_FONT);
-      args[1] = org.opends.server.util.DynamicConstants.COMPACT_VERSION_STRING;
-      args[2] = org.opends.server.util.DynamicConstants.BUILD_ID;
+      message = INFO_WELCOME_PANEL_WEBSTART_INSTRUCTIONS.get(
+              UIFactory.applyFontToHtml(cmd,
+                      UIFactory.INSTRUCTIONS_MONOSPACE_FONT),
+              DynamicConstants.COMPACT_VERSION_STRING,
+              DynamicConstants.BUILD_ID);
     }
     else
     {
-      args = new String[2];
-      args[0] = org.opends.server.util.DynamicConstants.COMPACT_VERSION_STRING;
-      args[1] = org.opends.server.util.DynamicConstants.BUILD_ID;
-      msgKey = "welcome-panel-offline-instructions";
+      message = INFO_WELCOME_PANEL_OFFLINE_INSTRUCTIONS.get(
+              DynamicConstants.COMPACT_VERSION_STRING,
+              DynamicConstants.BUILD_ID);
     }
-    return getMsg(msgKey, args);
+    return message;
   }
 
   /**

--
Gitblit v1.10.0