Revision: 1562
          http://svn.sourceforge.net/spring-rich-c/?rev=1562&view=rev
Author:   ge0ffrey
Date:     2006-11-12 04:32:43 -0800 (Sun, 12 Nov 2006)

Log Message:
-----------
RCP-430 escaping of ' in property files

Modified Paths:
--------------
    
trunk/spring-richclient/samples/petclinic/gui/src/main/resources/org/springframework/richclient/samples/petclinic/ui/messages.properties
    
trunk/spring-richclient/tiger/src/main/java/org/springframework/richclient/exceptionhandling/MessagesDialogExceptionHandler.java

Modified: 
trunk/spring-richclient/samples/petclinic/gui/src/main/resources/org/springframework/richclient/samples/petclinic/ui/messages.properties
===================================================================
--- 
trunk/spring-richclient/samples/petclinic/gui/src/main/resources/org/springframework/richclient/samples/petclinic/ui/messages.properties
    2006-11-07 17:15:26 UTC (rev 1561)
+++ 
trunk/spring-richclient/samples/petclinic/gui/src/main/resources/org/springframework/richclient/samples/petclinic/ui/messages.properties
    2006-11-12 12:32:43 UTC (rev 1562)
@@ -2,7 +2,7 @@
 
 applicationDescriptor.title=Rich Client Pet Clinic - Spring Sample Application
 applicationDescriptor.caption=Manage fido, max, phatcat, and birdie from a 
rich client interface!
-applicationDescriptor.description=The Pet Clinic sample application 
demonstrates basic capabilities of Spring's Swing rich client support.
+applicationDescriptor.description=The Pet Clinic sample application 
demonstrates basic capabilities of Spring\'s Swing rich client support.
 
 ownerManagerView.label=&Owner Manager
 ownerManagerView.caption=Manage pet lovers everywhere
@@ -11,7 +11,7 @@
 vetManagerView.caption=Manage the people who look after our pets
 
 petManagerView.label=&Pet Manager
-petManagerView.caption=Manage man (and woman's) best friend!
+petManagerView.caption=Manage man (and woman\'s) best friend!
 
 exceptionHandlingView.label=&Exception handling
 exceptionHandlingView.caption=Test out the exception handling
@@ -80,7 +80,7 @@
 alphabetic=must consist of alphabetic characters only
 
 setup.intro.title=The Spring Rich Client Pet Clinic
-setup.intro.description=The petclinic sample application demonstrates the base 
capabilities<br> of Spring's Rich Client Project, built on standard J2SE Swing.
+setup.intro.description=The petclinic sample application demonstrates the base 
capabilities<br> of Spring\'s Rich Client Project, built on standard J2SE Swing.
 setup.intro.welcomeTo=Welcome To
 setup.cancel.title=Cancel Setup
 setup.cancel.message=Are you sure you wish to cancel the Spring Rich Pet 
Clinic setup?
@@ -95,13 +95,14 @@
 preferenceCommand.caption=Preferences
 
 # Exception handlers
+# Double quotes(") need to be escaped (\"), single quotes (') always seem to 
break the replacing of {0}.
 java.lang.RuntimeException.caption = Unexpected general bug
 java.lang.RuntimeException.description = \
   The application experienced an unexpected bug,\n\
   due to a programming error.\n\
   \n\
   The application is possibly in an inconsistent state.\n\
-  It's recommended to reboot the application.\n\
+  It is recommended to reboot the application.\n\
   \n\
   The exact bug is:\n\
   {0}\n\
@@ -134,13 +135,13 @@
 
 org.acegisecurity.AuthenticationCredentialsNotFoundException.caption = 
Unauthorized action
 org.acegisecurity.AuthenticationCredentialsNotFoundException.description = \
-  You don't have permission to do the requested action\n\
-  because you're not (yet) logged in.\n\
+  You do not have permission to do the requested action\n\
+  because you are not (yet) logged in.\n\
   \n\
   Please log in.
 
 org.acegisecurity.AccessDeniedException.caption = Unauthorized action
 org.acegisecurity.AccessDeniedException.description = \
-  You don't have permission to do the requested action.\n\
+  You do not have permission to do the requested action.\n\
   \n\
   Ask the system operator the permission to do that action.

Modified: 
trunk/spring-richclient/tiger/src/main/java/org/springframework/richclient/exceptionhandling/MessagesDialogExceptionHandler.java
===================================================================
--- 
trunk/spring-richclient/tiger/src/main/java/org/springframework/richclient/exceptionhandling/MessagesDialogExceptionHandler.java
    2006-11-07 17:15:26 UTC (rev 1561)
+++ 
trunk/spring-richclient/tiger/src/main/java/org/springframework/richclient/exceptionhandling/MessagesDialogExceptionHandler.java
    2006-11-12 12:32:43 UTC (rev 1562)
@@ -19,6 +19,8 @@
  * java.lang.Throwable.caption/description.
  * <p/>
  * The exception message is passed as a parameter, but is idented and wrapped 
first.
+ * Note for the repacing of {0} to work in a property file double quotes(") 
need to be escaped (\")
+ * and that single quotes (') should be avoided (escaping doesn't seem to 
work).
  * @author Geoffrey De Smet
  * @since 0.3
  */


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
spring-rich-c-cvs mailing list
spring-rich-c-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to