Sha256: 3f3f8f93fc650df01fafd1ed0c834202a2d75408aa104e05be0ca1fbe78f742c

Contents?: true

Size: 246 Bytes

Versions: 60

Compression:

Stored size: 246 Bytes

Contents

class ActionController::Base
  def set_gettext_locale
    requested_locale = params[:locale] || session[:locale] || cookies[:locale] ||  request.env['HTTP_ACCEPT_LANGUAGE']
    session[:locale] = FastGettext.set_locale(requested_locale)
  end
end

Version data entries

60 entries across 60 versions & 2 rubygems

Version Path
zena-1.2.8 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.2.7 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.2.6 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.2.5 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.2.4 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.2.3 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.2.2 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.2.1 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.2.0 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.1.3 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.1.2 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.1.1 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.1.0 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
zena-1.0.0 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
gettext_i18n_rails-0.2.20 lib/gettext_i18n_rails/action_controller.rb
zena-1.0.0.rc3 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb
gettext_i18n_rails-0.2.19 lib/gettext_i18n_rails/action_controller.rb
gettext_i18n_rails-0.2.18 lib/gettext_i18n_rails/action_controller.rb
gettext_i18n_rails-0.2.17 lib/gettext_i18n_rails/action_controller.rb
zena-1.0.0.rc2 vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb