Class: TranslationCenter::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- TranslationCenter::ApplicationController
- Defined in:
- app/controllers/translation_center/application_controller.rb
Direct Known Subclasses
CategoriesController, CenterController, TranslationKeysController, TranslationsController
Instance Method Summary collapse
-
#translation_langs_filters ⇒ Object
defaults.
Instance Method Details
#translation_langs_filters ⇒ Object
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 |