Class: TranslationCenter::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/translation_center/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#translation_langs_filtersObject

defaults



19
20
21
22
23
24
# File 'app/controllers/translation_center/application_controller.rb', line 19

def translation_langs_filters
  session[:current_filter] ||= 'untranslated'
  session[:lang_from] = :pt
  session[:lang_to] = app_params[:lang_to] || session[:lang_to] || :en
  I18n.locale = session[:lang_from] || I18n.default_locale
end