Browse Source

Moved language_name method to lingua_franca

development
Godwin 8 years ago
parent
commit
070a292c2b
  1. 6
      app/helpers/application_helper.rb

6
app/helpers/application_helper.rb

@ -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…
Cancel
Save