From: Jean-Baptiste Lievremont Date: Thu, 2 Oct 2014 14:29:32 +0000 (+0200) Subject: SONAR-5535 Fix missing l10n keys in size metric X-Git-Tag: 4.5.1-RC1~122 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4ce2586f6c99f8384d9beda97938be4721f64b27;p=sonarqube.git SONAR-5535 Fix missing l10n keys in size metric --- diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb index e68012f744b..cda33b0714f 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb @@ -110,7 +110,7 @@ <%= format_measure(generated_ncloc, :url => url_for_drilldown(generated_ncloc)) -%> <%= dashboard_configuration.selected_period? ? format_variation(generated_ncloc) : trend_icon(generated_ncloc) %> - <%= message('metric.generated.name.suffix') -%> + <%= message('metric.generated_ncloc.name.suffix') -%>

<% end %> @@ -124,7 +124,7 @@

<% if generated_lines && generated_lines.value>0 %> -

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) -%>

+

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) -%>

<% end %> <% if projects %> diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index bc649128268..b8a6816bb2e 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -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