diff --git a/app/views/admin/legislation/draft_versions/index.html.erb b/app/views/admin/legislation/draft_versions/index.html.erb
index 96070f27f..3abd526d1 100644
--- a/app/views/admin/legislation/draft_versions/index.html.erb
+++ b/app/views/admin/legislation/draft_versions/index.html.erb
@@ -38,7 +38,8 @@
<% if draft_version.status == "draft" %>
<%= Legislation::DraftVersion.human_attribute_name(:status_draft) %>
- <%= link_to "(#{t(".preview")})", legislation_process_draft_version_path(@process, draft_version) %>
+ <%= link_to "(#{t("admin.legislation.draft_versions.index.preview")})",
+ legislation_process_draft_version_path(@process, draft_version) %>
<% else %>
<%= Legislation::DraftVersion.human_attribute_name(:status_published) %>
<% end %>
diff --git a/app/views/legislation/annotations/_version_chooser.html.erb b/app/views/legislation/annotations/_version_chooser.html.erb
index 766aa0e50..4efb88861 100644
--- a/app/views/legislation/annotations/_version_chooser.html.erb
+++ b/app/views/legislation/annotations/_version_chooser.html.erb
@@ -1,6 +1,6 @@
- <%= t(".seeing_version") %>
+ <%= t("legislation.annotations.version_chooser.seeing_version") %>
<%= form_tag go_to_version_legislation_process_draft_versions_path(process), method: :get, id: "draft_version_go_to_version" do %>
<%= select_tag "draft_version_id", options_from_collection_for_select(process.draft_versions.published, "id", "display_title", draft_version.id), "aria-label": t("legislation.draft_versions.show.select_draft_version") %>
@@ -11,8 +11,9 @@
<%= t("legislation.draft_versions.show.updated_at", date: format_date(@draft_version.updated_at)) %>
- <%= link_to legislation_process_draft_version_path(process, draft_version), title: t(".see_text"), class: "button" do %>
- <%= t(".see_text") %>
+ <%= link_to legislation_process_draft_version_path(process, draft_version),
+ title: t("legislation.annotations.version_chooser.see_text"), class: "button" do %>
+ <%= t("legislation.annotations.version_chooser.see_text") %>
<% end %>
diff --git a/app/views/legislation/annotations/index.html.erb b/app/views/legislation/annotations/index.html.erb
index ac439a823..728da47c5 100644
--- a/app/views/legislation/annotations/index.html.erb
+++ b/app/views/legislation/annotations/index.html.erb
@@ -1,4 +1,6 @@
-<% provide :title do %><%= "#{t(".title")} - #{@draft_version.title} - #{@process.title}" %><% end %>
+<% provide :title do %>
+ <%= "#{t("legislation.annotations.index.title")} - #{@draft_version.title} - #{@process.title}" %>
+<% end %>
<%= render "legislation/processes/header", process: @process, header: :small %>
@@ -15,17 +17,21 @@
<% @annotations.each do |annotation| %>
<% end %>
diff --git a/app/views/legislation/annotations/show.html.erb b/app/views/legislation/annotations/show.html.erb
index d5297bc50..6b4cbd331 100644
--- a/app/views/legislation/annotations/show.html.erb
+++ b/app/views/legislation/annotations/show.html.erb
@@ -1,4 +1,6 @@
-<% provide :title do %><%= "#{t(".title")} - #{@draft_version.title} - #{@process.title}" %><% end %>
+<% provide :title do %>
+ <%= "#{t("legislation.annotations.show.title")} - #{@draft_version.title} - #{@process.title}" %>
+<% end %>
<%= render "legislation/processes/header", process: @process, header: :small %>
diff --git a/app/views/legislation/draft_versions/changes.html.erb b/app/views/legislation/draft_versions/changes.html.erb
index faf99524d..4197e9c31 100644
--- a/app/views/legislation/draft_versions/changes.html.erb
+++ b/app/views/legislation/draft_versions/changes.html.erb
@@ -1,4 +1,6 @@
-<% provide :title do %><%= "#{@draft_version.title} - #{t(".title")} - #{@process.title}" %><% end %>
+<% provide :title do %>
+ <%= "#{@draft_version.title} - #{t("legislation.draft_versions.changes.title")} - #{@process.title}" %>
+<% end %>
<%= render "legislation/processes/header", process: @process, header: :small %>
@@ -10,7 +12,7 @@
- <%= t(".seeing_changelog_version") %>
+ <%= t("legislation.draft_versions.changes.seeing_changelog_version") %>
<%= form_tag go_to_version_legislation_process_draft_versions_path(@process), method: :get, id: "draft_version_go_to_version" do %>
<%= select_tag "draft_version_id", options_from_collection_for_select(@draft_versions_list, "id", "display_title", @draft_version.id), "aria-label": t("legislation.draft_versions.show.select_draft_version") %>
@@ -21,8 +23,9 @@
<%= t("legislation.draft_versions.show.updated_at", date: format_date(@draft_version.updated_at)) %>
- <%= link_to legislation_process_draft_version_path(@process, @draft_version), title: t(".see_text"), class: "button" do %>
- <%= t(".see_text") %>
+ <%= link_to legislation_process_draft_version_path(@process, @draft_version),
+ title: t("legislation.draft_versions.changes.see_text"), class: "button" do %>
+ <%= t("legislation.draft_versions.changes.see_text") %>
<% end %>
diff --git a/app/views/legislation/draft_versions/show.html.erb b/app/views/legislation/draft_versions/show.html.erb
index 3429c3e03..07814058a 100644
--- a/app/views/legislation/draft_versions/show.html.erb
+++ b/app/views/legislation/draft_versions/show.html.erb
@@ -10,23 +10,30 @@
- <%= t(".seeing_version") %>
+ <%= t("legislation.draft_versions.show.seeing_version") %>
<%= form_tag go_to_version_legislation_process_draft_versions_path(@process), method: :get, id: "draft_version_go_to_version" do %>
- <%= select_tag "draft_version_id", options_from_collection_for_select(@draft_versions_list, "id", "display_title", @draft_version.id), "aria-label": t(".select_draft_version") %>
- <%= submit_tag t(".select_version_submit"), class: "button" %>
+ <%= select_tag "draft_version_id", options_from_collection_for_select(@draft_versions_list, "id", "display_title", @draft_version.id), "aria-label": t("legislation.draft_versions.show.select_draft_version") %>
+ <%= submit_tag t("legislation.draft_versions.show.select_version_submit"), class: "button" %>
<% end %>
<% if @draft_version.changelog.present? %>
- <%= link_to t(".see_changes"), legislation_process_draft_version_changes_path(@process, @draft_version), class: "see-changes" %>
+
+ <%= link_to t("legislation.draft_versions.show.see_changes"),
+ legislation_process_draft_version_changes_path(@process, @draft_version),
+ class: "see-changes" %>
+
<% end %>
- <%= t(".updated_at", date: format_date(@draft_version.updated_at)) %>
+ <%= t("legislation.draft_versions.show.updated_at",
+ date: format_date(@draft_version.updated_at)) %>
<% unless @draft_version.final_version? %>
- <%= link_to legislation_process_draft_version_annotations_path(@process, @draft_version), title: t(".see_comments"), class: "button expanded" do %>
- <%= t(".see_comments") %>
+ <%= link_to legislation_process_draft_version_annotations_path(@process, @draft_version),
+ title: t("legislation.draft_versions.show.see_comments"),
+ class: "button expanded" do %>
+ <%= t("legislation.draft_versions.show.see_comments") %>
<% end %>
<% end %>
@@ -39,12 +46,13 @@
">
- <%= t(".text_toc") %>
+
+ <%= t("legislation.draft_versions.show.text_toc") %>
- <%= t(".text_toc") %>
+ <%= t("legislation.draft_versions.show.text_toc") %>
@@ -55,7 +63,7 @@
- <%= t(".text_body") %>
+ <%= t("legislation.draft_versions.show.text_body") %>
<% if @draft_version.final_version? %>
diff --git a/app/views/legislation/processes/_process.html.erb b/app/views/legislation/processes/_process.html.erb
index 02954030f..906f0cbbc 100644
--- a/app/views/legislation/processes/_process.html.erb
+++ b/app/views/legislation/processes/_process.html.erb
@@ -7,8 +7,10 @@
- <%= link_to process, class: "button hollow big expanded", title: t(".see_latest_comments_title") do %>
- <%= t(".see_latest_comments") %>
+ <%= link_to process, class: "button hollow big expanded",
+ title: t("legislation.processes.process.see_latest_comments_title") do %>
+
+ <%= t("legislation.processes.process.see_latest_comments") %>
<% end %>
diff --git a/app/views/legislation/processes/index.html.erb b/app/views/legislation/processes/index.html.erb
index 72a54aa69..7e976f306 100644
--- a/app/views/legislation/processes/index.html.erb
+++ b/app/views/legislation/processes/index.html.erb
@@ -15,7 +15,7 @@
<%= paginate @processes %>
<% else %>
- <%= t(".no_#{@current_filter}_processes") %>
+ <%= t("legislation.processes.index.no_#{@current_filter}_processes") %>
<% end %>
diff --git a/app/views/legislation/processes/phase_empty.html.erb b/app/views/legislation/processes/phase_empty.html.erb
index 873f3d7e4..719410373 100644
--- a/app/views/legislation/processes/phase_empty.html.erb
+++ b/app/views/legislation/processes/phase_empty.html.erb
@@ -10,7 +10,7 @@
- <%= t(".empty") %>
+ <%= t("legislation.processes.phase_empty.empty") %>
diff --git a/app/views/legislation/processes/phase_not_open.html.erb b/app/views/legislation/processes/phase_not_open.html.erb
index 7b83020b3..399b3929b 100644
--- a/app/views/legislation/processes/phase_not_open.html.erb
+++ b/app/views/legislation/processes/phase_not_open.html.erb
@@ -10,7 +10,7 @@
- <%= t(".not_open") %>
+ <%= t("legislation.processes.phase_not_open.not_open") %>
diff --git a/app/views/legislation/questions/_question.html.erb b/app/views/legislation/questions/_question.html.erb
index 8e1f995d0..8ba65f15e 100644
--- a/app/views/legislation/questions/_question.html.erb
+++ b/app/views/legislation/questions/_question.html.erb
@@ -1,11 +1,14 @@
- <%= t(".debate") %>
+ <%= t("legislation.questions.question.debate") %>
<%= link_to question.title, legislation_process_question_path(question.process, question) %>
- · <%= format_date question.created_at %>
+ · <%= format_date question.created_at %>
diff --git a/app/views/legislation/questions/show.html.erb b/app/views/legislation/questions/show.html.erb
index dec291438..c87cfce25 100644
--- a/app/views/legislation/questions/show.html.erb
+++ b/app/views/legislation/questions/show.html.erb
@@ -4,7 +4,7 @@
diff --git a/config/locales/en/legislation.yml b/config/locales/en/legislation.yml
index 943544234..967f6d1d9 100644
--- a/config/locales/en/legislation.yml
+++ b/config/locales/en/legislation.yml
@@ -72,7 +72,7 @@ en:
phase_not_open:
not_open: This phase is not open yet
phase_empty:
- empty: Nothing published yet
+ empty: Nothing published yet
process:
see_latest_comments: See latest comments
see_latest_comments_title: Comment on this process
|