diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-07 12:24:48 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-07 12:24:48 +0100 |
commit | 5620a883d818f7130e7e15bcfcb86854d3fc8005 (patch) | |
tree | 80de9cbaf1ab7fc37545d7c6083940b3163756ff /app/helpers/link_to_helper.rb | |
parent | d0dcb5678e4807e558c1dbc8847d9e152422f3e9 (diff) |
get language names from a comprehensive list, rather than just hard-code a handful
Diffstat (limited to 'app/helpers/link_to_helper.rb')
-rwxr-xr-x | app/helpers/link_to_helper.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/helpers/link_to_helper.rb b/app/helpers/link_to_helper.rb index 12f19a312..935912a61 100755 --- a/app/helpers/link_to_helper.rb +++ b/app/helpers/link_to_helper.rb @@ -203,12 +203,6 @@ module LinkToHelper params['locale'] = locale return url_for(params) end - - def locale_name(locale) - return "English" if locale == "en" - return "Srpski" if locale == "sr" - return "Shqip" if locale == "sq" - return locale - end + end |