Move label translations to activerecord.yml files

Moved only :es and :en translations from general.yml to activerecord.yml
and use them in related forms.
This commit is contained in:
Senén Rodero Rodríguez
2019-02-25 17:55:25 +01:00
committed by voodoorai2000
parent 5dc0f7f054
commit 4236a3a388
6 changed files with 12 additions and 7 deletions

View File

@@ -10,7 +10,6 @@
<%= translations_form.text_field :title,
maxlength: Proposal.title_max_length,
placeholder: t("proposals.form.proposal_title"),
label: t("proposals.form.proposal_title"),
data: { js_suggest_result: "js_suggest_result",
js_suggest: ".js-suggest",
js_url: suggest_proposals_path } %>
@@ -32,8 +31,7 @@
<div class="ckeditor small-12 column">
<%= translations_form.cktext_area :description,
maxlength: Proposal.description_max_length,
ckeditor: { language: I18n.locale },
label: t("proposals.form.proposal_text") %>
ckeditor: { language: I18n.locale } %>
</div>
<% end %>

View File

@@ -23,10 +23,9 @@
<div class="row">
<%= f.translatable_fields do |translations_form| %>
<div class="small-12 medium-9 column">
<div class="small-12 medium-9 column float-left">
<%= translations_form.text_area :retired_explanation,
rows: 4, maxlength: 500,
label: t("proposals.retire_form.retired_explanation_label"),
placeholder: t("proposals.retire_form.retired_explanation_placeholder") %>
</div>
<% end %>

View File

@@ -192,6 +192,11 @@ en:
description: "Description"
selected: "Mark as selected"
terms_of_service: "Terms of service"
proposal/translation:
title: "Proposal title"
description: "Proposal text"
summary: "Proposal summary"
retired_explanation: "Explanation"
user:
login: "Email or username"
email: "Email"

View File

@@ -332,7 +332,6 @@ en:
warning: "If you retire the proposal it would still accept supports, but will be removed from the main list and a message will be visible to all users stating that the author considers the proposal should not be supported anymore"
retired_reason_label: Reason to retire the proposal
retired_reason_blank: Choose an option
retired_explanation_label: Explanation
retired_explanation_placeholder: Explain shortly why you think this proposal should not receive more supports
submit_button: Retire proposal
retire_options:

View File

@@ -194,6 +194,11 @@ es:
description: "Descripción"
selected: "Marcar como seleccionada"
terms_of_service: "Términos de servicio"
proposal/translation:
title: "Título de la propuesta"
description: "Texto desarrollado de la propuesta"
summary: "Resumen de la propuesta"
retired_explanation: "Explicación"
user:
login: "Email o nombre de usuario"
email: "Email"

View File

@@ -332,7 +332,6 @@ es:
warning: "Si sigues adelante tu propuesta podrá seguir recibiendo apoyos, pero dejará de ser listada en la lista principal, y aparecerá un mensaje para todos los usuarios avisándoles de que el autor considera que esta propuesta no debe seguir recogiendo apoyos."
retired_reason_label: Razón por la que se retira la propuesta
retired_reason_blank: Selecciona una opción
retired_explanation_label: Explicación
retired_explanation_placeholder: Explica brevemente por que consideras que esta propuesta no debe recoger más apoyos
submit_button: Retirar propuesta
retire_options: