ref: refs/heads/network
commit ca9ecfcb95fc83eb24d8602132d39f4ad5e52ac2
Author: Stefan Schubert
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@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org