Sha256: 5f145fb6c13613a9be32ff02faeb055bef6a1886a911c774454a60a937253b52

Contents?: true

Size: 422 Bytes

Versions: 4

Compression:

Stored size: 422 Bytes

Contents

require 'ripple/i18n'
require 'riak/util/translation'

module Ripple
  # Adds i18n translation/string-lookup capabilities.
  module Translation
    include Riak::Util::Translation

    # The scope of i18n keys to search (:ripple).
    def i18n_scope
      :ripple
    end
  end

  # A dummy object so translations can be accessed without module
  # inclusion.
  Translator = Object.new.tap {|o| o.extend Translation }
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
wyngle-ripple-0.1.0 lib/ripple/translation.rb
better-ripple-1.0.0 lib/ripple/translation.rb
ripple-1.0.0.beta2 lib/ripple/translation.rb
ripple-1.0.0.beta lib/ripple/translation.rb