Module: LatoBlog::ApplicationHelper

Defined in:
app/helpers/lato_blog/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#get_current_language_titleObject

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 cookies[:lato_blog__current_language]
  CONFIGS[:lato_blog][:languages].values.each do |language|
    return language[:title] if language[:identifier] === cookies[:lato_blog__current_language]
  end
end