Sha256: f82db3808507368b1c1c5277ec7da9caa2496e0052aef9cd4b0af580096046dd

Contents?: true

Size: 334 Bytes

Versions: 8

Compression:

Stored size: 334 Bytes

Contents

# -*- coding: utf-8 -*-

require 'gettext'

class Simple
  include GetText
  bindtextdomain("test1", :path => Helper::Path.locale_path)

  def test
    _("language")
  end

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

  def test_plural
    n_("There is an apple.", "There are %{num} apples.", 5) % {:num => 5}
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gettext-3.4.9 test/fixtures/simple.rb
gettext-3.4.8 test/fixtures/simple.rb
gettext-3.4.7 test/fixtures/simple.rb
gettext-3.4.6 test/fixtures/simple.rb
gettext-3.4.5 test/fixtures/simple.rb
gettext-3.4.4 test/fixtures/simple.rb
gettext-3.4.3 test/fixtures/simple.rb
gettext-3.4.2 test/fixtures/simple.rb