test/testlib/ngettext.rb in gettext-2.1.0 vs test/testlib/ngettext.rb in gettext-2.2.0
- old
+ new
@@ -1,5 +1,7 @@
+# encoding: utf-8
+
require 'gettext'
include GetText
class TestRubyParser_n
bindtextdomain("rubyparser", :path => "locale")
@@ -11,17 +13,17 @@
def test_2
n_("bbb\n", "ccc2\nccc2", 1)
end
def test_3_1
- n_("ddd\nddd",
- "ddd2\nddd2",
- 1)
+ n_("ddd\nddd",
+ "ddd2\nddd2",
+ 1)
end
def test_3_2
n_("eee\neee\n" ,
- "eee2\neee2\n" ,
+ "eee2\neee2\n" ,
1)
end
def test_4
n_("ddd
@@ -54,26 +56,26 @@
def test_8
n_("d\"e\"f\"", "d\"e\"f\"2", 1)
end
def test_9
- n_("mmm" + "mmm","mmm2" + "mmm2",1) +
+ n_("mmm" + "mmm","mmm2" + "mmm2",1) +
n_("nnn" ,"nnn2" ,1)
end
def test_10
_("ooo")
n_("ooo", "ppp", 1)
end
def test_11
- n_("qqq", "rrr", 1)
+ n_("qqq", "rrr", 1)
n_("qqq", "sss", 1) # This is merged to "qqq" with plural form "rrr".
end
def extracted_comments
- # TRANSLATORS:please provide translations for all
+ # TRANSLATORS:please provide translations for all
# the plural forms!
n_('comment', 'comments', 2)
end
end
-
+