Revision: 6517
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=6517&view=rev
Author:   dnaber
Date:     2012-02-12 13:03:24 +0000 (Sun, 12 Feb 2012)
Log Message:
-----------
[community] don't separate pattern tokens by commas (doesn't help the user to 
understand the pattern)

Modified Paths:
--------------
    trunk/ltcommunity/grails-app/views/rule/list.gsp
    trunk/ltcommunity/grails-app/views/rule/show.gsp

Modified: trunk/ltcommunity/grails-app/views/rule/list.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/rule/list.gsp    2012-02-12 12:44:42 UTC 
(rev 6516)
+++ trunk/ltcommunity/grails-app/views/rule/list.gsp    2012-02-12 13:03:24 UTC 
(rev 6517)
@@ -95,6 +95,7 @@
                                 PatternRule pRule = (PatternRule) rule;
                                 String patternDisplay = 
pRule.toPatternString();
                                 patternDisplay = 
StringTools.shorten(patternDisplay, 80, "...");
+                                patternDisplay = patternDisplay.replace(", ", 
" ");  // commas don't help the user to understand the pattern, remove them
                                 %>
                                 <td>${patternDisplay.encodeAsHTML()}</td>
                             </g:if>

Modified: trunk/ltcommunity/grails-app/views/rule/show.gsp
===================================================================
--- trunk/ltcommunity/grails-app/views/rule/show.gsp    2012-02-12 12:44:42 UTC 
(rev 6516)
+++ trunk/ltcommunity/grails-app/views/rule/show.gsp    2012-02-12 13:03:24 UTC 
(rev 6517)
@@ -28,7 +28,7 @@
                     <td><g:message code="ltc.rule.show.pattern" /></td>
                     <td>
                                    <g:if test="${rule instanceof PatternRule}">
-                                       <span 
class="pattern">${rule.toPatternString().encodeAsHTML()}</span><br />
+                                       <span 
class="pattern">${rule.toPatternString().replace(", ", " 
").encodeAsHTML()}</span><br />
                                    </g:if>
                                    <g:else>
                                        <!-- TODO: add link to source code -->

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


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to