FastGettext::TranslationRepository::Base
This should be used in a TranslationRepository::Chain, so tat untranslated keys can be found Responsibility:
- log every translation call
# File lib/fast_gettext/translation_repository/logger.rb, line 11 def initialize(name,options={}) super self.callback = options[:callback] end
# File lib/fast_gettext/translation_repository/logger.rb, line 16 def [](key) callback.call(key) nil end
# File lib/fast_gettext/translation_repository/logger.rb, line 21 def plural(*keys) callback.call(keys) [] end
[Validate]
Generated with the Darkfish Rdoc Generator 2.