From cfc513043c5830b5a967733066068c7097b42e3c 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.

---
 opendj-sdk/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java b/opendj-sdk/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java
index b1f489a..87cefec 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/util/VersionCompatibilityIssue.java
@@ -26,9 +26,9 @@
  */
 
 package org.opends.server.util;
+import org.opends.messages.Message;
 
-import static org.opends.server.messages.MessageHandler.getMessage;
-import static org.opends.server.messages.VersionMessages.*;
+import static org.opends.messages.VersionMessages.*;
 
 import java.util.Set;
 import java.util.List;
@@ -218,8 +218,8 @@
      */
     DB_FORMAT_CHANGE_2(
             3, // Unique ID.  See javadoc for more information.
-            getMessage(MSGID_2049_UPGRADE),
-            getMessage(MSGID_2049_REVERSION),
+            INFO_2049_UPGRADE.get(),
+            INFO_2049_REVERSION.get(),
             Effect.REVERSION_DATA_EXPORT_AND_REIMPORT_REQUIRED,
             Effect.UPGRADE_SHOW_WARNING_MESSAGE),
 
@@ -229,8 +229,8 @@
      */
     DB_FORMAT_CHANGE_1(
             2,  // Unique ID.  See javadoc for more information.
-            getMessage(MSGID_1582_UPGRADE),
-            getMessage(MSGID_1582_REVERSION),
+            INFO_1582_UPGRADE.get(),
+            INFO_1582_REVERSION.get(),
             Effect.REVERSION_DATA_EXPORT_AND_REIMPORT_REQUIRED,
             Effect.UPGRADE_SHOW_WARNING_MESSAGE),
 
@@ -240,8 +240,8 @@
      */
     BERKLEY_UPGRADE_1(
             1,  // Unique ID.  See javadoc for more information.
-            getMessage(MSGID_890_UPGRADE),
-            getMessage(MSGID_890_REVERSION),
+            INFO_890_UPGRADE.get(),
+            INFO_890_REVERSION.get(),
             Effect.REVERSION_DATA_EXPORT_AND_REIMPORT_REQUIRED,
             Effect.UPGRADE_SHOW_WARNING_MESSAGE);
 
@@ -265,8 +265,8 @@
 
     private int id;
     private Set<Effect> effects = new HashSet<Effect>();
-    private String upgradeMsg;
-    private String reversionMsg;
+    private Message upgradeMsg;
+    private Message reversionMsg;
 
     /**
      * Creates a parameterized instance.
@@ -324,7 +324,7 @@
      * @param effects of this cause which cause the upgrade/reversion tools
      *        to behave in particular ways
      */
-    private Cause(int id, String upgradeMessage, String reversionMessage,
+    private Cause(int id, Message upgradeMessage, Message reversionMessage,
           Effect... effects) {
       this.id = id;
       this.upgradeMsg = upgradeMessage;
@@ -366,7 +366,7 @@
      *         user useful information (when used with
      *         <code>UPGRADE_SHOW_INFO_MESSAGE</code>)
      */
-    public String getLocalizedUpgradeMessage() {
+    public Message getLocalizedUpgradeMessage() {
       return upgradeMsg;
     }
 
@@ -382,7 +382,7 @@
      *         user useful information (when used with
      *         <code>REVERSION_SHOW_INFO_MESSAGE</code>)
      */
-    public String getLocalizedReversionMessage() {
+    public Message getLocalizedReversionMessage() {
       return reversionMsg;
     }
 

--
Gitblit v1.10.0