Sha256: 5c0d77bb9f5d2a314deeebbf67911a7b10fd2c0f11c98e6c78b85b17d1b3a688

Contents?: true

Size: 623 Bytes

Versions: 28

Compression:

Stored size: 623 Bytes

Contents

require 'gettext'

class TestSGetText
  include GetText
  def initialize
    bindtextdomain("test_sgettext", "locale")
  end

  def test_1
    s_("AAA|BBB")
  end
  
  def test_2
    sgettext("AAA|BBB")
  end
  
  def test_3
    s_("AAA") #not found
  end

  def test_4
    s_("AAA|CCC") #not found
  end

  def test_5
    s_("AAA|BBB|CCC") #not found
  end

  def test_6
    s_("AAA$BBB", "$") #not found
  end

  def test_7
    s_("AAA$B|BB", "$") #not found
  end

  def test_8
    s_("AAA$B|CC", "$")
  end

  def test_9
    s_("AAA|CCC|BBB") #not found
  end

  def setlocale(locale)
    __setlocale(locale)
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
gettext-1.10.0-mswin32 test/test_sgettext.rb
gettext-1.9.0-mswin32 test/test_sgettext.rb
gettext-1.8.0-mswin32 test/test_sgettext.rb
gettext-1.7.0-mswin32 test/test_sgettext.rb
gettext-1.6.0-mswin32 test/test_sgettext.rb
gettext-1.5.0-mswin32 test/test_sgettext.rb
gettext-1.4.0-mswin32 test/test_sgettext.rb
gettext-1.3.0-mswin32 test/test_sgettext.rb
gettext-1.2.0-mswin32 test/test_sgettext.rb
gettext-1.1.1-mswin32 test/test_sgettext.rb
gettext-1.1.0-mswin32 test/test_sgettext.rb
gettext-1.0.0-mswin32 test/test_sgettext.rb
gettext-1.0.0 test/test_sgettext.rb
gettext-1.1.0 test/test_sgettext.rb
gettext-1.10.0 test/test_sgettext.rb
gettext-1.2.0 test/test_sgettext.rb
gettext-1.1.1 test/test_sgettext.rb
gettext-1.4.0 test/test_sgettext.rb
gettext-1.5.0 test/test_sgettext.rb
gettext-1.3.0 test/test_sgettext.rb