Module: Riak::Util::Translation
- Included in:
- Riak, BackwardsClockError, Bucket, Client, Client::BeefcakeProtobuffsBackend::BeefcakeSocket::TlsInitiator, Client::BeefcakeProtobuffsBackend::CrdtLoader, Client::BeefcakeProtobuffsBackend::CrdtOperator, Client::BeefcakeProtobuffsBackend::Protocol, Client::Node, Client::ProtobuffsBackend, Conflict, Counter, Crdt::Base, Error, Link, MapReduce, MapReduce::FilterBuilder, MapReduce::Phase, Multi, RContent, RObject, RObject, SecondaryIndex, Serializers, TimeSeries::List, Tombstone, WalkSpec, WalkSpec
- Defined in:
- lib/riak/util/translation.rb
Overview
Methods for doing i18n string lookup
Instance Method Summary collapse
-
#i18n_scope ⇒ Object
The scope of i18n messages.
-
#t(message, options = {}) ⇒ Object
Provides the translation for a given internationalized message.
Instance Method Details
#i18n_scope ⇒ Object
The scope of i18n messages
8 9 10 |
# File 'lib/riak/util/translation.rb', line 8 def i18n_scope :riak end |
#t(message, options = {}) ⇒ Object
Provides the translation for a given internationalized message
13 14 15 |
# File 'lib/riak/util/translation.rb', line 13 def t(, = {}) I18n.t("#{i18n_scope}.#{}", ) end |