Merge pull request #4076 from consul/legislation_keys
Use complete keys on legislation translations
This commit is contained in:
@@ -38,7 +38,8 @@
|
|||||||
<td>
|
<td>
|
||||||
<% if draft_version.status == "draft" %>
|
<% if draft_version.status == "draft" %>
|
||||||
<%= Legislation::DraftVersion.human_attribute_name(: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 %>
|
<% else %>
|
||||||
<%= Legislation::DraftVersion.human_attribute_name(:status_published) %>
|
<%= Legislation::DraftVersion.human_attribute_name(:status_published) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div class="row draft-chooser">
|
<div class="row draft-chooser">
|
||||||
<div class="small-12 medium-9 column">
|
<div class="small-12 medium-9 column">
|
||||||
<h3><%= t(".seeing_version") %></h3>
|
<h3><%= t("legislation.annotations.version_chooser.seeing_version") %></h3>
|
||||||
<div class="select-box">
|
<div class="select-box">
|
||||||
<%= form_tag go_to_version_legislation_process_draft_versions_path(process), method: :get, id: "draft_version_go_to_version" do %>
|
<%= 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") %>
|
<%= 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 @@
|
|||||||
<span><%= t("legislation.draft_versions.show.updated_at", date: format_date(@draft_version.updated_at)) %></span>
|
<span><%= t("legislation.draft_versions.show.updated_at", date: format_date(@draft_version.updated_at)) %></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="small-12 medium-3 column">
|
<div class="small-12 medium-3 column">
|
||||||
<%= link_to legislation_process_draft_version_path(process, draft_version), title: t(".see_text"), class: "button" do %>
|
<%= link_to legislation_process_draft_version_path(process, draft_version),
|
||||||
<%= t(".see_text") %>
|
title: t("legislation.annotations.version_chooser.see_text"), class: "button" do %>
|
||||||
|
<%= t("legislation.annotations.version_chooser.see_text") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -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 %>
|
<%= render "legislation/processes/header", process: @process, header: :small %>
|
||||||
|
|
||||||
@@ -15,17 +17,21 @@
|
|||||||
|
|
||||||
<% @annotations.each do |annotation| %>
|
<% @annotations.each do |annotation| %>
|
||||||
<div class="comment">
|
<div class="comment">
|
||||||
<strong><%= t(".comments_about") %></strong>
|
<strong><%= t("legislation.annotations.index.comments_about") %></strong>
|
||||||
<span class="float-right">
|
<span class="float-right">
|
||||||
<%= link_to legislation_process_draft_version_path(@process, @draft_version, anchor: "annotation-id-#{annotation.id}") do %>
|
<%= link_to legislation_process_draft_version_path(@process, @draft_version, anchor: "annotation-id-#{annotation.id}") do %>
|
||||||
<span><%= t(".see_in_context") %></span> <span class="icon-expand" aria-hidden="true"></span>
|
<span><%= t("legislation.annotations.index.see_in_context") %></span>
|
||||||
|
<span class="icon-expand" aria-hidden="true"></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
<div class="comment-section">
|
<div class="comment-section">
|
||||||
<%= sanitize(annotation.context).presence || annotation.quote %>
|
<%= sanitize(annotation.context).presence || annotation.quote %>
|
||||||
</div>
|
</div>
|
||||||
<%= link_to legislation_process_draft_version_annotation_path(@process, @draft_version, annotation) do %>
|
<%= link_to legislation_process_draft_version_annotation_path(@process, @draft_version, annotation) do %>
|
||||||
<span class="icon-comments" aria-hidden="true"></span> <span><%= t(".comments_count", count: annotation.comments_count) %></span></a>
|
<span class="icon-comments" aria-hidden="true"></span>
|
||||||
|
<span>
|
||||||
|
<%= t("legislation.annotations.index.comments_count", count: annotation.comments_count) %>
|
||||||
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -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 %>
|
<%= render "legislation/processes/header", process: @process, header: :small %>
|
||||||
|
|
||||||
|
|||||||
@@ -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 %>
|
<%= render "legislation/processes/header", process: @process, header: :small %>
|
||||||
|
|
||||||
@@ -10,7 +12,7 @@
|
|||||||
<div class="draft-panels small-12 column row">
|
<div class="draft-panels small-12 column row">
|
||||||
<div class="row draft-chooser">
|
<div class="row draft-chooser">
|
||||||
<div class="small-12 medium-9 column">
|
<div class="small-12 medium-9 column">
|
||||||
<h3><%= t(".seeing_changelog_version") %></h3>
|
<h3><%= t("legislation.draft_versions.changes.seeing_changelog_version") %></h3>
|
||||||
<div class="select-box">
|
<div class="select-box">
|
||||||
<%= form_tag go_to_version_legislation_process_draft_versions_path(@process), method: :get, id: "draft_version_go_to_version" do %>
|
<%= 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") %>
|
<%= 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 @@
|
|||||||
<span><%= t("legislation.draft_versions.show.updated_at", date: format_date(@draft_version.updated_at)) %></span>
|
<span><%= t("legislation.draft_versions.show.updated_at", date: format_date(@draft_version.updated_at)) %></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="small-12 medium-3 column">
|
<div class="small-12 medium-3 column">
|
||||||
<%= link_to legislation_process_draft_version_path(@process, @draft_version), title: t(".see_text"), class: "button" do %>
|
<%= link_to legislation_process_draft_version_path(@process, @draft_version),
|
||||||
<strong><%= t(".see_text") %></strong>
|
title: t("legislation.draft_versions.changes.see_text"), class: "button" do %>
|
||||||
|
<strong><%= t("legislation.draft_versions.changes.see_text") %></strong>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,23 +10,30 @@
|
|||||||
<div class="draft-panels small-12 column row">
|
<div class="draft-panels small-12 column row">
|
||||||
<div class="row draft-chooser">
|
<div class="row draft-chooser">
|
||||||
<div class="small-12 medium-9 column">
|
<div class="small-12 medium-9 column">
|
||||||
<h3><%= t(".seeing_version") %></h3>
|
<h3><%= t("legislation.draft_versions.show.seeing_version") %></h3>
|
||||||
<div class="select-box">
|
<div class="select-box">
|
||||||
<%= form_tag go_to_version_legislation_process_draft_versions_path(@process), method: :get, id: "draft_version_go_to_version" do %>
|
<%= 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") %>
|
<%= 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(".select_version_submit"), class: "button" %>
|
<%= submit_tag t("legislation.draft_versions.show.select_version_submit"), class: "button" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @draft_version.changelog.present? %>
|
<% if @draft_version.changelog.present? %>
|
||||||
<span><%= link_to t(".see_changes"), legislation_process_draft_version_changes_path(@process, @draft_version), class: "see-changes" %></span>
|
<span>
|
||||||
|
<%= link_to t("legislation.draft_versions.show.see_changes"),
|
||||||
|
legislation_process_draft_version_changes_path(@process, @draft_version),
|
||||||
|
class: "see-changes" %>
|
||||||
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<span><%= t(".updated_at", date: format_date(@draft_version.updated_at)) %></span>
|
<span><%= t("legislation.draft_versions.show.updated_at",
|
||||||
|
date: format_date(@draft_version.updated_at)) %></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% unless @draft_version.final_version? %>
|
<% unless @draft_version.final_version? %>
|
||||||
<div class="small-12 medium-3 column">
|
<div class="small-12 medium-3 column">
|
||||||
<%= link_to legislation_process_draft_version_annotations_path(@process, @draft_version), title: t(".see_comments"), class: "button expanded" do %>
|
<%= link_to legislation_process_draft_version_annotations_path(@process, @draft_version),
|
||||||
<strong><%= t(".see_comments") %></strong>
|
title: t("legislation.draft_versions.show.see_comments"),
|
||||||
|
class: "button expanded" do %>
|
||||||
|
<strong><%= t("legislation.draft_versions.show.see_comments") %></strong>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -39,12 +46,13 @@
|
|||||||
<div class="small-12 calc-index column <%= "js-toggle-allegations" unless @draft_version.final_version? %>">
|
<div class="small-12 calc-index column <%= "js-toggle-allegations" unless @draft_version.final_version? %>">
|
||||||
<div class="draft-panel">
|
<div class="draft-panel">
|
||||||
<div>
|
<div>
|
||||||
<span class="icon-banner" aria-hidden="true"></span> <span class="panel-title"><%= t(".text_toc") %></span>
|
<span class="icon-banner" aria-hidden="true"></span>
|
||||||
|
<span class="panel-title"><%= t("legislation.draft_versions.show.text_toc") %></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="draft-index-rotated text-center">
|
<div class="draft-index-rotated text-center">
|
||||||
<span class="panel-title"><%= t(".text_toc") %></span>
|
<span class="panel-title"><%= t("legislation.draft_versions.show.text_toc") %></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div data-sticky-container>
|
<div data-sticky-container>
|
||||||
@@ -55,7 +63,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="small-12 calc-text column border-right border-left">
|
<div class="small-12 calc-text column border-right border-left">
|
||||||
<div class="draft-panel">
|
<div class="draft-panel">
|
||||||
<div><span class="panel-title"><%= t(".text_body") %></span></div>
|
<div><span class="panel-title"><%= t("legislation.draft_versions.show.text_body") %></span></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="sticky-panel" class="draft-text">
|
<div id="sticky-panel" class="draft-text">
|
||||||
<% if @draft_version.final_version? %>
|
<% if @draft_version.final_version? %>
|
||||||
|
|||||||
@@ -7,8 +7,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="small-12 medium-4 column">
|
<div class="small-12 medium-4 column">
|
||||||
<%= link_to process, class: "button hollow big expanded", title: t(".see_latest_comments_title") do %>
|
<%= link_to process, class: "button hollow big expanded",
|
||||||
<span class="icon-comments"></span> <%= t(".see_latest_comments") %>
|
title: t("legislation.processes.process.see_latest_comments_title") do %>
|
||||||
|
<span class="icon-comments"></span>
|
||||||
|
<%= t("legislation.processes.process.see_latest_comments") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<%= paginate @processes %>
|
<%= paginate @processes %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="callout primary margin-top">
|
<div class="callout primary margin-top">
|
||||||
<%= t(".no_#{@current_filter}_processes") %>
|
<%= t("legislation.processes.index.no_#{@current_filter}_processes") %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 column">
|
<div class="small-12 column">
|
||||||
<div class="callout primary">
|
<div class="callout primary">
|
||||||
<p><%= t(".empty") %></p>
|
<p><%= t("legislation.processes.phase_empty.empty") %></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 column">
|
<div class="small-12 column">
|
||||||
<div class="callout primary">
|
<div class="callout primary">
|
||||||
<p><%= t(".not_open") %></p>
|
<p><%= t("legislation.processes.phase_not_open.not_open") %></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
<div class="debate-block">
|
<div class="debate-block">
|
||||||
<div class="debate-type">
|
<div class="debate-type">
|
||||||
<%= t(".debate") %> <span class="icon-debates" aria-hidden="true"></span>
|
<%= t("legislation.questions.question.debate") %> <span class="icon-debates" aria-hidden="true"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="debate-title">
|
<div class="debate-title">
|
||||||
<h4><%= link_to question.title, legislation_process_question_path(question.process, question) %></h4>
|
<h4><%= link_to question.title, legislation_process_question_path(question.process, question) %></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="debate-meta">
|
<div class="debate-meta">
|
||||||
<span class="icon-comments" aria-hidden="true"></span> <span class="debate-comments"><%= link_to t(".comments", count: question.comments.count), legislation_process_question_path(question.process, question) %></span> · <span class="debate-date"><%= format_date question.created_at %></span>
|
<span class="icon-comments" aria-hidden="true"></span> <span class="debate-comments">
|
||||||
|
<%= link_to t("legislation.questions.question.comments", count: question.comments.count),
|
||||||
|
legislation_process_question_path(question.process, question) %>
|
||||||
|
</span> · <span class="debate-date"><%= format_date question.created_at %></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<div class="quiz-header row small-collapse">
|
<div class="quiz-header row small-collapse">
|
||||||
<div class="small-12 medium-9 column">
|
<div class="small-12 medium-9 column">
|
||||||
<div class="quiz-title">
|
<div class="quiz-title">
|
||||||
<p class="quiz-header-title"><%= t(".title") %></p>
|
<p class="quiz-header-title"><%= t("legislation.questions.show.title") %></p>
|
||||||
<h4><%= link_to @process.title, @process %></h4>
|
<h4><%= link_to @process.title, @process %></h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -12,14 +12,14 @@
|
|||||||
<% if @question.next_question_id %>
|
<% if @question.next_question_id %>
|
||||||
<%= link_to legislation_process_question_path(@process, @question.next_question_id), class: "quiz-next-link" do %>
|
<%= link_to legislation_process_question_path(@process, @question.next_question_id), class: "quiz-next-link" do %>
|
||||||
<div class="quiz-next">
|
<div class="quiz-next">
|
||||||
<%= t(".next_question") %>
|
<%= t("legislation.questions.show.next_question") %>
|
||||||
<span class="icon-angle-right" aria-hidden="true">
|
<span class="icon-angle-right" aria-hidden="true">
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% elsif @question.first_question_id %>
|
<% elsif @question.first_question_id %>
|
||||||
<%= link_to legislation_process_question_path(@process, @question.first_question_id), class: "quiz-next-link" do %>
|
<%= link_to legislation_process_question_path(@process, @question.first_question_id), class: "quiz-next-link" do %>
|
||||||
<div class="quiz-next">
|
<div class="quiz-next">
|
||||||
<%= t(".first_question") %>
|
<%= t("legislation.questions.show.first_question") %>
|
||||||
<span class="icon-angle-right" aria-hidden="true">
|
<span class="icon-angle-right" aria-hidden="true">
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
<aside class="small-12 medium-3 column">
|
<aside class="small-12 medium-3 column">
|
||||||
<div id="social-share" class="sidebar-divider"></div>
|
<div id="social-share" class="sidebar-divider"></div>
|
||||||
<h3><%= t(".share") %></h3>
|
<h3><%= t("legislation.questions.show.share") %></h3>
|
||||||
<%= render "/shared/social_share", title: @question.title, url: legislation_process_question_url(@question.process, @question) %>
|
<%= render "/shared/social_share", title: @question.title, url: legislation_process_question_url(@question.process, @question) %>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ en:
|
|||||||
phase_not_open:
|
phase_not_open:
|
||||||
not_open: This phase is not open yet
|
not_open: This phase is not open yet
|
||||||
phase_empty:
|
phase_empty:
|
||||||
empty: Nothing published yet
|
empty: Nothing published yet
|
||||||
process:
|
process:
|
||||||
see_latest_comments: See latest comments
|
see_latest_comments: See latest comments
|
||||||
see_latest_comments_title: Comment on this process
|
see_latest_comments_title: Comment on this process
|
||||||
|
|||||||
Reference in New Issue
Block a user