Sha256: 7856099876c779f0a201cbcef7b198dedd14277e7d3e369e0882add784c336a5

Contents?: true

Size: 969 Bytes

Versions: 14

Compression:

Stored size: 969 Bytes

Contents

class TestLib5
  include GetText
  def initialize
    bindtextdomain("test1", "locale")
    bindtextdomain("test2", "locale")
  end
  def test
    _("language")
  end
  def test2
    _("LANGUAGE")
  end
end

class TestLib6 < TestLib5
end

module TestLib7
  include GetText
  bindtextdomain("test1", "locale")

  module_function
  def test
    _("language")
  end

  class TestLib8
    include GetText
    def test
      _("language")
    end
    # Doesn't translate
    def test2
      _("LANGUAGE")
    end
  end

  class TestLib9
    include GetText
    def initialize
      bindtextdomain("test2", "locale")
    end
    def test
      _("language")
    end
    def test2
      _("LANGUAGE")
    end
  end
end

class TestLib10
  include GetText
  def initialize
    bindtextdomain("test1", "locale")
  end

  def test
    eval("_(\"language\")")
  end
end

class TestLib11
  include GetText
  bindtextdomain("test1", "locale")

  def test
    _("language")
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gettext-1.10.0-mswin32 test/testlib5.rb
gettext-1.9.0-mswin32 test/testlib5.rb
gettext-1.8.0-mswin32 test/testlib5.rb
gettext-1.7.0-mswin32 test/testlib5.rb
gettext-1.6.0-mswin32 test/testlib5.rb
gettext-1.10.0 test/testlib5.rb
gettext-1.6.0 test/testlib5.rb
gettext-1.7.0 test/testlib5.rb
gettext-1.8.0 test/testlib5.rb
gettext-1.91.0 test/testlib/testlib5.rb
gettext-1.9.0 test/testlib5.rb
gettext-1.90.0 test/testlib/testlib5.rb
gettext-1.92.0 test/testlib/testlib5.rb
gettext-1.93.0 test/testlib/testlib5.rb