Sha256: e8e2b017def74cdec22209159be175bc5b5651f2a1408bb946f8c7f2c24e6a15

Contents?: true

Size: 670 Bytes

Versions: 18

Compression:

Stored size: 670 Bytes

Contents

# -*- encoding : utf-8 -*-

require 'phrase/delegate/fast_gettext'

module FastGettext
  module Translation
    def __with_phrase(*args)
      Phrase::Delegate::FastGettext.new(:_, *args)
    end
    alias_method :__without_phrase, :_
    alias_method :_, :__with_phrase
    
    def n__with_phrase(*args)
      Phrase::Delegate::FastGettext.new(:n_, *args)
    end
    alias_method :n__without_phrase, :n_
    alias_method :n_, :n__with_phrase
    
    def s__with_phrase(*args)
      Phrase::Delegate::FastGettext.new(:s_, *args)
    end
    alias_method :s__without_phrase, :s_
    alias_method :s_, :s__with_phrase    
  end
end if defined? FastGettext::Translation

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
phrase-0.4.14 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.13 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.12 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.11 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.10 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.9 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.8 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.7 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.6 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.5 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.4 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.3 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.2 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.1 lib/phrase/adapters/fast_gettext.rb
phrase-0.4.0 lib/phrase/adapters/fast_gettext.rb
phrase-0.3.7 lib/phrase/adapters/fast_gettext.rb
phrase-0.3.6 lib/phrase/adapters/fast_gettext.rb
phrase-0.3.5 lib/phrase/adapters/fast_gettext.rb