Move budget stats translations to stats files

We were using custom translations, but now this code is going to be
included in the main CONSUL repository.
This commit is contained in:
Javi Martín
2019-01-11 19:58:03 +01:00
parent cf32dcd6d5
commit 6ad3bc063c
7 changed files with 47 additions and 49 deletions

View File

@@ -32,7 +32,7 @@
<%= link_to t("budgets.results.link"), budget_results_path(@budget) %>
</li>
<li class="tabs-title">
<%= link_to t("budgets.stats.link"), budget_stats_path(@budget) %>
<%= link_to t("stats.budgets.link"), budget_stats_path(@budget) %>
</li>
<li class="tabs-title is-active">
<%= link_to t("budgets.executions.link"), budget_executions_path(@budget), class: "is-active" %>

View File

@@ -32,7 +32,7 @@
<%= link_to t("budgets.results.link"), budget_results_path(@budget), class: "is-active" %>
</li>
<li class="tabs-title">
<%= link_to t("budgets.stats.link"), budget_stats_path(@budget) %>
<%= link_to t("stats.budgets.link"), budget_stats_path(@budget) %>
</li>
<li class="tabs-title">
<%= link_to t("budgets.executions.link"), budget_executions_path(@budget) %>

View File

@@ -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) %>
</li>
<li class="tabs-title is-active">
<%= 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" %>
</li>
<li class="tabs-title">
<%= link_to t("budgets.executions.link"), budget_executions_path(@budget) %>
@@ -99,22 +99,22 @@
<table class="stats-districts survey-districts">
<thead>
<tr>
<th scope="col" rowspan="2"><%= t("budgets.stats.heading") %></th>
<th scope="col" rowspan="2"><%= t("budgets.stats.investments_sent_html") %></th>
<th scope="col" colspan="3"><%= t("budgets.stats.participants_support_phase") %></th>
<th scope="col" colspan="3"><%= t("budgets.stats.participants_voting_phase") %></th>
<th scope="col" colspan="3"><%= t("budgets.stats.participants_total") %></th>
<th scope="col" rowspan="2"><%= t("stats.budgets.heading") %></th>
<th scope="col" rowspan="2"><%= t("stats.budgets.investments_sent_html") %></th>
<th scope="col" colspan="3"><%= t("stats.budgets.participants_support_phase") %></th>
<th scope="col" colspan="3"><%= t("stats.budgets.participants_voting_phase") %></th>
<th scope="col" colspan="3"><%= t("stats.budgets.participants_total") %></th>
</tr>
<tr>
<th scope="col" class="tiny"><%= t("budgets.stats.total") %></th>
<th scope="col" class="tiny"><%= t("budgets.stats.percent_total_participants_html") %></th>
<th scope="col" class="tiny"><%= t("budgets.stats.percent_heading_census_html") %></th>
<th scope="col" class="tiny"><%= t("budgets.stats.total") %></th>
<th scope="col" class="tiny"><%= t("budgets.stats.percent_total_participants_html") %></th>
<th scope="col" class="tiny"><%= t("budgets.stats.percent_heading_census_html") %></th>
<th scope="col" class="tiny"><%= t("budgets.stats.total") %></th>
<th scope="col" class="tiny"><%= t("budgets.stats.percent_total_participants_html") %></th>
<th scope="col" class="tiny"><%= t("budgets.stats.percent_heading_census_html") %></th>
<th scope="col" class="tiny"><%= t("stats.budgets.total") %></th>
<th scope="col" class="tiny"><%= t("stats.budgets.percent_total_participants_html") %></th>
<th scope="col" class="tiny"><%= t("stats.budgets.percent_heading_census_html") %></th>
<th scope="col" class="tiny"><%= t("stats.budgets.total") %></th>
<th scope="col" class="tiny"><%= t("stats.budgets.percent_total_participants_html") %></th>
<th scope="col" class="tiny"><%= t("stats.budgets.percent_heading_census_html") %></th>
<th scope="col" class="tiny"><%= t("stats.budgets.total") %></th>
<th scope="col" class="tiny"><%= t("stats.budgets.percent_total_participants_html") %></th>
<th scope="col" class="tiny"><%= t("stats.budgets.percent_heading_census_html") %></th>
</tr>
</thead>
<tbody id="headings">
@@ -153,13 +153,13 @@
<div class="small-12 column">
<div id="total_unknown_gender_or_age">
<p class="help-text">
<%= 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]) %>
</p>
<p class="help-text">
<%= t("budgets.stats.participatory_disclaimer") %>
<%= t("stats.budgets.participatory_disclaimer") %>
</p>
<p class="help-text">
<%= t("budgets.stats.heading_disclaimer") %>
<%= t("stats.budgets.heading_disclaimer") %>
</p>
</div>
</div>

View File

@@ -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: "% <br>Total<br>Participants"
percent_heading_census_html: "% <br>Heading<br>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."

View File

@@ -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: "% <br>Total<br>Participants"
percent_heading_census_html: "% <br>Heading<br>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"

View File

@@ -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<br>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: "% <br>Total<br>Participantes"
percent_heading_census_html: "% <br>Censo<br>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."

View File

@@ -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<br>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: "% <br>Total<br>Participantes"
percent_heading_census_html: "% <br>Censo<br>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"