Sha256: 8596ba98c9dbeea46429f875d14f3a59535263d448ae0299a33a1e995e3e1b77

Contents?: true

Size: 870 Bytes

Versions: 8

Compression:

Stored size: 870 Bytes

Contents

# Copyright 2010 Sean Cribbs, Sonian Inc., and Basho Technologies, Inc.
#
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.
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

8 entries across 8 versions & 2 rubygems

Version Path
riak-client-0.8.0.beta2 lib/riak/util/translation.rb
riak-client-0.8.0.beta lib/riak/util/translation.rb
riak-client-0.7.1 lib/riak/util/translation.rb
riak-client-0.7.0 lib/riak/util/translation.rb
ripple-0.6.1 lib/riak/util/translation.rb
ripple-0.6.0 lib/riak/util/translation.rb
ripple-0.5.1 lib/riak/util/translation.rb
ripple-0.5.0 lib/riak/util/translation.rb