]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5535 Fix missing l10n keys in size metric
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 2 Oct 2014 14:29:32 +0000 (16:29 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Thu, 2 Oct 2014 14:29:32 +0000 (16:29 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index e68012f744b6e3f481df4c975da2a1fdce7f95de..cda33b0714f17041799a7d65ec4512c4f3ed2a70 100644 (file)
           <%= format_measure(generated_ncloc, :url => url_for_drilldown(generated_ncloc)) -%>
           <span class="nowrap">
             <%= dashboard_configuration.selected_period? ? format_variation(generated_ncloc) : trend_icon(generated_ncloc) %>
-            <span class="widget-label"><%= message('metric.generated.name.suffix') -%></span>
+            <span class="widget-label"><%= message('metric.generated_ncloc.name.suffix') -%></span>
           </span>
         </p>
       <% end %>
       </p>
 
       <%  if generated_lines && generated_lines.value>0 %>
-        <p>incl. <%= format_measure(generated_lines, :suffix => message('metric.generated.name.suffix'), :url => url_for_drilldown(generated_lines)) -%> <%= dashboard_configuration.selected_period? ? format_variation(generated_lines) : trend_icon(generated_lines) -%></p>
+        <p>incl. <%= format_measure(generated_lines, :suffix => ' ' + message('metric.generated_lines.name.suffix'), :url => url_for_drilldown(generated_lines)) -%> <%= dashboard_configuration.selected_period? ? format_variation(generated_lines) : trend_icon(generated_lines) -%></p>
       <% end %>
 
       <% if projects %>
index bc649128268d58b6b6b537ea6761b98fb82b88aa..b8a6816bb2e8a40145b2bd81d6b3d98b349e5d13 100644 (file)
@@ -2064,10 +2064,12 @@ metric.functions.name=Functions
 metric.functions.description=Functions
 
 metric.generated_lines.name=Generated Lines
+metric.generated_lines.name.suffix=generated lines
 metric.generated_lines.description=Number of generated lines
 metric.generated_lines.abbreviation=Gen. Lines
 
 metric.generated_ncloc.name=Generated lines of code
+metric.generated_ncloc.name.suffix=generated lines of code
 metric.generated_ncloc.description=Generated non Commenting Lines of Code
 metric.generated_ncloc.abbreviation=Gen. LOC