Sha256: cefde43cae78017366c03216f9d0cb41cd6f74b2aa66a1b28da85f79ab9c65ae

Contents?: true

Size: 379 Bytes

Versions: 34

Compression:

Stored size: 379 Bytes

Contents

require 'riak/i18n'

module Riak
  module Util
    # Methods for doing i18n string lookup
    module Translation
      # The scope of i18n messages
      def i18n_scope
        :riak
      end

      # Provides the translation for a given internationalized message
      def t(message, options={})
        I18n.t("#{i18n_scope}.#{message}", options)
      end
    end
  end
end

Version data entries

34 entries across 24 versions & 3 rubygems

Version Path
riak-client-2.2.0.pre1 lib/riak/util/translation.rb
riak-client-2.1.0 lib/riak/util/translation.rb
riak-client-1.4.5 lib/riak/util/translation.rb
riak-client-2.0.0 lib/riak/util/translation.rb
riak-client-2.0.0.rc2 lib/riak/util/translation.rb
riak-client-2.0.0.rc1 lib/riak/util/translation.rb
riak-client-1.4.4.1 lib/riak/util/translation.rb
riak-client-1.4.4 lib/riak/util/translation.rb
riak-client-1.4.3 lib/riak/util/translation.rb
riak-client-1.4.2 lib/riak/util/translation.rb
riak-client-1.4.1 lib/riak/util/translation.rb
riak-client-1.4.0 lib/riak/util/translation.rb
riak-client-1.2.0 lib/riak/util/translation.rb
riak-client-1.1.1 lib/riak/util/translation.rb
riak-client-1.1.0 lib/riak/util/translation.rb
better-riak-client-1.0.7 lib/riak/util/translation.rb
better-riak-client-1.0.6 lib/riak/util/translation.rb
riak-client-1.0.5 lib/riak/util/translation.rb
better-riak-client-1.0.5 lib/riak/util/translation.rb
riak-client-1.0.3 pkg/riak-client-1.0.1/pkg/riak-client-1.0.0/lib/riak/util/translation.rb