Module: LatoBlog::ApplicationHelper
- Defined in:
- app/helpers/lato_blog/application_helper.rb
Instance Method Summary collapse
-
#get_current_language_title ⇒ Object
This function returns the title of the current language used by the system.
Instance Method Details
#get_current_language_title ⇒ Object
This function returns the title of the current language used by the system.
5 6 7 8 9 10 |
# File 'app/helpers/lato_blog/application_helper.rb', line 5 def get_current_language_title return unless [:lato_blog__current_language] CONFIGS[:lato_blog][:languages].values.each do |language| return language[:title] if language[:identifier] === [:lato_blog__current_language] end end |