gettext 3.2.9 → 3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +276 -198
  3. data/Rakefile +2 -1
  4. data/doc/text/news.md +43 -0
  5. data/gettext.gemspec +3 -2
  6. data/lib/gettext/locale_path.rb +5 -1
  7. data/lib/gettext/po.rb +4 -4
  8. data/lib/gettext/po_entry.rb +17 -7
  9. data/lib/gettext/text_domain.rb +1 -1
  10. data/lib/gettext/tools/parser/ruby.rb +238 -224
  11. data/lib/gettext/version.rb +2 -2
  12. data/po/bg/gettext.edit.po +10 -4
  13. data/po/bg/gettext.po +5 -0
  14. data/po/bs/gettext.edit.po +10 -4
  15. data/po/bs/gettext.po +5 -0
  16. data/po/ca/gettext.edit.po +10 -4
  17. data/po/ca/gettext.po +5 -0
  18. data/po/cs/gettext.edit.po +10 -4
  19. data/po/cs/gettext.po +5 -0
  20. data/po/de/gettext.edit.po +10 -4
  21. data/po/de/gettext.po +5 -0
  22. data/po/el/gettext.edit.po +10 -4
  23. data/po/el/gettext.po +5 -0
  24. data/po/eo/gettext.edit.po +10 -4
  25. data/po/eo/gettext.po +5 -0
  26. data/po/es/gettext.edit.po +10 -4
  27. data/po/es/gettext.po +5 -0
  28. data/po/et/gettext.edit.po +10 -4
  29. data/po/et/gettext.po +5 -0
  30. data/po/fr/gettext.edit.po +10 -4
  31. data/po/fr/gettext.po +5 -0
  32. data/po/gettext.pot +32 -25
  33. data/po/hr/gettext.edit.po +10 -4
  34. data/po/hr/gettext.po +5 -0
  35. data/po/hu/gettext.edit.po +10 -4
  36. data/po/hu/gettext.po +5 -0
  37. data/po/it/gettext.edit.po +10 -4
  38. data/po/it/gettext.po +5 -0
  39. data/po/ja/gettext.edit.po +10 -4
  40. data/po/ja/gettext.po +5 -0
  41. data/po/ko/gettext.edit.po +10 -4
  42. data/po/ko/gettext.po +5 -0
  43. data/po/lv/gettext.edit.po +10 -4
  44. data/po/lv/gettext.po +5 -0
  45. data/po/nb/gettext.edit.po +10 -4
  46. data/po/nb/gettext.po +5 -0
  47. data/po/nl/gettext.edit.po +10 -4
  48. data/po/nl/gettext.po +5 -0
  49. data/po/pt_BR/gettext.edit.po +10 -4
  50. data/po/pt_BR/gettext.po +5 -0
  51. data/po/ru/gettext.edit.po +10 -4
  52. data/po/ru/gettext.po +5 -0
  53. data/po/sr/gettext.edit.po +10 -4
  54. data/po/sr/gettext.po +5 -0
  55. data/po/sv/gettext.edit.po +10 -4
  56. data/po/sv/gettext.po +5 -0
  57. data/po/uk/gettext.edit.po +10 -4
  58. data/po/uk/gettext.po +5 -0
  59. data/po/vi/gettext.edit.po +10 -4
  60. data/po/vi/gettext.po +5 -0
  61. data/po/zh/gettext.edit.po +10 -4
  62. data/po/zh/gettext.po +5 -0
  63. data/po/zh_TW/gettext.edit.po +10 -4
  64. data/po/zh_TW/gettext.po +5 -0
  65. data/samples/cgi/po/helloerb1.pot +3 -3
  66. data/samples/cgi/po/helloerb2.pot +3 -3
  67. data/samples/cgi/po/hellolib.pot +3 -3
  68. data/samples/cgi/po/main.pot +3 -3
  69. data/samples/po/hello.pot +3 -3
  70. data/samples/po/hello2.pot +4 -4
  71. data/samples/po/hello_glade2.pot +4 -4
  72. data/samples/po/hello_gtk2.pot +4 -4
  73. data/samples/po/hello_gtk_builder.pot +4 -5
  74. data/samples/po/hello_noop.pot +4 -4
  75. data/samples/po/hello_plural.pot +4 -4
  76. data/samples/po/hello_tk.pot +4 -4
  77. data/test/fixtures/_.rb +9 -0
  78. data/test/fixtures/erb/non_ascii.rhtml +1 -0
  79. data/test/gettext-test-utils.rb +10 -3
  80. data/test/locale/fr/LC_MESSAGES/plural_error.mo +0 -0
  81. data/test/locale/ja/LC_MESSAGES/_.mo +0 -0
  82. data/test/po/_.pot +8 -4
  83. data/test/po/backslash.pot +6 -4
  84. data/test/po/fr/plural_error.po +7 -0
  85. data/test/po/hello.pot +3 -3
  86. data/test/po/ja/_.edit.po +6 -2
  87. data/test/po/ja/_.po +5 -2
  88. data/test/po/ja/hello.edit.po +0 -1
  89. data/test/po/non_ascii.pot +4 -4
  90. data/test/po/np_.pot +8 -5
  91. data/test/po/ns_.pot +6 -4
  92. data/test/po/p_.pot +3 -3
  93. data/test/po/s_.pot +6 -4
  94. data/test/po/untranslated.pot +4 -4
  95. data/test/test_class_info.rb +8 -9
  96. data/test/test_gettext.rb +7 -1
  97. data/test/test_parser.rb +1 -1
  98. data/test/test_po_entry.rb +1 -13
  99. data/test/test_po_parser.rb +6 -4
  100. data/test/test_string.rb +9 -5
  101. data/test/tools/test_msgmerge.rb +5 -2
  102. data/test/tools/test_xgettext.rb +5 -1
  103. metadata +17 -18
  104. data/lib/gettext/tools/parser/haml.rb +0 -61
@@ -664,7 +664,7 @@ msgid_plural "comments"
664
664
  msgstr[0] ""
665
665
  msgstr[1] ""
666
666
 
667
- #: ../test/fixtures/multi_text_domain.rb:11 ../test/fixtures/multi_text_domain.rb:24 ../test/fixtures/multi_text_domain.rb:43 ../test/fixtures/multi_text_domain.rb:50 ../test/fixtures/multi_text_domain.rb:62 ../test/fixtures/multi_text_domain.rb:75 ../test/fixtures/multi_text_domain.rb:91 ../test/fixtures/multi_text_domain.rb:104 ../test/fixtures/multi_text_domain.rb:108 ../test/fixtures/multi_text_domain.rb:128 ../test/fixtures/simple.rb:10 ../test/test_gettext.rb:64 ../test/test_gettext.rb:297 ../test/test_gettext.rb:299 ../test/test_gettext.rb:302 ../test/test_gettext.rb:306 ../test/test_gettext.rb:309 ../test/test_gettext.rb:322 ../test/test_gettext.rb:325 ../test/test_gettext.rb:328 ../test/test_gettext.rb:336 ../test/test_gettext.rb:339 ../test/test_gettext.rb:351 ../test/test_gettext.rb:358 ../test/test_text_domain_toplevel.rb:9 ../test/test_text_domain_toplevel.rb:15 ../test/test_text_domain_toplevel.rb:18 ../test/test_text_domain_toplevel.rb:23 ../test/test_thread.rb:23
667
+ #: ../test/fixtures/multi_text_domain.rb:11 ../test/fixtures/multi_text_domain.rb:24 ../test/fixtures/multi_text_domain.rb:43 ../test/fixtures/multi_text_domain.rb:50 ../test/fixtures/multi_text_domain.rb:62 ../test/fixtures/multi_text_domain.rb:75 ../test/fixtures/multi_text_domain.rb:91 ../test/fixtures/multi_text_domain.rb:104 ../test/fixtures/multi_text_domain.rb:108 ../test/fixtures/multi_text_domain.rb:128 ../test/fixtures/simple.rb:10 ../test/test_gettext.rb:64 ../test/test_gettext.rb:300 ../test/test_gettext.rb:302 ../test/test_gettext.rb:305 ../test/test_gettext.rb:309 ../test/test_gettext.rb:312 ../test/test_gettext.rb:325 ../test/test_gettext.rb:328 ../test/test_gettext.rb:331 ../test/test_gettext.rb:339 ../test/test_gettext.rb:342 ../test/test_gettext.rb:354 ../test/test_gettext.rb:364 ../test/test_text_domain_toplevel.rb:9 ../test/test_text_domain_toplevel.rb:15 ../test/test_text_domain_toplevel.rb:18 ../test/test_text_domain_toplevel.rb:23 ../test/test_thread.rb:23
668
668
  msgid "language"
669
669
  msgstr ""
670
670
 
@@ -809,19 +809,25 @@ msgstr ""
809
809
  msgid "test"
810
810
  msgstr ""
811
811
 
812
- #: ../test/test_gettext.rb:179 ../test/test_gettext.rb:180 ../test/test_gettext.rb:181 ../test/test_gettext.rb:184 ../test/test_gettext.rb:185 ../test/test_gettext.rb:186 ../test/test_gettext.rb:189 ../test/test_gettext.rb:190 ../test/test_gettext.rb:191 ../test/test_gettext.rb:194 ../test/test_gettext.rb:195 ../test/test_gettext.rb:196 ../test/test_gettext.rb:197 ../test/test_gettext.rb:200 ../test/test_gettext.rb:201 ../test/test_gettext.rb:202 ../test/test_gettext.rb:203 ../test/test_gettext.rb:206 ../test/test_gettext.rb:207 ../test/test_gettext.rb:208 ../test/test_gettext.rb:211 ../test/test_gettext.rb:212 ../test/test_gettext.rb:213 ../test/test_gettext.rb:216 ../test/test_gettext.rb:217 ../test/test_gettext.rb:218 ../test/test_gettext.rb:221 ../test/test_gettext.rb:222 ../test/test_gettext.rb:223 ../test/test_gettext.rb:224 ../test/test_gettext.rb:225 ../test/test_gettext.rb:252 ../test/test_gettext.rb:253 ../test/test_gettext.rb:254 ../test/test_gettext.rb:260 ../test/test_gettext.rb:261 ../test/test_gettext.rb:262 ../test/test_gettext.rb:271 ../test/test_gettext.rb:272 ../test/test_gettext.rb:273 ../test/test_gettext.rb:281 ../test/test_gettext.rb:282 ../test/test_gettext.rb:283 ../test/test_gettext.rb:292
812
+ #: ../test/test_gettext.rb:179 ../test/test_gettext.rb:180 ../test/test_gettext.rb:181 ../test/test_gettext.rb:184 ../test/test_gettext.rb:185 ../test/test_gettext.rb:186 ../test/test_gettext.rb:189 ../test/test_gettext.rb:190 ../test/test_gettext.rb:191 ../test/test_gettext.rb:194 ../test/test_gettext.rb:195 ../test/test_gettext.rb:196 ../test/test_gettext.rb:197 ../test/test_gettext.rb:200 ../test/test_gettext.rb:201 ../test/test_gettext.rb:202 ../test/test_gettext.rb:203 ../test/test_gettext.rb:206 ../test/test_gettext.rb:207 ../test/test_gettext.rb:208 ../test/test_gettext.rb:211 ../test/test_gettext.rb:212 ../test/test_gettext.rb:213 ../test/test_gettext.rb:216 ../test/test_gettext.rb:217 ../test/test_gettext.rb:218 ../test/test_gettext.rb:221 ../test/test_gettext.rb:222 ../test/test_gettext.rb:223 ../test/test_gettext.rb:224 ../test/test_gettext.rb:225 ../test/test_gettext.rb:255 ../test/test_gettext.rb:256 ../test/test_gettext.rb:257 ../test/test_gettext.rb:263 ../test/test_gettext.rb:264 ../test/test_gettext.rb:265 ../test/test_gettext.rb:274 ../test/test_gettext.rb:275 ../test/test_gettext.rb:276 ../test/test_gettext.rb:284 ../test/test_gettext.rb:285 ../test/test_gettext.rb:286
813
813
  msgid "one"
814
814
  msgid_plural "two"
815
815
  msgstr[0] ""
816
816
  msgstr[1] ""
817
817
 
818
- #: ../test/test_gettext.rb:231 ../test/test_gettext.rb:232 ../test/test_gettext.rb:233 ../test/test_gettext.rb:236 ../test/test_gettext.rb:237 ../test/test_gettext.rb:238 ../test/test_gettext.rb:240 ../test/test_gettext.rb:241 ../test/test_gettext.rb:242 ../test/test_gettext.rb:244 ../test/test_gettext.rb:245 ../test/test_gettext.rb:246 ../test/test_gettext.rb:249 ../test/test_gettext.rb:250 ../test/test_gettext.rb:251
818
+ #: ../test/test_gettext.rb:231 ../test/test_gettext.rb:232 ../test/test_gettext.rb:233 ../test/test_gettext.rb:236 ../test/test_gettext.rb:237 ../test/test_gettext.rb:238 ../test/test_gettext.rb:243 ../test/test_gettext.rb:244 ../test/test_gettext.rb:245 ../test/test_gettext.rb:247 ../test/test_gettext.rb:248 ../test/test_gettext.rb:249 ../test/test_gettext.rb:252 ../test/test_gettext.rb:253 ../test/test_gettext.rb:254
819
819
  msgid "first"
820
820
  msgid_plural "second"
821
821
  msgstr[0] ""
822
822
  msgstr[1] ""
823
823
 
824
- #: ../test/test_gettext.rb:268 ../test/test_gettext.rb:269 ../test/test_gettext.rb:270 ../test/test_gettext.rb:278 ../test/test_gettext.rb:279 ../test/test_gettext.rb:280
824
+ #: ../test/test_gettext.rb:239 ../test/test_gettext.rb:240 ../test/test_gettext.rb:241
825
+ msgid "first_2"
826
+ msgid_plural "second_2"
827
+ msgstr[0] ""
828
+ msgstr[1] ""
829
+
830
+ #: ../test/test_gettext.rb:271 ../test/test_gettext.rb:272 ../test/test_gettext.rb:273 ../test/test_gettext.rb:281 ../test/test_gettext.rb:282 ../test/test_gettext.rb:283
825
831
  msgid "single"
826
832
  msgid_plural "plural"
827
833
  msgstr[0] ""
@@ -679,6 +679,11 @@ msgid_plural "second"
679
679
  msgstr[0] ""
680
680
  msgstr[1] ""
681
681
 
682
+ msgid "first_2"
683
+ msgid_plural "second_2"
684
+ msgstr[0] ""
685
+ msgstr[1] ""
686
+
682
687
  msgid "single"
683
688
  msgid_plural "plural"
684
689
  msgstr[0] ""
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: helloerb1 3.1.3\n"
9
+ "Project-Id-Version: helloerb1 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2014-07-09 14:27+0900\n"
12
- "PO-Revision-Date: 2014-07-09 14:27+0900\n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: helloerb2 3.1.3\n"
9
+ "Project-Id-Version: helloerb2 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2014-07-09 14:27+0900\n"
12
- "PO-Revision-Date: 2014-07-09 14:27+0900\n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hellolib 3.1.3\n"
9
+ "Project-Id-Version: hellolib 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2014-07-09 14:27+0900\n"
12
- "PO-Revision-Date: 2014-07-09 14:27+0900\n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: main 3.1.3\n"
9
+ "Project-Id-Version: main 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2014-07-09 14:27+0900\n"
12
- "PO-Revision-Date: 2014-07-09 14:27+0900\n"
11
+ "POT-Creation-Date: 2020-01-08 16:56+0900\n"
12
+ "PO-Revision-Date: 2020-01-08 16:56+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hello 3.1.3\n"
9
+ "Project-Id-Version: hello 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2014-07-09 15:14+0900\n"
12
- "PO-Revision-Date: 2014-07-09 15:14+0900\n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -1,15 +1,15 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the gettext package.
3
+ # This file is distributed under the same license as the hello2 package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: gettext 3.0.1\n"
9
+ "Project-Id-Version: hello2 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2013-09-02 23:40+0900\n"
12
- "PO-Revision-Date: 2013-09-02 23:40+0900\n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -1,15 +1,15 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the gettext package.
3
+ # This file is distributed under the same license as the hello_glade2 package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: gettext 2.3.1\n"
9
+ "Project-Id-Version: hello_glade2 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2012-09-02 11:50+0900\n"
12
- "PO-Revision-Date: 2012-09-02 11:50+0900\n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -1,15 +1,15 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the gettext package.
3
+ # This file is distributed under the same license as the hello_gtk2 package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: gettext 3.0.1\n"
9
+ "Project-Id-Version: hello_gtk2 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2013-09-02 23:40+0900\n"
12
- "PO-Revision-Date: 2013-09-02 23:40+0900\n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -1,15 +1,15 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the gettext package.
3
+ # This file is distributed under the same license as the hello_gtk_builder package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: gettext 3.0.1\n"
9
+ "Project-Id-Version: hello_gtk_builder 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2013-09-02 23:19+0900\n"
12
- "PO-Revision-Date: 2013-09-02 23:19+0900\n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -17,4 +17,3 @@ msgstr ""
17
17
  "Content-Type: text/plain; charset=UTF-8\n"
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
20
-
@@ -1,15 +1,15 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the gettext package.
3
+ # This file is distributed under the same license as the hello_noop package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: gettext 3.0.1\n"
9
+ "Project-Id-Version: hello_noop 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2013-09-02 23:40+0900\n"
12
- "PO-Revision-Date: 2013-09-02 23:40+0900\n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -1,15 +1,15 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the gettext package.
3
+ # This file is distributed under the same license as the hello_plural package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: gettext 3.0.1\n"
9
+ "Project-Id-Version: hello_plural 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2013-09-02 23:40+0900\n"
12
- "PO-Revision-Date: 2013-09-02 23:40+0900\n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -1,15 +1,15 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the gettext package.
3
+ # This file is distributed under the same license as the hello_tk package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: gettext 3.0.1\n"
9
+ "Project-Id-Version: hello_tk 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2013-09-02 23:40+0900\n"
12
- "PO-Revision-Date: 2013-09-02 23:40+0900\n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -131,6 +131,15 @@ EOF
131
131
  def test_includeing_sharp
132
132
  _("This is a # including string.")
133
133
  end
134
+
135
+ def test_regexp
136
+ /Regular Expression/
137
+ end
138
+
139
+ def test_variable
140
+ message = "dynamic message"
141
+ _(message)
142
+ end
134
143
  end
135
144
 
136
145
  module ActionController
@@ -1,3 +1,4 @@
1
+ <%# -*- coding: utf-8 -*- %>
1
2
  <%
2
3
  require 'gettext'
3
4
  include GetText
@@ -1,6 +1,4 @@
1
- # -*- coding: utf-8 -*-
2
- #
3
- # Copyright (C) 2012-2013 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2012-2018 Kouhei Sutou <kou@clear-code.com>
4
2
  #
5
3
  # License: Ruby's or LGPL
6
4
  #
@@ -41,4 +39,13 @@ module GetTextTestUtils
41
39
  def teardown_tmpdir
42
40
  FileUtils.rm_rf(@tmpdir, :secure => true) if @tmpdir
43
41
  end
42
+
43
+ def suppress_warning
44
+ stderr, $stderr = $stderr, StringIO.new
45
+ begin
46
+ yield
47
+ ensure
48
+ $stderr = stderr
49
+ end
50
+ end
44
51
  end
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: _ 3.2.2\n"
9
+ "Project-Id-Version: _ 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2017-06-24 12:20+0900\n"
12
- "PO-Revision-Date: 2017-06-24 12:20+0900\n"
11
+ "POT-Creation-Date: 2020-01-08 16:55+0900\n"
12
+ "PO-Revision-Date: 2020-01-08 16:55+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -83,7 +83,7 @@ msgid "#"
83
83
  msgstr ""
84
84
 
85
85
  #: ../fixtures/_.rb:96
86
- msgid "\\taaa"
86
+ msgid "\\taaa'bbb\\ccc"
87
87
  msgstr ""
88
88
 
89
89
  #: ../fixtures/_.rb:100
@@ -92,6 +92,10 @@ msgid ""
92
92
  "Here document2\n"
93
93
  msgstr ""
94
94
 
95
+ #: ../fixtures/_.rb:109
96
+ msgid "in_quote"
97
+ msgstr ""
98
+
95
99
  #. TRANSLATORS: This is a proper name. See the gettext
96
100
  #. manual, section Names. Note this is actually a non-ASCII
97
101
  #. name: The first name is (with Unicode escapes)
@@ -1,16 +1,18 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the PACKAGE package.
3
+ # This file is distributed under the same license as the backslash package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: PACKAGE VERSION\n"
10
- "POT-Creation-Date: 2012-08-19 22:58+0900\n"
11
- "PO-Revision-Date: 2012-08-19 22:58+0900\n"
9
+ "Project-Id-Version: backslash 3.2.9\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
12
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "Language: \n"
14
16
  "MIME-Version: 1.0\n"
15
17
  "Content-Type: text/plain; charset=UTF-8\n"
16
18
  "Content-Transfer-Encoding: 8bit\n"
@@ -13,8 +13,15 @@ msgstr ""
13
13
  "MIME-Version: 1.0\n"
14
14
  "Content-Type: text/plain; charset=US-ASCII\n"
15
15
  "Content-Transfer-Encoding: ENCODING\n"
16
+ "Plural-Forms: nplurals=2; plural=n>1;\n"
16
17
 
17
18
  #: hello_plural.rb:11
18
19
  msgid "first"
19
20
  msgid_plural "second"
20
21
  msgstr[0] "fr_first"
22
+
23
+ #: hello_plural.rb:14
24
+ msgid "first_2"
25
+ msgid_plural "second_2"
26
+ msgstr[0] "fr_first_2"
27
+ msgstr[1] ""
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hello 3.1.7\n"
9
+ "Project-Id-Version: hello 3.2.9\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2015-09-22 14:05+0900\n"
12
- "PO-Revision-Date: 2015-09-22 14:05+0900\n"
11
+ "POT-Creation-Date: 2018-06-16 12:12+0900\n"
12
+ "PO-Revision-Date: 2018-06-16 12:12+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -5,7 +5,7 @@
5
5
  msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: PACKAGE VERSION\n"
8
- "PO-Revision-Date: 2013-08-30 23:17+0900\n"
8
+ "PO-Revision-Date: 2018-06-17 07:37+0900\n"
9
9
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
10
10
  "Language-Team: LANGUAGE <LL@li.org>\n"
11
11
  "MIME-Version: 1.0\n"
@@ -84,7 +84,7 @@ msgid "#"
84
84
  msgstr ""
85
85
 
86
86
  #: ../fixtures/_.rb:96
87
- msgid "\taaa"
87
+ msgid "\taaa'bbb\\ccc"
88
88
  msgstr ""
89
89
 
90
90
  #: ../fixtures/_.rb:100
@@ -93,6 +93,10 @@ msgid ""
93
93
  "Here document2\n"
94
94
  msgstr ""
95
95
 
96
+ #: ../fixtures/_.rb:109
97
+ msgid "in_quote"
98
+ msgstr ""
99
+
96
100
  #. TRANSLATORS: This is a proper name. See the gettext
97
101
  #. manual, section Names. Note this is actually a non-ASCII
98
102
  #. name: The first name is (with Unicode escapes)
@@ -5,7 +5,7 @@
5
5
  msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: PACKAGE VERSION\n"
8
- "PO-Revision-Date: 2013-08-30 23:17+0900\n"
8
+ "PO-Revision-Date: 2018-06-17 07:37+0900\n"
9
9
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
10
10
  "Language-Team: LANGUAGE <LL@li.org>\n"
11
11
  "MIME-Version: 1.0\n"
@@ -69,7 +69,7 @@ msgstr ""
69
69
  msgid "#"
70
70
  msgstr ""
71
71
 
72
- msgid "\taaa"
72
+ msgid "\taaa'bbb\\ccc"
73
73
  msgstr ""
74
74
 
75
75
  msgid ""
@@ -77,6 +77,9 @@ msgid ""
77
77
  "Here document2\n"
78
78
  msgstr ""
79
79
 
80
+ msgid "in_quote"
81
+ msgstr ""
82
+
80
83
  #. TRANSLATORS: This is a proper name. See the gettext
81
84
  #. manual, section Names. Note this is actually a non-ASCII
82
85
  #. name: The first name is (with Unicode escapes)