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/admin/DefinitionDecodingException.java | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/admin/DefinitionDecodingException.java b/opendj-sdk/opends/src/server/org/opends/server/admin/DefinitionDecodingException.java
index d5f49ae..7644f99 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/admin/DefinitionDecodingException.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/admin/DefinitionDecodingException.java
@@ -26,7 +26,7 @@
*/
package org.opends.server.admin;
-
+import org.opends.messages.Message;
/**
@@ -51,34 +51,34 @@
* The managed object could be found but did not contain any type
* information (eg missing object classes in LDAP).
*/
- NO_TYPE_INFORMATION(
+ NO_TYPE_INFORMATION(Message.raw( // TODO: i18n?
"The managed object could be found but did not contain any"
- + " type information (e.g. missing object classes in LDAP)."),
+ + " type information (e.g. missing object classes in LDAP).")),
/**
* The managed object could be found but did not contain the expected type
* information (eg incorrect object classes in LDAP).
*/
- WRONG_TYPE_INFORMATION(
+ WRONG_TYPE_INFORMATION(Message.raw( // TODO: i18n?
"The managed object could be found but did not contain the"
+ " expected type information (e.g. incorrect object"
- + " classes in LDAP)."),
+ + " classes in LDAP).")),
/**
* The managed object could be found but its type resolved to an abstract
* managed object definition.
*/
- ABSTRACT_TYPE_INFORMATION(
+ ABSTRACT_TYPE_INFORMATION(Message.raw( // TODO: i18n?
"The managed object could be found but its type resolved to an"
- + " abstract managed object definition.");
+ + " abstract managed object definition."));
// Simple description of this reason for debugging.
- private String msg;
+ private Message msg;
// Private constructor.
- private Reason(String msg) {
+ private Reason(Message msg) {
this.msg = msg;
}
@@ -118,7 +118,7 @@
* {@inheritDoc}
*/
@Override
- public String getMessage() {
+ public Message getMessageObject() {
return reason.msg;
}
--
Gitblit v1.10.0