Skip to content

Commit

Permalink
[#543 state:resolved] i18n is a little noisy. Added
Browse files Browse the repository at this point in the history
HOBO_VERBOSE_TRANSLATIONS option.
  • Loading branch information
bryanlarsen committed Nov 30, 2009
1 parent 91fbbe1 commit 30431ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hobo/lib/hobo/translations.rb
Expand Up @@ -70,7 +70,8 @@ def self.ht(key, options={})

key_prefix = "<span class='translation-key'>#{key}</span>" if defined?(HOBO_SHOW_LOCALE_KEYS) && HOBO_SHOW_LOCALE_KEYS

Rails.logger.info "..translate(#{key}, #{options.inspect}) to #{I18n.locale}"
Rails.logger.info "..translate(#{key}, #{options.inspect}) to #{I18n.locale}" if defined?(HOBO_VERBOSE_TRANSLATIONS)

I18n.translate(key.to_sym, options)+(key_prefix ? key_prefix:"")
end

Expand Down

0 comments on commit 30431ca

Please sign in to comment.