Module: Riakpb::Util::Translation

Included in:
Bucket, Client, Client::Rpc, Content, FailedExchange, FailedRequest, Key, MapReduce, MapReduce::Phase, SiblingError
Defined in:
lib/riakpb/util/translation.rb

Instance Method Summary collapse

Instance Method Details

#i18n_scopeObject



6
7
8
# File 'lib/riakpb/util/translation.rb', line 6

def i18n_scope
  :riak
end

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



10
11
12
# File 'lib/riakpb/util/translation.rb', line 10

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