From 5ab8587ad22fa206c1956faa241762f80ebfc484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 21 Sep 2018 19:47:26 +0200 Subject: [PATCH] Use absolute translation paths Using `t(.empty_proposals)` IMHO is a bit dangerous because we'd need to change the locale files if we move the code to a partial or rename the file. --- app/views/legislation/processes/proposals.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/legislation/processes/proposals.html.erb b/app/views/legislation/processes/proposals.html.erb index 0f6159845..d78f9964c 100644 --- a/app/views/legislation/processes/proposals.html.erb +++ b/app/views/legislation/processes/proposals.html.erb @@ -11,7 +11,7 @@
<% if @proposals.empty? %>
-

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

+

<%= t("legislation.processes.proposals.empty_proposals") %>

<% else %> <%= render @proposals %>