From fd4ea312c3c4910aa757139c0b093bf7d1c1ceaa Mon Sep 17 00:00:00 2001 From: Bertocq Date: Fri, 30 Jun 2017 12:15:11 +0200 Subject: [PATCH] Fix budget stats translations with line breaks --- app/views/budgets/stats/show.html.erb | 20 ++++++++++---------- config/locales/en/budgets.yml | 12 ++++++------ config/locales/es/budgets.yml | 12 ++++++------ 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/app/views/budgets/stats/show.html.erb b/app/views/budgets/stats/show.html.erb index 5570cc13e..f95311022 100644 --- a/app/views/budgets/stats/show.html.erb +++ b/app/views/budgets/stats/show.html.erb @@ -99,7 +99,7 @@
-

<%= t("budgets.stats.by_gender") %>

+

<%= t("budgets.stats.by_gender_html") %>


@@ -150,7 +150,7 @@
-

<%= t("budgets.stats.by_age") %>

+

<%= t("budgets.stats.by_age_html") %>


@@ -197,7 +197,7 @@
-

<%= t("budgets.stats.by_heading") %>

+

<%= t("budgets.stats.by_heading_html") %>

@@ -212,14 +212,14 @@ <%= t("budgets.stats.total").upcase %> - <%= t("budgets.stats.percent_total_participants").upcase %> - <%= t("budgets.stats.percent_heading_census").upcase %> + <%= t("budgets.stats.percent_total_participants_html") %> + <%= t("budgets.stats.percent_heading_census_html") %> <%= t("budgets.stats.total").upcase %> - <%= t("budgets.stats.percent_total_participants").upcase %> - <%= t("budgets.stats.percent_heading_census").upcase %> + <%= t("budgets.stats.percent_total_participants_html") %> + <%= t("budgets.stats.percent_heading_census_html") %> <%= t("budgets.stats.total").upcase %> - <%= t("budgets.stats.percent_total_participants").upcase %> - <%= t("budgets.stats.percent_heading_census").upcase %> + <%= t("budgets.stats.percent_total_participants_html") %> + <%= t("budgets.stats.percent_heading_census_html") %> @@ -261,7 +261,7 @@

- <%= t("budgets.stats.no_demographic_data", total: @stats[:total_unknown_gender_or_age]) %> + <%= t("budgets.stats.no_demographic_data_html", total: @stats[:total_unknown_gender_or_age]) %>
diff --git a/config/locales/en/budgets.yml b/config/locales/en/budgets.yml index 2002d54ea..299ae7c49 100644 --- a/config/locales/en/budgets.yml +++ b/config/locales/en/budgets.yml @@ -203,22 +203,22 @@ en: supports: Supports votes: Votes total_participants_vote_phase: Voting Phase - by_gender: "Participants
by sex" + by_gender_html: "Participants
by sex" total_male_participants: Mens total_female_participants: Women - by_age: "Participants by
age groups" + by_age_html: "Participants by
age groups" age: Age total: Total more_than: More than years: years - by_heading: "Participants by
heading" + by_heading_html: "Participants by
heading" heading: Heading investments_sent: Investment proposals sent participants_support_phase: Participants support phase participants_voting_phase: Participants voting phase participants_total: Total Participants - percent_total_participants: "%
Total
Participants" - percent_heading_census: "%
Heading
Census" - no_demographic_data: "* There is no demographic data for
%{total}
participants." + percent_total_participants_html: "%
Total
Participants" + percent_heading_census_html: "%
Heading
Census" + no_demographic_data_html: "* There is no demographic data for
%{total}
participants." participatory_disclaimer: "** The numbers of total participation refer to persons that created, supported or voted investment proposals." heading_disclaimer: "*** Data about headings refer to the heading where each user voted, not necessarily the one that person is registered on." diff --git a/config/locales/es/budgets.yml b/config/locales/es/budgets.yml index 5fefc3430..5c1be0866 100644 --- a/config/locales/es/budgets.yml +++ b/config/locales/es/budgets.yml @@ -204,21 +204,21 @@ es: votes: Votos total_participants_vote_phase: Fase de votación total: Total - by_gender: "Participación
por sexo" + by_gender_html: "Participación
por sexo" total_male_participants: Hombres total_female_participants: Mujeres - by_age: "Participación por
grupos de edad" + by_age_html: "Participación por
grupos de edad" age: Edad more_than: Más de years: años - by_heading: "Participación por
distritos" + by_heading_html: "Participación por
distritos" heading: Distrito investments_sent: Propuestas enviadas participants_support_phase: Participación fase apoyos participants_voting_phase: Participación fase apoyos participants_total: Participación fase apoyos - percent_total_participants: "%
Total
Participantes" - percent_heading_census: "%
Censo
Distrito" - no_demographic_data: "* No se dispone de los datos demográficos de
%{total}
participantes." + percent_total_participants_html: "%
Total
Participantes" + percent_heading_census_html: "%
Censo
Distrito" + no_demographic_data_html: "* No se dispone de los datos demográficos de
%{total}
participantes." participatory_disclaimer: "** Las cifras de participación total se refieren a personas que han creado, apoyado o votado propuestas." heading_disclaimer: "*** Los datos de distrito se refieren al distrito en el que el usuario ha votado, no necesariamente en el que está empadronado."