Sha256: 45bd1f026c78da6e3528b50e62a9f02731c2592b8fa42bc547ebac0881ae0024

Contents?: true

Size: 225 Bytes

Versions: 7

Compression:

Stored size: 225 Bytes

Contents

require 'riak'

module Riak
  module Util
    module Translation
      def i18n_scope
        :riak
      end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
riakpb-0.1.6 lib/riak/util/translation.rb
riakpb-0.1.5 lib/riak/util/translation.rb
riakpb-0.1.4 lib/riak/util/translation.rb
riakpb-0.1.3 lib/riak/util/translation.rb
riakpb-0.1.2 lib/riak/util/translation.rb
riakpb-0.1.1 lib/riak/util/translation.rb
riakpb-0.1.0 lib/riak/util/translation.rb