Sha256: 5ea38cff5d8afd80a943361ea6370611831497c0383e1b6db029777abdf81a58

Contents?: true

Size: 785 Bytes

Versions: 6

Compression:

Stored size: 785 Bytes

Contents

require "phraseapp-in-context-editor-ruby/delegate/fast_gettext"

if defined? FastGettext::Translation
  module FastGettext
    module Translation
      def __with_phraseapp(*args)
        PhraseApp::InContextEditor::Delegate::FastGettext.new(:_, *args)
      end
      alias_method :__without_phraseapp, :_
      alias_method :_, :__with_phraseapp

      def n__with_phraseapp(*args)
        PhraseApp::InContextEditor::Delegate::FastGettext.new(:n_, *args)
      end
      alias_method :n__without_phraseapp, :n_
      alias_method :n_, :n__with_phraseapp

      def s__with_phraseapp(*args)
        PhraseApp::InContextEditor::Delegate::FastGettext.new(:s_, *args)
      end
      alias_method :s__without_phraseapp, :s_
      alias_method :s_, :s__with_phraseapp
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
phraseapp-in-context-editor-ruby-3.2.0 lib/phraseapp-in-context-editor-ruby/adapters/fast_gettext.rb
phraseapp-in-context-editor-ruby-3.1.1 lib/phraseapp-in-context-editor-ruby/adapters/fast_gettext.rb
phraseapp-in-context-editor-ruby-3.1.0 lib/phraseapp-in-context-editor-ruby/adapters/fast_gettext.rb
phraseapp-in-context-editor-ruby-3.0.1 lib/phraseapp-in-context-editor-ruby/adapters/fast_gettext.rb
phraseapp-in-context-editor-ruby-2.1.1 lib/phraseapp-in-context-editor-ruby/adapters/fast_gettext.rb
phraseapp-in-context-editor-ruby-2.0.0 lib/phraseapp-in-context-editor-ruby/adapters/fast_gettext.rb