diff --git a/app/views/budgets/executions/show.html.erb b/app/views/budgets/executions/show.html.erb index aa107e3b6..a0e3324bc 100644 --- a/app/views/budgets/executions/show.html.erb +++ b/app/views/budgets/executions/show.html.erb @@ -32,7 +32,7 @@ <%= link_to t("budgets.results.link"), budget_results_path(@budget) %>
  • - <%= link_to t("budgets.stats.link"), budget_stats_path(@budget) %> + <%= link_to t("stats.budgets.link"), budget_stats_path(@budget) %>
  • <%= link_to t("budgets.executions.link"), budget_executions_path(@budget), class: "is-active" %> diff --git a/app/views/budgets/results/show.html.erb b/app/views/budgets/results/show.html.erb index 43e403090..58916ae95 100644 --- a/app/views/budgets/results/show.html.erb +++ b/app/views/budgets/results/show.html.erb @@ -32,7 +32,7 @@ <%= link_to t("budgets.results.link"), budget_results_path(@budget), class: "is-active" %>
  • - <%= link_to t("budgets.stats.link"), budget_stats_path(@budget) %> + <%= link_to t("stats.budgets.link"), budget_stats_path(@budget) %>
  • <%= link_to t("budgets.executions.link"), budget_executions_path(@budget) %> diff --git a/app/views/budgets/stats/show.html.erb b/app/views/budgets/stats/show.html.erb index 6fe5153e3..0c55ae9b7 100644 --- a/app/views/budgets/stats/show.html.erb +++ b/app/views/budgets/stats/show.html.erb @@ -1,5 +1,5 @@ <% provide :title do %> - <%= t("budgets.stats.page_title", budget: @budget.name) %> + <%= t("stats.budgets.page_title", budget: @budget.name) %> <% end %> <% provide :social_media_meta_tags do %> <%= render "shared/social_media_meta_tags", @@ -30,7 +30,7 @@ <%= link_to t("budgets.results.link"), budget_results_path(@budget) %>
  • - <%= link_to t("budgets.stats.link"), budget_stats_path(@budget), class: "is-active" %> + <%= link_to t("stats.budgets.link"), budget_stats_path(@budget), class: "is-active" %>
  • <%= link_to t("budgets.executions.link"), budget_executions_path(@budget) %> @@ -99,22 +99,22 @@ - - - - - + + + + + - - - - - - - - - + + + + + + + + + @@ -153,13 +153,13 @@

    - <%= t("budgets.stats.no_demographic_data", total: @stats[:total_unknown_gender_or_age]) %> + <%= t("stats.budgets.no_demographic_data", total: @stats[:total_unknown_gender_or_age]) %>

    - <%= t("budgets.stats.participatory_disclaimer") %> + <%= t("stats.budgets.participatory_disclaimer") %>

    - <%= t("budgets.stats.heading_disclaimer") %> + <%= t("stats.budgets.heading_disclaimer") %>

    diff --git a/config/locales/en/budgets.yml b/config/locales/en/budgets.yml index 6eab5a41c..d7bd7235d 100644 --- a/config/locales/en/budgets.yml +++ b/config/locales/en/budgets.yml @@ -191,17 +191,3 @@ en: dates_range_invalid: "Start date can't be equal or later than End date" prev_phase_dates_invalid: "Start date must be later than the start date of the previous enabled phase (%{phase_name})" next_phase_dates_invalid: "End date must be earlier than the end date of the next enabled phase (%{phase_name})" - stats: - link: Stats - page_title: "%{budget} - Participation stats" - total: Total - heading: Heading - investments_sent_html: "Investment proposals sent" - participants_support_phase: Participants support phase - participants_voting_phase: Participants voting phase - participants_total: Total Participants - percent_total_participants_html: "%
    Total
    Participants" - percent_heading_census_html: "%
    Heading
    Census" - no_demographic_data: "* 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/en/stats.yml b/config/locales/en/stats.yml index 3f876e48b..9c92ebd10 100644 --- a/config/locales/en/stats.yml +++ b/config/locales/en/stats.yml @@ -17,6 +17,8 @@ en: geozone: "District" geozone_participation: "% District population participation" budgets: + link: "Stats" + page_title: "%{budget} - Participation stats" total_investments: "Total proposed investments" total_selected_investments: "Proposals on final phase" total_unfeasible_investments: "Unfeasible proposals" @@ -26,6 +28,17 @@ en: participants: "Participants" supports: "Supports" by_heading: "Participants by heading" + total: "Total" + heading: "Heading" + investments_sent_html: "Investment proposals sent" + participants_support_phase: "Participants support phase" + participants_voting_phase: "Participants voting phase" + participants_total: "Total Participants" + percent_total_participants_html: "%
    Total
    Participants" + percent_heading_census_html: "%
    Heading
    Census" + no_demographic_data: "* 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." polls: by_channel: "Participants by channel" by_gender_and_channel: "Participants by gender and channel" diff --git a/config/locales/es/budgets.yml b/config/locales/es/budgets.yml index bbcea750a..982149b5a 100644 --- a/config/locales/es/budgets.yml +++ b/config/locales/es/budgets.yml @@ -191,17 +191,3 @@ es: dates_range_invalid: "La fecha de comienzo no puede ser igual o superior a la de finalización" prev_phase_dates_invalid: "La fecha de inicio debe ser posterior a la fecha de inicio de la anterior fase habilitada (%{phase_name})" next_phase_dates_invalid: "La fecha de fin debe ser anterior a la fecha de fin de la siguiente fase habilitada (%{phase_name})" - stats: - link: Estadísticas - page_title: "%{budget} - Estadísticas de participación" - total: Total - heading: Distrito - investments_sent_html: "Propuestas
    enviadas" - participants_support_phase: Participación fase apoyos - participants_voting_phase: Participación fase votación - participants_total: Participación total - percent_total_participants_html: "%
    Total
    Participantes" - percent_heading_census_html: "%
    Censo
    Distrito" - no_demographic_data: "* 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." diff --git a/config/locales/es/stats.yml b/config/locales/es/stats.yml index f76d35142..993db1fb9 100644 --- a/config/locales/es/stats.yml +++ b/config/locales/es/stats.yml @@ -17,6 +17,8 @@ es: geozone: "Distrito" geozone_participation: "% Partipación población del distrito" budgets: + link: "Estadísticas" + page_title: "%{budget} - Estadísticas de participación" total_investments: "Total propuestas enviadas" total_selected_investments: "Propuestas en la fase final" total_unfeasible_investments: "Propuestas inviables" @@ -26,6 +28,17 @@ es: participants: "Participantes" supports: "Apoyos" by_heading: "Participación por distritos" + total: "Total" + heading: "Distrito" + investments_sent_html: "Propuestas
    enviadas" + participants_support_phase: Participación fase apoyos + participants_voting_phase: Participación fase votación + participants_total: Participación total + percent_total_participants_html: "%
    Total
    Participantes" + percent_heading_census_html: "%
    Censo
    Distrito" + no_demographic_data: "* 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." polls: by_channel: "Participación por medio" by_gender_and_channel: "Participación por género y medio"
    <%= t("budgets.stats.heading") %><%= t("budgets.stats.investments_sent_html") %><%= t("budgets.stats.participants_support_phase") %><%= t("budgets.stats.participants_voting_phase") %><%= t("budgets.stats.participants_total") %><%= t("stats.budgets.heading") %><%= t("stats.budgets.investments_sent_html") %><%= t("stats.budgets.participants_support_phase") %><%= t("stats.budgets.participants_voting_phase") %><%= t("stats.budgets.participants_total") %>
    <%= t("budgets.stats.total") %><%= t("budgets.stats.percent_total_participants_html") %><%= t("budgets.stats.percent_heading_census_html") %><%= t("budgets.stats.total") %><%= t("budgets.stats.percent_total_participants_html") %><%= t("budgets.stats.percent_heading_census_html") %><%= t("budgets.stats.total") %><%= t("budgets.stats.percent_total_participants_html") %><%= t("budgets.stats.percent_heading_census_html") %><%= t("stats.budgets.total") %><%= t("stats.budgets.percent_total_participants_html") %><%= t("stats.budgets.percent_heading_census_html") %><%= t("stats.budgets.total") %><%= t("stats.budgets.percent_total_participants_html") %><%= t("stats.budgets.percent_heading_census_html") %><%= t("stats.budgets.total") %><%= t("stats.budgets.percent_total_participants_html") %><%= t("stats.budgets.percent_heading_census_html") %>