Mailinglist Archive: yast-commit (1914 mails)

< Previous Next >
[yast-commit] <web-client> basesystem : added logs
  • From: Stefan Schubert <schubi@xxxxxxx>
  • Date: Fri, 4 Sep 2009 08:53:24 +0200
  • Message-id: <E1Mlexn-0003tN-T9@xxxxxxxxxxxxxxxx>
ref: refs/heads/basesystem
commit ca9ecfcb95fc83eb24d8602132d39f4ad5e52ac2
Author: Stefan Schubert <schubi@xxxxxxx>
Date: Fri Sep 4 08:53:24 2009 +0200

added logs
---
.../app/controllers/application_controller.rb | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/webclient/app/controllers/application_controller.rb
b/webclient/app/controllers/application_controller.rb
index 23cb47b..be2b909 100644
--- a/webclient/app/controllers/application_controller.rb
+++ b/webclient/app/controllers/application_controller.rb
@@ -64,6 +64,7 @@ class ApplicationController < ActionController::Base
end

def self.init_gettext(domainname, options = {})
+ logger.info "Loading textdomain: #{domainname}"
locale_path = options[:locale_path]
unless locale_path
#If path of the translation has not been set we are trying to load
@@ -71,6 +72,7 @@ class ApplicationController < ActionController::Base
if Dir.glob(File.join("**", "public", "**", "#{domainname}.mo")).size > 0
locale_path = File.join(RAILS_ROOT, "public/vendor/text/locale")
opt = {:locale_path => locale_path}.merge(options)
+ logger.info "Loading VENDOR textdomain in #{locale_path}"
ActionController::Base.init_gettext(domainname, opt)
else
#load default no vendor translation available
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages