Sha256: f9dea56af0bfd48933e2084c3abd66f0671976982f0d0426bfcc299b46b02ff9

Contents?: true

Size: 735 Bytes

Versions: 52

Compression:

Stored size: 735 Bytes

Contents

# -*- coding: 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

52 entries across 52 versions & 1 rubygems

Version Path
gettext-3.5.1 test/fixtures/upper_n_.rb
gettext-3.5.0 test/fixtures/upper_n_.rb
gettext-3.4.9 test/fixtures/upper_n_.rb
gettext-3.4.8 test/fixtures/upper_n_.rb
gettext-3.4.7 test/fixtures/upper_n_.rb
gettext-3.4.6 test/fixtures/upper_n_.rb
gettext-3.4.5 test/fixtures/upper_n_.rb
gettext-3.4.4 test/fixtures/upper_n_.rb
gettext-3.4.3 test/fixtures/upper_n_.rb
gettext-3.4.2 test/fixtures/upper_n_.rb
gettext-3.4.1 test/fixtures/upper_n_.rb
gettext-3.4.0 test/fixtures/upper_n_.rb
gettext-3.3.9 test/fixtures/upper_n_.rb
gettext-3.3.8 test/fixtures/upper_n_.rb
gettext-3.3.7 test/fixtures/upper_n_.rb
gettext-3.3.6 test/fixtures/upper_n_.rb
gettext-3.3.5 test/fixtures/upper_n_.rb
gettext-3.3.4 test/fixtures/upper_n_.rb
gettext-3.3.3 test/fixtures/upper_n_.rb
gettext-3.3.2 test/fixtures/upper_n_.rb