Moved language_name method to lingua_franca

This commit is contained in:
Godwin 2016-08-12 23:19:14 -07:00
parent 30024d86b6
commit 070a292c2b

View File

@ -656,12 +656,6 @@ module ApplicationHelper
link_to "<span class=\"title\">#{title}</span>".html_safe, link, :class => classes
end
def language_name(locale, original_language = false)
args = {}
args[:locale] = locale if original_language
_("languages.#{locale}", args)
end
def date(date, format = :long)
I18n.l(date.is_a?(String) ? Date.parse(date) : date, :format => format)
end