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-1.0.3 pkg/riak-client-1.0.1/lib/riak/util/translation.rb
riak-client-1.0.3 pkg/riak-client-1.0.0/lib/riak/util/translation.rb
riak-client-1.0.3 lib/riak/util/translation.rb
riak-client-1.0.3 pkg/riak-client-1.0.2/pkg/riak-client-1.0.1/lib/riak/util/translation.rb
riak-client-1.0.3 pkg/riak-client-1.0.2/pkg/riak-client-1.0.1/pkg/riak-client-1.0.0/lib/riak/util/translation.rb
riak-client-1.0.3 pkg/riak-client-1.0.2/pkg/riak-client-1.0.0/lib/riak/util/translation.rb
riak-client-1.0.3 pkg/riak-client-1.0.2/lib/riak/util/translation.rb
riak-client-1.0.2 pkg/riak-client-1.0.1/pkg/riak-client-1.0.0/lib/riak/util/translation.rb
riak-client-1.0.2 pkg/riak-client-1.0.1/lib/riak/util/translation.rb
riak-client-1.0.2 pkg/riak-client-1.0.0/lib/riak/util/translation.rb
riak-client-1.0.2 lib/riak/util/translation.rb
riak-client-1.0.0 lib/riak/util/translation.rb
seomoz-riak-client-1.0.0.pre lib/riak/util/translation.rb
riak-client-1.0.0.beta lib/riak/util/translation.rb