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/server/org/opends/server/util/args/BooleanArgument.java |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/args/BooleanArgument.java b/opends/src/server/org/opends/server/util/args/BooleanArgument.java
index 0d6b660..47f6fed 100644
--- a/opends/src/server/org/opends/server/util/args/BooleanArgument.java
+++ b/opends/src/server/org/opends/server/util/args/BooleanArgument.java
@@ -25,12 +25,12 @@
  *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
  */
 package org.opends.server.util.args;
+import org.opends.messages.Message;
 
 
 
-import static org.opends.server.messages.MessageHandler.*;
-import static org.opends.server.messages.UtilityMessages.*;
-
+import static org.opends.messages.UtilityMessages.*;
+import org.opends.messages.MessageBuilder;
 
 
 /**
@@ -52,21 +52,19 @@
    *                           argument, or <CODE>null</CODE> if there is none.
    * @param  longIdentifier    The long identifier for this argument, or
    *                           <CODE>null</CODE> if there is none.
-   * @param  descriptionID     The unique ID of the description for this
+   * @param  description       Message for the description of this
    *                           argument.
-   * @param  descriptionArgs   The arguments that are to be used when generating
-   *                           the description for this argument.
    *
    * @throws  ArgumentException  If there is a problem with any of the
    *                             parameters used to create this argument.
    */
   public BooleanArgument(String name, Character shortIdentifier,
-                         String longIdentifier, int descriptionID,
-                         Object... descriptionArgs)
+                         String longIdentifier,
+                         Message description)
          throws ArgumentException
   {
     super(name, shortIdentifier, longIdentifier, false, false, false, null,
-          null, null, descriptionID, descriptionArgs);
+          null, null, description);
   }
 
 
@@ -83,12 +81,12 @@
    *          <CODE>false</CODE> if it is not.
    */
   public boolean valueIsAcceptable(String valueString,
-                                   StringBuilder invalidReason)
+                                   MessageBuilder invalidReason)
   {
     // This argument type should never have a value, so any value provided will
     // be unacceptable.
-    int msgID = MSGID_BOOLEANARG_NO_VALUE_ALLOWED;
-    invalidReason.append(getMessage(msgID, getName()));
+
+    invalidReason.append(ERR_BOOLEANARG_NO_VALUE_ALLOWED.get(getName()));
 
     return false;
   }

--
Gitblit v1.10.0