From 4ce2586f6c99f8384d9beda97938be4721f64b27 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Thu, 2 Oct 2014 16:29:32 +0200 Subject: [PATCH] SONAR-5535 Fix missing l10n keys in size metric --- .../resources/org/sonar/plugins/core/widgets/size.html.erb | 4 ++-- sonar-core/src/main/resources/org/sonar/l10n/core.properties | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.5