Module: Riak::Util::Translation
- Included in:
- Bucket, Client, Client::HTTPBackend, Client::ProtobuffsBackend, FailedRequest, Link, MapReduce, MapReduce::FilterBuilder, MapReduce::Phase, RObject, Multipart::StreamParser, WalkSpec, Ripple::Translation
- Defined in:
- riak-client/lib/riak/util/translation.rb
Overview
Methods for doing i18n string lookup
Instance Method Summary (collapse)
-
- (Object) i18n_scope
The scope of i18n messages.
-
- (Object) t(message, options = {})
Provides the translation for a given internationalized message.
Instance Method Details
- (Object) i18n_scope
The scope of i18n messages
21 22 23 |
# File 'riak-client/lib/riak/util/translation.rb', line 21 def i18n_scope :riak end |
- (Object) t(message, options = {})
Provides the translation for a given internationalized message
26 27 28 |
# File 'riak-client/lib/riak/util/translation.rb', line 26 def t(, ={}) I18n.t("#{i18n_scope}.#{}", ) end |