app/controllers/anoubis/application_controller.rb
##
# Procedure fires before any action and setup default variables.
Procedure fires before any action and setup default variables.
Procedure fires before any action and setup default variables .
def pba_anoubis_application
    self.locale = params[:locale] if params.has_key? :locale
    self.locale = default_locale unless self.locale
    self.locale = default_locale if self.locale == ''
    begin
      I18n.locale = locale
    rescue
      I18n.locale = default_locale
    end
    after_anoubis_initialization
  end
def pba_anoubis_application self . locale = params [ :locale ] if params . has_key? :locale self . locale = default_locale unless self . locale self . locale = default_locale if self . locale == '' begin I18n . locale = locale rescue I18n . locale = default_locale end after_anoubis_initialization end
Procedure fires before any action and setup default variables.
Procedure fires before any action and setup default variables .