Sha256: cf7f31180f0785fb950c649b12f26a83ecfde2fe1b13360e621601b20d135642

Contents?: true

Size: 411 Bytes

Versions: 6

Compression:

Stored size: 411 Bytes

Contents

module LatoBlog
  module ApplicationHelper

    # This function returns the title of the current language used by the system.
    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

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lato_blog-2.2.2 app/helpers/lato_blog/application_helper.rb
lato_blog-2.2.1 app/helpers/lato_blog/application_helper.rb
lato_blog-2.2.0 app/helpers/lato_blog/application_helper.rb
lato_blog-2.1.2 app/helpers/lato_blog/application_helper.rb
lato_blog-2.1.1 app/helpers/lato_blog/application_helper.rb
lato_blog-2.1 app/helpers/lato_blog/application_helper.rb