aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/public_body.rb2
-rw-r--r--app/views/public_body/show.rhtml4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index 3071a38c5..51d6ea914 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -177,7 +177,7 @@ class PublicBody < ActiveRecord::Base
end
def name=(name)
globalize.write(self.class.locale || I18n.locale, :name, name)
- self[:name] = short_name
+ self[:name] = name
globalize.save_translations!
self.update_url_name
end
diff --git a/app/views/public_body/show.rhtml b/app/views/public_body/show.rhtml
index f93518b7a..8b56d68c0 100644
--- a/app/views/public_body/show.rhtml
+++ b/app/views/public_body/show.rhtml
@@ -78,7 +78,7 @@
<% if @public_body.eir_only? %>
<%=pluralize(@public_body.info_requests.size, "Environmental Information Regulations request") %> made using this site
<% else %>
- <%= n_('Freedom of Information request', 'Freedom if Information requests', @public_body.info_requests.size) %> made using this site
+ <%= n_('%d Freedom of Information request', '%d Freedom of Information requests', @public_body.info_requests.size) % @public_body.info_requests.size %> made using this site
<% end %>
<%= @page_desc %>
</h2>
@@ -89,7 +89,7 @@
<%= will_paginate WillPaginate::Collection.new(@page, @per_page, @public_body.info_requests.size) %>
- <p> <%= _('Only requests made using {{site_name}} are shown.', site_name => @site_name) %></p>
+ <p> <%= _('Only requests made using {{site_name}} are shown.', :site_name => site_name) %></p>
<% end %>
<% else %>