Moved language_name method to lingua_franca
This commit is contained in:
parent
30024d86b6
commit
070a292c2b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user