Group investment support translation keys together
This way it's easier to find the keys: keys related to the `Budgets::Investments::VotesComponent` class are in the `budgets.investments.votes` namespace. We're making a couple of exceptions; we're not modifying the `supports` nor the `support_title` keys because they're used in other places.
This commit is contained in:
@@ -7,10 +7,10 @@
|
||||
<div class="in-favor">
|
||||
<% if user_voted_for? %>
|
||||
<div class="supported callout success">
|
||||
<%= t("budgets.investments.investment.already_supported") %>
|
||||
<%= t("budgets.investments.votes.already_supported") %>
|
||||
</div>
|
||||
<% elsif investment.should_show_votes? %>
|
||||
<%= button_to t("budgets.investments.investment.give_support"), vote_path,
|
||||
<%= button_to t("budgets.investments.votes.support"), vote_path,
|
||||
class: "button button-support small expanded",
|
||||
title: t("budgets.investments.investment.support_title"),
|
||||
method: "post",
|
||||
|
||||
@@ -38,10 +38,10 @@ class Budgets::Investments::VotesComponent < ApplicationComponent
|
||||
end
|
||||
|
||||
def confirm_vote_message
|
||||
t("budgets.investments.investment.confirm_group", count: investment.group.max_votable_headings)
|
||||
t("budgets.investments.votes.confirm_group", count: investment.group.max_votable_headings)
|
||||
end
|
||||
|
||||
def support_aria_label
|
||||
t("budgets.investments.investment.support_label", investment: investment.title)
|
||||
t("budgets.investments.votes.support_label", investment: investment.title)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -156,23 +156,24 @@ en:
|
||||
investment:
|
||||
add: Vote
|
||||
already_added: You have already added this investment project
|
||||
already_supported: You have already supported this investment project. Share it!
|
||||
support_title: Support this project
|
||||
support_label: "Support %{investment}"
|
||||
confirm_group:
|
||||
one: "You can only support investments in %{count} district. If you continue you cannot change the election of your district. Are you sure?"
|
||||
other: "You can only support investments in %{count} districts. If you continue you cannot change the election of your district. Are you sure?"
|
||||
supports:
|
||||
one: 1 support
|
||||
other: "%{count} supports"
|
||||
zero: No supports
|
||||
give_support: Support
|
||||
header:
|
||||
check_ballot: "Submit my ballot"
|
||||
different_heading_assigned: "You have active votes in another heading: %{heading_link}"
|
||||
change_ballot: "If you change your mind you can remove your votes in %{check_ballot} and start again."
|
||||
check_ballot_link: "submit my ballot"
|
||||
price: "Total budget"
|
||||
votes:
|
||||
already_supported: "You have already supported this investment project. Share it!"
|
||||
confirm_group:
|
||||
one: "You can only support investments in %{count} district. If you continue you cannot change the election of your district. Are you sure?"
|
||||
other: "You can only support investments in %{count} districts. If you continue you cannot change the election of your district. Are you sure?"
|
||||
support: "Support"
|
||||
support_label: "Support %{investment}"
|
||||
investments_list:
|
||||
investment:
|
||||
price: "Price"
|
||||
|
||||
@@ -156,23 +156,24 @@ es:
|
||||
investment:
|
||||
add: Votar
|
||||
already_added: Ya has añadido este proyecto de gasto
|
||||
already_supported: Ya has apoyado este proyecto de gasto. ¡Compártelo!
|
||||
support_title: Apoyar este proyecto
|
||||
support_label: "Apoyar %{investment}"
|
||||
confirm_group:
|
||||
one: "Sólo puedes apoyar proyectos en %{count} distrito. Si sigues adelante no podrás cambiar la elección de este distrito. ¿Estás seguro/a?"
|
||||
other: "Sólo puedes apoyar proyectos en %{count} distritos. Si sigues adelante no podrás cambiar la elección de este distrito. ¿Estás seguro/a?"
|
||||
supports:
|
||||
zero: Sin apoyos
|
||||
one: 1 apoyo
|
||||
other: "%{count} apoyos"
|
||||
give_support: Apoyar
|
||||
header:
|
||||
check_ballot: Revisar y confirmar mis votos
|
||||
different_heading_assigned: "Ya apoyaste proyectos de otra sección del presupuesto: %{heading_link}"
|
||||
change_ballot: "Si cambias de opinión puedes borrar tus votos en %{check_ballot} y volver a empezar."
|
||||
check_ballot_link: "revisar y confirmar mis votos"
|
||||
price: "Presupuesto total"
|
||||
votes:
|
||||
already_supported: "Ya has apoyado este proyecto de gasto. ¡Compártelo!"
|
||||
confirm_group:
|
||||
one: "Sólo puedes apoyar proyectos en %{count} distrito. Si sigues adelante no podrás cambiar la elección de este distrito. ¿Estás seguro/a?"
|
||||
other: "Sólo puedes apoyar proyectos en %{count} distritos. Si sigues adelante no podrás cambiar la elección de este distrito. ¿Estás seguro/a?"
|
||||
support: "Apoyar"
|
||||
support_label: "Apoyar %{investment}"
|
||||
investments_list:
|
||||
investment:
|
||||
price: "Coste"
|
||||
|
||||
Reference in New Issue
Block a user