[yast-devel] Re: [yast-commit] <web-client> master : app/controllers/system_controller.rb - i18n support
On 08/17/2009 03:20 PM, Ladislav Slezak wrote:
ref: refs/heads/master commit 802dfd6ed000459905a9c222f0fd34e8affc08b3 Author: Ladislav Slezak <lslezak@novell.com> Date: Mon Aug 17 15:08:09 2009 +0200
app/controllers/system_controller.rb - i18n support --- .../system/app/controllers/system_controller.rb | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/plugins/system/app/controllers/system_controller.rb b/plugins/system/app/controllers/system_controller.rb index dc4a01f..8336d58 100644 --- a/plugins/system/app/controllers/system_controller.rb +++ b/plugins/system/app/controllers/system_controller.rb @@ -2,6 +2,8 @@ class SystemController < ApplicationController before_filter :login_required
+ include GetText +
Hi, gettext is already included in Action Controller so you don't need include it. Only what should be usefull is initialize to own separated translation file via init_gettext _nameofmodule_ in class. (it is helper and couldn't go to initialize, see e.g. language or timezone module) -- Josef Reidinger YaST team maintainer of perl-Bootloader, YaST2-Repair, webyast modules language and time -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (1)
-
Josef Reidinger