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/ui/StepsPanel.java | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/ui/StepsPanel.java b/opends/src/quicksetup/org/opends/quicksetup/ui/StepsPanel.java
index ac6c8d1..f9902d9 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/ui/StepsPanel.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/ui/StepsPanel.java
@@ -39,6 +39,7 @@
import org.opends.quicksetup.UserData;
import org.opends.quicksetup.WizardStep;
+import org.opends.messages.Message;
/**
* This class displays the different steps of the wizard. It appears on the
@@ -132,12 +133,12 @@
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.anchor = GridBagConstraints.WEST;
- HashMap<WizardStep, String> hmText = new HashMap<WizardStep, String>();
+ HashMap<WizardStep, Message> hmText = new HashMap<WizardStep, Message>();
LinkedHashSet<WizardStep> orderedSteps = app.getOrderedSteps();
boolean first = true;
for (WizardStep s : orderedSteps)
{
- hmText.put(s, app.getI18n().getMsg(s.getMessageKey()));
+ hmText.put(s, s.getDisplayMessage());
JPanel subPanel = new JPanel(new GridBagLayout());
subPanel.setOpaque(false);
@@ -172,8 +173,9 @@
subPanel.add(auxPanel, gbc);
JLabel stepLabel =
- UIFactory.makeJLabel(UIFactory.IconType.NO_ICON, hmText.get(s),
- UIFactory.TextStyle.CURRENT_STEP);
+ UIFactory.makeJLabel(UIFactory.IconType.NO_ICON,
+ hmText.get(s),
+ UIFactory.TextStyle.CURRENT_STEP);
hmLabels.put(s, stepLabel);
gbc.insets.left = UIFactory.LEFT_INSET_STEP;
gbc.gridwidth = GridBagConstraints.RELATIVE;
--
Gitblit v1.10.0