Sha256: bc61b491b24d70d146106c0978660bbc4e3109789b592051ff7ae3b914132e37

Contents?: true

Size: 729 Bytes

Versions: 14

Compression:

Stored size: 729 Bytes

Contents

# encoding: utf-8

require 'gettext'
include GetText

class TestRubyParser_N
  bindtextdomain("testN_rubyparser", :path => "locale")

  def testN_1
    N_("aaa")
  end

  def testN_2
    N_("aaa\n")
  end

  def testN_3
    N_("bbb\nccc")
  end

  def testN_4
     N_("bbb
ccc
ddd
")
  end

  def testN_5
    N_("eee")
  end

  def testN_6
    N_("eee") + "foo" + N_("fff")
  end

  def testN_7
    N_("ggg"\
      "hhh"\
      "iii")
  end

  def testN_8
    N_('a"b"c"')
  end

  def testN_9
    N_("d\"e\"f\"")
  end

  def testN_10
    N_("jjj") +
    N_("kkk")
  end

  def testN_11
    N_("lll" + "mmm")
  end

  def testN_12
    puts N_(msg), "ppp"  #Ignored
  end

  def testN_13
    N_("nnn\n" +
      "ooo")
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
gettext-2.3.9 test/fixtures/N_.rb
gettext-2.3.8 test/fixtures/N_.rb
gettext-2.3.7 test/fixtures/N_.rb
gettext-2.3.6 test/fixtures/N_.rb
gettext-2.3.5 test/fixtures/N_.rb
gettext-2.3.4 test/fixtures/N_.rb
gettext-2.3.3 test/fixtures/N_.rb
gettext-2.3.2 test/fixtures/N_.rb
gettext-2.3.1 test/fixtures/N_.rb
gettext-2.3.0 test/fixtures/N_.rb
gettext-2.2.1 test/testlib/N_.rb
gettext-2.2.0 test/testlib/N_.rb
ofm_gettext-2.0.1 test/testlib/N_.rb
ofm_gettext-2.0.0 test/testlib/N_.rb