Sha256: 4323effbe33c88282f960f501678d63b855ac4186cb6042dc530b02e99414470
Contents?: true
Size: 277 Bytes
Versions: 4
Compression:
Stored size: 277 Bytes
Contents
module Radmin class I18n class << self def t(key, options = {}) if defined?(::I18n) ::I18n.t(key, options.merge(:scope => :radmin)) else options[:default] end end alias_method :translate, :t end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
radmin-0.3.3 | lib/radmin/i18n.rb |
radmin-0.3.2 | lib/radmin/i18n.rb |
radmin-0.3.1 | lib/radmin/i18n.rb |
radmin-0.2.0 | lib/radmin/i18n.rb |