Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/util/text
In directory sc8-pr-cvs1:/tmp/cvs-serv28931/src/java/core/org/krysalis/ruper/util/text
Modified Files:
Messages.java
Removed Files:
rupermsg_en_US.properties
Log Message:
Editted messages with IBM Alphaworks' RBManager (thanks folks)
Index: Messages.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/util/text/Messages.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Messages.java 22 Sep 2003 20:18:28 -0000 1.5
--- Messages.java 22 Sep 2003 21:04:15 -0000 1.6
***************
*** 16,25 ****
public class Messages {
//Name of the resource Bundle
! private static final String BUNDLE_NAME = "org.krysalis.ruper";
!
! private static final Locale FALLBACK_LOCALE = Locale.ENGLISH;
//Intialized the ResourceBundle.
! private static ResourceBundle l_resourceBundle = null;
static {
--- 16,23 ----
public class Messages {
//Name of the resource Bundle
! private static final String BUNDLE_NAME = "krysalis-ruper";
//Intialized the ResourceBundle.
! static ResourceBundle l_resourceBundle = null;
static {
***************
*** 27,31 ****
l_resourceBundle =
ResourceBundle.getBundle(BUNDLE_NAME, Locale.getDefault());
-
}
catch (Exception e) {System.err.println(
--- 25,28 ----
***************
*** 35,52 ****
+ Locale.getDefault()
+ "]");
-
- try {
- l_resourceBundle =
- ResourceBundle.getBundle(BUNDLE_NAME, FALLBACK_LOCALE);
-
- }
- catch (Exception ee) {
- System.err.println(
- "Unable to find Ruper resource bundle ["
- + BUNDLE_NAME
- + "] with locale "
- + FALLBACK_LOCALE
- + "]");
- }
}
}
--- 32,35 ----
***************
*** 74,77 ****
--- 57,85 ----
public static String getString(final String code, final Object param) {
return getString(code, new Object[] { param });
+ }
+
+ /**
+ * Formats a message.
+ *
+ * @param code The message code.
+ * @param param1 The first message parameter.
+ * @param param2 The second message parameter.
+ * @return The formatted message.
+ */
+ public static String getString(final String code, final Object param1, Object param2) {
+ return getString(code, new Object[] { param1, param2 });
+ }
+
+ /**
+ * Formats a message.
+ *
+ * @param code The message code.
+ * @param param1 The first message parameter.
+ * @param param2 The second message parameter.
+ * @param param3 The third message parameter.
+ * @return The formatted message.
+ */
+ public static String getString(final String code, final Object param1, Object param2, Object param3) {
+ return getString(code, new Object[] { param1, param2, param3 });
}
--- rupermsg_en_US.properties DELETED ---
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.