Update of 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-externalizer/src/test/java/org/xdoclet/plugin/externalizer/test
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22519/src/test/java/org/xdoclet/plugin/externalizer/test

Modified Files:
        TestMessages.java TestMessagesTranslator.java 
Log Message:
(XDP-78) Applied patch which corrects output bundle filename

Index: TestMessagesTranslator.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-externalizer/src/test/java/org/xdoclet/plugin/externalizer/test/TestMessagesTranslator.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TestMessagesTranslator.java 14 Dec 2003 16:46:22 -0000      1.2
--- TestMessagesTranslator.java 6 Jul 2005 07:28:00 -0000       1.3
***************
*** 1,10 ****
  package org.xdoclet.plugin.externalizer.test;
  
- 
  import java.text.MessageFormat;
  
  import java.util.MissingResourceException;
  import java.util.ResourceBundle;
- import java.util.Locale;
  
  public class TestMessagesTranslator {
--- 1,14 ----
+ /*
+  * Copyright (c) 2003
+  * XDoclet Team
+  * All rights reserved.
+  */
  package org.xdoclet.plugin.externalizer.test;
  
  import java.text.MessageFormat;
  
+ import java.util.Locale;
  import java.util.MissingResourceException;
  import java.util.ResourceBundle;
  
  public class TestMessagesTranslator {
***************
*** 19,23 ****
      }
  
!     public static java.lang.String getString(String resourceKey, Object[] 
arguments) throws MissingResourceException {
          try {
              return 
MessageFormat.format(getBundle().getString(resourceKey.toLowerCase()), 
arguments);
--- 23,28 ----
      }
  
!     public static java.lang.String getString(String resourceKey, Object[] 
arguments)
!         throws MissingResourceException {
          try {
              return 
MessageFormat.format(getBundle().getString(resourceKey.toLowerCase()), 
arguments);
***************
*** 39,43 ****
      }
  
!     public static java.lang.String getString(Locale locale, String 
resourceKey, Object[] arguments) throws MissingResourceException {
          try {
              return 
MessageFormat.format(getBundle(locale).getString(resourceKey.toLowerCase()), 
arguments);
--- 44,49 ----
      }
  
!     public static java.lang.String getString(Locale locale, String 
resourceKey, Object[] arguments)
!         throws MissingResourceException {
          try {
              return 
MessageFormat.format(getBundle(locale).getString(resourceKey.toLowerCase()), 
arguments);
***************
*** 50,54 ****
          return ResourceBundle.getBundle(_bundleKey);
      }
! 
! 
! }
--- 56,58 ----
          return ResourceBundle.getBundle(_bundleKey);
      }
! }
\ No newline at end of file

Index: TestMessages.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-externalizer/src/test/java/org/xdoclet/plugin/externalizer/test/TestMessages.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TestMessages.java   8 May 2004 14:04:14 -0000       1.3
--- TestMessages.java   6 Jul 2005 07:28:00 -0000       1.4
***************
*** 1,2 ****
--- 1,7 ----
+ /*
+  * Copyright (c) 2003
+  * XDoclet Team
+  * All rights reserved.
+  */
  package org.xdoclet.plugin.externalizer.test;
  
***************
*** 10,27 ****
       */
      public final static String DEFAULT_MESSAGE = "default_message";
      /**
!      * @msg.message msg="default language message" 
       * @msg.message msg="Standartmeldung, deutsche Sprache" lang="de"
       */
      public final static String LANGUAGE_MESSAGE = "language_message";
      /**
       * @msg.message msg="Standartmeldung, deutsche Sprache, Deustschland" 
lang="de" country="DE"
       */
      public final static String COUNTRY_MESSAGE = "country_message";
      /**
       * @msg.message msg="Standartmeldung, deutsche Sprache, Deustschland, 
Hessen" lang="de" country="DE" variant="he"
       */
      public final static String VARIANT_MESSAGE = "variant_message";
- 
- 
  }
\ No newline at end of file
--- 15,33 ----
       */
      public final static String DEFAULT_MESSAGE = "default_message";
+ 
      /**
!      * @msg.message msg="default language message"
       * @msg.message msg="Standartmeldung, deutsche Sprache" lang="de"
       */
      public final static String LANGUAGE_MESSAGE = "language_message";
+ 
      /**
       * @msg.message msg="Standartmeldung, deutsche Sprache, Deustschland" 
lang="de" country="DE"
       */
      public final static String COUNTRY_MESSAGE = "country_message";
+ 
      /**
       * @msg.message msg="Standartmeldung, deutsche Sprache, Deustschland, 
Hessen" lang="de" country="DE" variant="he"
       */
      public final static String VARIANT_MESSAGE = "variant_message";
  }
\ No newline at end of file



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to