Sha256: 26b6f489d8d6a36cdf3aeadd487a7b5d1a27a563a24cbb06d3f1b931cdfa7204

Contents?: true

Size: 395 Bytes

Versions: 8

Compression:

Stored size: 395 Bytes

Contents

require 'gettext'

class TestPGetText
  include GetText
  bindtextdomain("pgettext", :path => "locale")

  def test_1
    p_("AAA", "BBB")
  end
  
  def test_2
    pgettext("AAA", "BBB")
  end

  def test_3
    pgettext("AAA|BBB", "CCC")
  end
  
  def test_4
    p_("AAA", "CCC") #not found
  end

  def test_5
    p_("CCC", "BBB")
  end

  def test_6  # not pgettext.
    _("BBB")
  end

end

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
experteer-gettext-2.0.4.2 test/testlib/pgettext.rb
grosser-gettext-2.0.0 test/testlib/pgettext.rb
retoo-ruby_gettext_extractor-0.2.1 test/cases/pgettext.rb
gettext-2.0.0 test/testlib/pgettext.rb
gettext-2.0.1 test/testlib/pgettext.rb
gettext-2.0.2 test/testlib/pgettext.rb
gettext-2.0.3 test/testlib/pgettext.rb
gettext-2.0.4 test/testlib/pgettext.rb