Use same translations for poll and budget stats

This commit is contained in:
Javi Martín
2018-12-13 19:25:32 +01:00
parent afa8bf8dba
commit 5a3eb70a46
9 changed files with 15 additions and 14 deletions

View File

@@ -15,7 +15,7 @@
<div class="small-12 column">
<%= back_link_to budgets_path %>
<h2 class="margin-top">
<%= t("budgets.stats.title") %><br>
<%= t("stats.title") %><br>
<span><%= @budget.name %></span>
</h2>
</div>
@@ -42,7 +42,7 @@
<div class="row">
<div class="small-12 medium-6 column">
<div class="callout">
<span class="uppercase"><%= t("budgets.stats.total_participants") %></span>
<span class="uppercase"><%= t("stats.total_participants") %></span>
<p id="total_participants" class="big-number-stat budget">
<%= @stats[:total_participants] %>
</p>

View File

@@ -9,10 +9,10 @@
<div class="small-12 medium-3 column sidebar" data-equalizer-watch>
<ul class="menu">
<li>
<%= link_to t("polls.show.stats.title"), "#participation_statistics" %>
<%= link_to t("stats.title"), "#participation_statistics" %>
<ul>
<li>
<%= link_to t("polls.show.stats.total_participation"), "#total_participation" %>
<%= link_to t("stats.total_participants"), "#total_participants" %>
</li>
</ul>
</li>
@@ -20,8 +20,8 @@
</div>
<div class="small-12 medium-9 column" data-equalizer-watch>
<h2 id="participation_statistics"><%= t("polls.show.stats.title") %></h2>
<h3 id="total_participation"><%= t("polls.show.stats.total_participation") %></h3>
<h2 id="participation_statistics"><%= t("stats.title") %></h2>
<h3 id="total_participants"><%= t("stats.total_participants") %></h3>
<p class="margin-top uppercase">
<%= t("polls.show.stats.total_votes") %><br>

View File

@@ -45,6 +45,7 @@ data:
- config/locales/%{locale}/user_groups.yml
- config/locales/%{locale}/i18n.yml
- config/locales/%{locale}/milestones.yml
- config/locales/%{locale}/stats.yml
# Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom:
# `i18n-tasks normalize -p` will force move the keys according to these rules

View File

@@ -192,10 +192,8 @@ en:
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:
title: Participation stats
link: Stats
page_title: "%{budget} - Participation stats"
total_participants: Total Participants
total_budget_investments: Total Proposed Investments
total_selected_investments: Proposals on final phase
total_unfeasible_investments: Unfeasible proposals

View File

@@ -654,8 +654,6 @@ en:
stats_menu: "Participation statistics"
results_menu: "Poll results"
stats:
title: "Participation data"
total_participation: "Total participation"
total_votes: "Total amount of given votes"
votes: "VOTES"
web: "WEB"

View File

@@ -0,0 +1,4 @@
en:
stats:
title: "Participation data"
total_participants: "Participants"

View File

@@ -192,10 +192,8 @@ es:
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:
title: Estadísticas de participación
link: Estadísticas
page_title: "%{budget} - Estadísticas de participación"
total_participants: Total participantes
total_budget_investments: Total propuestas enviadas
total_selected_investments: Propuestas en la fase final
total_unfeasible_investments: Propuestas inviables

View File

@@ -654,8 +654,6 @@ es:
stats_menu: "Estadísticas de participación"
results_menu: "Resultados de la votación"
stats:
title: "Datos de participación"
total_participation: "Participación total"
total_votes: "Nº total de votos emitidos"
votes: "VOTOS"
web: "WEB"

View File

@@ -0,0 +1,4 @@
es:
stats:
title: "Estadísticas de participación"
total_participants: "Participantes"