]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3615 Avoid using pluralize function for I18N
authorSimon Brandhof <simon.brandhof@gmail.com>
Mon, 2 Jul 2012 09:35:43 +0000 (11:35 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Mon, 2 Jul 2012 11:20:27 +0000 (13:20 +0200)
plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties
sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb

index 73c224d5077c64142269d125f44f4e5cf1ee4125..fb9a261cbb9d600623a5852dbddb4581680d13cc 100644 (file)
@@ -97,6 +97,7 @@ rename=Rename
 reset_verb=Reset
 result=Result
 results=Results
+x_results={0} results
 review=Review
 reviews=Reviews
 review_verb=Review
index 6293514a26b6a4c41b1b454566973b371ba75f5f..f99baebe77ae0df1277f222b9c336262e35a6d00 100644 (file)
@@ -36,7 +36,7 @@
     <tr>
       <td colspan="<%= filter.columns.size + 1 -%>">
         <div id="filter-pages-<%= update_id -%>">
-        <span id="results_count"><%= pluralize(@filter_context.size, message('result').downcase) %></span>
+        <span id="results_count"><%= message('x_results', :params => [@filter_context.size]) -%></span>
 
         <%
           if @filter_context.page_count>1