On 08/17/2009 03:20 PM, Ladislav Slezak wrote:
> ref: refs/heads/master
> commit 802dfd6ed000459905a9c222f0fd34e8affc08b3
> Author: Ladislav Slezak <[email protected]>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to