diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-03-17 17:47:33 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-03-24 13:07:52 +0000 |
commit | 7f26590666aea4a5b5bd609b97d29939dd842cc6 (patch) | |
tree | 35539c666d67e7d9ec4f220f573e89492fa72e3b | |
parent | 029717986c93683942b7716e227c0cce30165b81 (diff) |
Make public body update titles translatable.
This way the translators can control the order of elements in the
sentence.
-rw-r--r-- | app/models/track_thing.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/models/track_thing.rb b/app/models/track_thing.rb index 8fe79a9e0..13b6f78dd 100644 --- a/app/models/track_thing.rb +++ b/app/models/track_thing.rb @@ -222,8 +222,12 @@ class TrackThing < ActiveRecord::Base :verb_on_page_already => _("You are already following requests to {{public_body_name}}", :public_body_name => self.public_body.name), # Email - :title_in_email => self.public_body.law_only_short + " requests to '" + self.public_body.name + "'", - :title_in_rss => self.public_body.law_only_short + " requests to '" + self.public_body.name + "'", + :title_in_email => _("{{foi_law}} requests to '{{public_body_name}}'", + :foi_law => self.public_body.law_only_short, + :public_body_name => self.public_body.name), + :title_in_rss => _("{{foi_law}} requests to '{{public_body_name}}'", + :foi_law => self.public_body.law_only_short, + :public_body_name => self.public_body.name), # Authentication :web => _("To follow requests made using {{site_name}} to the public authority '{{public_body_name}}'", :site_name => AlaveteliConfiguration::site_name, |