From e61eba4e97a068cec55acf4f52a3c35253e401cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Salvador=20P=C3=A9rez=20Garc=C3=ADa?= Date: Mon, 17 Sep 2018 09:11:09 +0200 Subject: [PATCH] locale key containing html has been renamed locale key containing html has been renamed. Now it has the preffix: _html. --- app/views/proposals/created.html.erb | 12 ++++++------ config/locales/en/general.yml | 2 +- config/locales/es/general.yml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/proposals/created.html.erb b/app/views/proposals/created.html.erb index eaccb7d41..25351e0c8 100644 --- a/app/views/proposals/created.html.erb +++ b/app/views/proposals/created.html.erb @@ -1,20 +1,20 @@
-

<%= t('.title') %>

+

<%= t("proposals.created.title") %>

- <%= raw t('.motivation') %> + <%= raw t("proposals.created.motivation_html") %> - <%= link_to t('.dashboard'), proposal_dashboard_index_path(@proposal), class: 'button' if can?(:dashboard, @proposal) %> - <%= link_to t('.publish'), publish_proposal_path(@proposal), method: :patch, class: 'button' if can?(:publish, @proposal) %> + <%= link_to t("proposals.created.dashboard"), proposal_dashboard_index_path(@proposal), class: "button" if can?(:dashboard, @proposal) %> + <%= link_to t("proposals.created.publish"), publish_proposal_path(@proposal), method: :patch, class: "button" if can?(:publish, @proposal) %>
-

<%= t('.preview_title') %>

+

<%= t("proposals.created.preview_title") %>

-<%= render file: 'proposals/show.html.erb', locals: { preview: true } %> +<%= render file: "proposals/show.html.erb", locals: { preview: true } %> diff --git a/config/locales/en/general.yml b/config/locales/en/general.yml index 6eff2e122..3bbddb45e 100644 --- a/config/locales/en/general.yml +++ b/config/locales/en/general.yml @@ -329,7 +329,7 @@ en: submit_button: Create proposal created: title: Congratulations! You have taken the first step. - motivation: | + motivation_html: |

It is important to have at least 100 supports on the first day of the campaign to be able to boost your proposal. diff --git a/config/locales/es/general.yml b/config/locales/es/general.yml index c795903fb..62586e08c 100644 --- a/config/locales/es/general.yml +++ b/config/locales/es/general.yml @@ -329,7 +329,7 @@ es: submit_button: Crear propuesta created: title: ¡Enhorabuena! Has dado el primer paso. - motivation: | + motivation_html: |

Es importante contar al menos con 100 apoyos el primer día de campaña para poder impulsar tu propuesta.