Revision: 7109
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7109&view=rev
Author:   dnaber
Date:     2012-05-30 20:49:55 +0000 (Wed, 30 May 2012)
Log Message:
-----------
use double quotes for correction

Modified Paths:
--------------
    
trunk/ltcommunity/grails-app/controllers/org/languagetool/RuleEditorController.groovy
    trunk/ltcommunity/grails-app/views/ruleEditor/checkRule.gsp

Modified: 
trunk/ltcommunity/grails-app/controllers/org/languagetool/RuleEditorController.groovy
===================================================================
--- 
trunk/ltcommunity/grails-app/controllers/org/languagetool/RuleEditorController.groovy
       2012-05-30 18:55:48 UTC (rev 7108)
+++ 
trunk/ltcommunity/grails-app/controllers/org/languagetool/RuleEditorController.groovy
       2012-05-30 20:49:55 UTC (rev 7109)
@@ -144,7 +144,7 @@
 
     private String getMessage() {
         String message = params.message.encodeAsHTML()
-        message = message.replaceAll("['\"](.*?)['\"]", 
"<suggestion>\$1</suggestion>")
+        message = message.replaceAll("\"(.*?)\"", 
"<suggestion>\$1</suggestion>")
         message = message.replaceAll("&quot;(.*?)&quot;", 
"<suggestion>\$1</suggestion>")
         return message
     }

Modified: trunk/ltcommunity/grails-app/views/ruleEditor/checkRule.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/ruleEditor/checkRule.gsp 2012-05-30 
18:55:48 UTC (rev 7108)
+++ trunk/ltcommunity/grails-app/views/ruleEditor/checkRule.gsp 2012-05-30 
20:49:55 UTC (rev 7109)
@@ -1,14 +1,17 @@
 <table style="border: 0px">
 <tr>
     <td width="150">Error Message</td>
+    <%
+    String preset = "Did you mean \"bad\"?";
+    %>
     <td><g:textField id="message"
             onkeypress="return handleReturnForXmlCreation(event);"
             onfocus="\$('message').setStyle({color: 'black'})"
             onblur="\$('messageBackup').value = \$('message').value"
             class="preFilledField" type="text" name="message"
-            value="${messagePreset ? messagePreset.encodeAsHTML() : 'Did you 
mean \'bad\'?'}"/>
-        <!--<br/>
-        <span class="metaInfo">Example: Did you mean 'bad'?</span>-->
+            value='${messagePreset ? messagePreset : preset}'/>
+        <br/>
+        <span class="metaInfo">Use double quotes to mark the correction.</span>
     </td>
 </tr>
 <tr>

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to