Arthur Clément
2010-Jul-05 08:48 UTC
[Ovirt-devel] [PATCH] gettext initiation problem Thanks to Thibault Deloffre <tdeloffre@linagora.com>
From: root <root at ovirt.admin.virt.par.lng> Signed-off-by: root <root at ovirt.admin.virt.par.lng> --- src/app/controllers/application_controller.rb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/app/controllers/application_controller.rb b/src/app/controllers/application_controller.rb index 4c4666e..c7f8431 100644 --- a/src/app/controllers/application_controller.rb +++ b/src/app/controllers/application_controller.rb @@ -20,12 +20,13 @@ # Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. +require 'gettext_rails' class ApplicationController < ActionController::Base # FIXME: once all controller classes include this, remove here include ApplicationService -# init_gettext "ovirt" + init_gettext "ovirt" layout :choose_layout before_filter :is_logged_in, :get_help_section -- 1.7.0.1
Arthur Clément
2010-Jul-05 08:51 UTC
[Ovirt-devel] [PATCH] gettext initiation problem Thanks to Thibault Deloffre <tdeloffre@linagora.com>
From: root <aclement at linagora.com> Signed-off-by: Arthur Cl??ment <aclement at linagora.com> --- src/app/controllers/application_controller.rb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/app/controllers/application_controller.rb b/src/app/controllers/application_controller.rb index 4c4666e..c7f8431 100644 --- a/src/app/controllers/application_controller.rb +++ b/src/app/controllers/application_controller.rb @@ -20,12 +20,13 @@ # Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. +require 'gettext_rails' class ApplicationController < ActionController::Base # FIXME: once all controller classes include this, remove here include ApplicationService -# init_gettext "ovirt" + init_gettext "ovirt" layout :choose_layout before_filter :is_logged_in, :get_help_section -- 1.7.0.1