Sha256: 9eec39d04bb8eaaaa963fc5bbc52fe68897a3a390c1ecadbe7a2a5f21aa7bab6

Contents?: true

Size: 298 Bytes

Versions: 14

Compression:

Stored size: 298 Bytes

Contents

require 'gettext'

class TestLib1
  include GetText
  alias :__setlocale :setlocale
  def initialize
    bindtextdomain("test1", "locale")
  end
  def test
    _("language")
  end

  def test_formatted_string
    _("one is %d.") % 1
  end

  def setlocale(locale)
    __setlocale(locale)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gettext-1.5.0-mswin32 test/testlib1.rb
gettext-1.4.0-mswin32 test/testlib1.rb
gettext-1.3.0-mswin32 test/testlib1.rb
gettext-1.2.0-mswin32 test/testlib1.rb
gettext-1.1.1-mswin32 test/testlib1.rb
gettext-1.1.0-mswin32 test/testlib1.rb
gettext-1.0.0-mswin32 test/testlib1.rb
gettext-1.0.0 test/testlib1.rb
gettext-1.2.0 test/testlib1.rb
gettext-1.1.0 test/testlib1.rb
gettext-1.1.1 test/testlib1.rb
gettext-1.4.0 test/testlib1.rb
gettext-1.3.0 test/testlib1.rb
gettext-1.5.0 test/testlib1.rb