Sha256: dc6a8b1d651ef3e3281fb603f3404f7f38b441ae633d3bb3f97b71bcea5bc398

Contents?: true

Size: 713 Bytes

Versions: 28

Compression:

Stored size: 713 Bytes

Contents

require 'gettext'
include GetText

class TestRubyParser_N
  bindtextdomain("testN_rubyparser", "locale", "ja")

  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

28 entries across 28 versions & 1 rubygems

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