From 755ddab2cb434f170446023c0a2abfc637afc6f6 Mon Sep 17 00:00:00 2001 From: Fernando Blat Date: Thu, 12 Jan 2017 19:36:24 +0100 Subject: [PATCH] Amend translations --- app/views/legislation/annotations/_form.html.erb | 11 ++--------- config/locales/activerecord.en.yml | 6 ++++-- config/locales/activerecord.es.yml | 6 ++++-- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/app/views/legislation/annotations/_form.html.erb b/app/views/legislation/annotations/_form.html.erb index 81605e648..5662cafe2 100644 --- a/app/views/legislation/annotations/_form.html.erb +++ b/app/views/legislation/annotations/_form.html.erb @@ -8,24 +8,17 @@
- <%= form_for [@process, @draft_version, Annotation.new], url: legislation_process_draft_version_annotations_path(@process, @draft_version), remote: true do |f| %> + <%= form_for Legislation::Annotation.new, url: legislation_process_draft_version_annotations_path(@process, @draft_version), remote: true do |f| %> <%= f.text_area :text, autofocus: true %>
- <%= t('legislation.annotations.comments.cancel') %> + <%= t('legislation.annotations.comments.cancel') %> <%= f.submit t('legislation.annotations.comments.publish_comment'), class: 'button strong publish-comment' %> - <% if false %> - <%= t('legislation.annotations.comments.publish_comment') %> - <% end %>
<%= f.hidden_field :quote %> <%= f.hidden_field :ranges %> <% end %>
- -
diff --git a/config/locales/activerecord.en.yml b/config/locales/activerecord.en.yml index e873abc26..51ee2190b 100644 --- a/config/locales/activerecord.en.yml +++ b/config/locales/activerecord.en.yml @@ -139,10 +139,12 @@ en: status: Status final_version: Final version legislation/question: - title: "Title" + title: Title question_options: Options legislation/question_option: - value: "Value" + value: Value + legislation/annotation: + text: Comment errors: models: user: diff --git a/config/locales/activerecord.es.yml b/config/locales/activerecord.es.yml index e8f2a42eb..aa7e05875 100644 --- a/config/locales/activerecord.es.yml +++ b/config/locales/activerecord.es.yml @@ -134,10 +134,12 @@ es: status: Estado final_version: Versión final legislation/question: - title: "Título" + title: Título question_options: Respuestas legislation/question_option: - value: "Valor" + value: Valor + legislation/annotation: + text: Comentario errors: models: user: