test/testlib/npgettext.rb in gettext-1.93.0 vs test/testlib/npgettext.rb in gettext-2.0.0
- old
+ new
@@ -1,11 +1,9 @@
require 'gettext'
class TestNPGetText
include GetText
- def initialize
- bindtextdomain("test_npgettext", "locale")
- end
+ bindtextdomain("npgettext", :path => "locale")
def test_1
[np_("Magazine", "a book", "%{num} books", 1),
np_("Magazine", "a book", "%{num} books", 2)]
end