uses _html i18n keys for html_safe values

This commit is contained in:
Juanjo Bazán
2016-03-08 20:50:36 +01:00
parent e732f88f46
commit 7f97b9ef2c
3 changed files with 18 additions and 18 deletions

View File

@@ -26,33 +26,33 @@
<div class="row"> <div class="row">
<div class="small-12 medium-8 column"> <div class="small-12 medium-8 column">
<%= f.label :feasible_explanation, t("valuation.spending_proposals.edit.feasible_explanation") %> <%= f.label :feasible_explanation, t("valuation.spending_proposals.edit.feasible_explanation_html") %>
<%= f.text_area :feasible_explanation, label: false, rows: 3 %> <%= f.text_area :feasible_explanation, label: false, rows: 3 %>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="small-12 medium-4 column"> <div class="small-12 medium-4 column">
<%= f.label :price, "#{t('valuation.spending_proposals.edit.price', currency: t('valuation.spending_proposals.edit.currency'))}" %> <%= f.label :price, "#{t('valuation.spending_proposals.edit.price_html', currency: t('valuation.spending_proposals.edit.currency'))}" %>
<%= f.number_field :price, label: false, max: 1000000000000000 %> <%= f.number_field :price, label: false, max: 1000000000000000 %>
</div> </div>
<div class="small-12 medium-4 column end"> <div class="small-12 medium-4 column end">
<%= f.label :price_first_year, "#{t('valuation.spending_proposals.edit.price_first_year', currency: t('valuation.spending_proposals.edit.currency'))}" %> <%= f.label :price_first_year, "#{t('valuation.spending_proposals.edit.price_first_year_html', currency: t('valuation.spending_proposals.edit.currency'))}" %>
<%= f.number_field :price_first_year, label: false, max: 1000000000000000 %> <%= f.number_field :price_first_year, label: false, max: 1000000000000000 %>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="small-12 medium-8 column"> <div class="small-12 medium-8 column">
<%= f.label :price_explanation, t("valuation.spending_proposals.edit.price_explanation") %> <%= f.label :price_explanation, t("valuation.spending_proposals.edit.price_explanation_html") %>
<%= f.text_area :price_explanation, label: false, rows: 3 %> <%= f.text_area :price_explanation, label: false, rows: 3 %>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="small-12 medium-8 column"> <div class="small-12 medium-8 column">
<%= f.label :time_scope, t("valuation.spending_proposals.edit.time_scope") %> <%= f.label :time_scope, t("valuation.spending_proposals.edit.time_scope_html") %>
<%= f.text_field :time_scope, label: false %> <%= f.text_field :time_scope, label: false %>
</div> </div>
</div> </div>
@@ -68,7 +68,7 @@
<div class="row"> <div class="row">
<div class="small-12 medium-8 column"> <div class="small-12 medium-8 column">
<%= f.label :internal_comments, t("valuation.spending_proposals.edit.internal_comments") %> <%= f.label :internal_comments, t("valuation.spending_proposals.edit.internal_comments_html") %>
<%= f.text_area :internal_comments, label: false, rows: 3 %> <%= f.text_area :internal_comments, label: false, rows: 3 %>
</div> </div>
</div> </div>

View File

@@ -42,17 +42,17 @@ en:
assigned_valuators: Assigned valuators assigned_valuators: Assigned valuators
edit: edit:
dossier: Dossier dossier: Dossier
price: "Price (%{currency})" price_html: "Price (%{currency})"
price_first_year: "Cost during the first year (%{currency})" price_first_year_html: "Cost during the first year (%{currency})"
currency: "€" currency: "€"
price_explanation: Price explanation price_explanation_html: Price explanation
feasibility: Feasibility feasibility: Feasibility
feasible: Feasible feasible: Feasible
not_feasible: Not feasible not_feasible: Not feasible
feasible_explanation: Feasibility explanation feasible_explanation_html: Feasibility explanation
valuation_finished: Valuation finished valuation_finished: Valuation finished
time_scope: Time scope time_scope_html: Time scope
internal_comments: Internal comments internal_comments_html: Internal comments
save: Save changes save: Save changes
notice: notice:
valuate: "Dossier updated" valuate: "Dossier updated"

View File

@@ -42,17 +42,17 @@ es:
assigned_valuators: Evaluadores asignados assigned_valuators: Evaluadores asignados
edit: edit:
dossier: Informe dossier: Informe
price: "Coste (%{currency}) <small>(dato público)</small>" price_html: "Coste (%{currency}) <small>(dato público)</small>"
price_first_year: "Coste en el primer año (%{currency}) <small>(opcional, no público)</small>" price_first_year_html: "Coste en el primer año (%{currency}) <small>(opcional, privado)</small>"
currency: "€" currency: "€"
price_explanation: "Informe de coste <small>(opcional, dato público)</small>" price_explanation_html: "Informe de coste <small>(opcional, dato público)</small>"
feasibility: Viabilidad feasibility: Viabilidad
feasible: Viable feasible: Viable
not_feasible: No viable not_feasible: No viable
feasible_explanation: "Informe de inviabilidad <small>(en caso de que lo sea, dato público)</small>" feasible_explanation_html: "Informe de inviabilidad <small>(en caso de que lo sea, dato público)</small>"
valuation_finished: Informe finalizado valuation_finished: Informe finalizado
time_scope: "Plazo de ejecución <small>(opcional, dato no público)</small>" time_scope_html: "Plazo de ejecución <small>(opcional, dato no público)</small>"
internal_comments: "Comentarios y observaciones <small>(para responsables internos, dato no público)</small>" internal_comments_html: "Comentarios y observaciones <small>(para responsables internos, dato no público)</small>"
save: Guardar cambios save: Guardar cambios
notice: notice:
valuate: "Informe actualizado" valuate: "Informe actualizado"