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/quicksetup/org/opends/quicksetup/util/WebBrowserLauncher.java | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/WebBrowserLauncher.java b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/WebBrowserLauncher.java
index 73e14e7..14f7e59 100644
--- a/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/WebBrowserLauncher.java
+++ b/opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/util/WebBrowserLauncher.java
@@ -26,6 +26,7 @@
*/
package org.opends.quicksetup.util;
+import org.opends.messages.Message;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
@@ -78,8 +79,9 @@
if (browser == null)
{
- throw new WebBrowserException(url, "Could not find web browser",
- null);
+ throw new WebBrowserException(url, // TODO: i18n
+ Message.raw("Could not find web browser"),
+ null);
} else
{
Runtime.getRuntime().exec(new String[]
@@ -88,22 +90,28 @@
}
} catch (ClassNotFoundException cnfe)
{
- throw new WebBrowserException(url, "Class Not Found Exception", cnfe);
+ throw new WebBrowserException(url, // TODO: i18n
+ Message.raw("Class Not Found Exception"), cnfe);
} catch (IOException ioe)
{
- throw new WebBrowserException(url, "IO Exception", ioe);
+ throw new WebBrowserException(url, // TODO: i18n
+ Message.raw("IO Exception"), ioe);
} catch (InterruptedException ie)
{
- throw new WebBrowserException(url, "Interrupted Exception", ie);
+ throw new WebBrowserException(url, // TODO: i18n
+ Message.raw("Interrupted Exception"), ie);
} catch (NoSuchMethodException nsme)
{
- throw new WebBrowserException(url, "No Such Method Exception", nsme);
+ throw new WebBrowserException(url, // TODO: i18n
+ Message.raw("No Such Method Exception"), nsme);
} catch (InvocationTargetException ite)
{
- throw new WebBrowserException(url, "Invocation Target Exception", ite);
+ throw new WebBrowserException(url, // TODO: i18n
+ Message.raw("Invocation Target Exception"), ite);
} catch (IllegalAccessException iae)
{
- throw new WebBrowserException(url, "Illegal Access Exception", iae);
+ throw new WebBrowserException(url, // TODO: i18n
+ Message.raw("Illegal Access Exception"), iae);
}
}
}
--
Gitblit v1.10.0