diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-12 11:49:58 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-12 11:49:58 +0100 |
commit | b514aecf08384f3839db5cdb2274d3748a4402a2 (patch) | |
tree | 5354df8cce23f043bc4cbfac0cdcfc24989550a4 /app/helpers/application_helper.rb | |
parent | 0d630ab2c87d925d27879c1cc0db55b0286e46d6 (diff) | |
parent | d5ae493074fa3b71ba517ce34525402f5e59eff0 (diff) |
merge IZ/Kosovo fork and refactor
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index e46404a72..9bdcb98cd 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -6,6 +6,7 @@ # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # # $Id: application_helper.rb,v 1.22 2008-07-09 07:24:50 francis Exp $ +require 'languages' module ApplicationHelper # URL generating functions are needed by all controllers (for redirects), @@ -66,6 +67,10 @@ module ApplicationHelper t = highlight_words(t, words, html) return t end + + def locale_name(locale) + return LanguageNames::get_language_name(locale) + end # Use our own algorithm for finding path of cache def foi_cache(name = {}, options = nil, &block) |