Module: Riak::Util::Translation

Overview

Methods for doing i18n string lookup

Instance Method Summary collapse

Instance Method Details

#i18n_scopeObject

The scope of i18n messages



22
23
24
# File 'lib/riak/util/translation.rb', line 22

def i18n_scope
  :riak
end

#t(message, options = {}) ⇒ Object

Provides the translation for a given internationalized message



27
28
29
# File 'lib/riak/util/translation.rb', line 27

def t(message, options = {})
  I18n.t("#{i18n_scope}.#{message}", options)
end