Mailinglist Archive: yast-devel (246 mails)

< Previous Next >
[yast-devel] Re: [yast-commit] <web-client> master : app/controllers/system_controller.rb - i18n support
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Mon, 17 Aug 2009 15:27:47 +0200
  • Message-id: <4A895AD3.9040403@xxxxxxx>
On 08/17/2009 03:20 PM, Ladislav Slezak wrote:
ref: refs/heads/master
commit 802dfd6ed000459905a9c222f0fd34e8affc08b3
Author: Ladislav Slezak <lslezak@xxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages