gettext 3.3.0 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/doc/text/news.md +23 -0
  3. data/lib/gettext/tools/msginit.rb +5 -4
  4. data/lib/gettext/tools/parser/gtk_builder_ui_definitions.rb +129 -0
  5. data/lib/gettext/tools/parser/ruby.rb +48 -22
  6. data/lib/gettext/tools/xgettext.rb +6 -6
  7. data/lib/gettext/version.rb +1 -1
  8. data/locale/ja/LC_MESSAGES/gettext.mo +0 -0
  9. data/po/bg/gettext.edit.po +12 -4
  10. data/po/bg/gettext.po +7 -3
  11. data/po/bs/gettext.edit.po +12 -4
  12. data/po/bs/gettext.po +7 -3
  13. data/po/ca/gettext.edit.po +12 -4
  14. data/po/ca/gettext.po +7 -3
  15. data/po/cs/gettext.edit.po +12 -4
  16. data/po/cs/gettext.po +7 -3
  17. data/po/de/gettext.edit.po +12 -4
  18. data/po/de/gettext.po +7 -3
  19. data/po/el/gettext.edit.po +12 -4
  20. data/po/el/gettext.po +7 -3
  21. data/po/eo/gettext.edit.po +12 -4
  22. data/po/eo/gettext.po +7 -3
  23. data/po/es/gettext.edit.po +12 -4
  24. data/po/es/gettext.po +7 -3
  25. data/po/et/gettext.edit.po +12 -4
  26. data/po/et/gettext.po +7 -3
  27. data/po/fr/gettext.edit.po +12 -4
  28. data/po/fr/gettext.po +7 -3
  29. data/po/gettext.pot +15 -9
  30. data/po/hr/gettext.edit.po +12 -4
  31. data/po/hr/gettext.po +7 -3
  32. data/po/hu/gettext.edit.po +12 -4
  33. data/po/hu/gettext.po +7 -3
  34. data/po/it/gettext.edit.po +12 -4
  35. data/po/it/gettext.po +7 -3
  36. data/po/ja/gettext.edit.po +14 -6
  37. data/po/ja/gettext.po +9 -5
  38. data/po/ko/gettext.edit.po +12 -4
  39. data/po/ko/gettext.po +7 -3
  40. data/po/lv/gettext.edit.po +12 -4
  41. data/po/lv/gettext.po +7 -3
  42. data/po/nb/gettext.edit.po +12 -4
  43. data/po/nb/gettext.po +7 -3
  44. data/po/nl/gettext.edit.po +12 -4
  45. data/po/nl/gettext.po +7 -3
  46. data/po/pt_BR/gettext.edit.po +12 -4
  47. data/po/pt_BR/gettext.po +7 -3
  48. data/po/ru/gettext.edit.po +12 -4
  49. data/po/ru/gettext.po +7 -3
  50. data/po/sr/gettext.edit.po +12 -4
  51. data/po/sr/gettext.po +7 -3
  52. data/po/sv/gettext.edit.po +12 -4
  53. data/po/sv/gettext.po +7 -3
  54. data/po/uk/gettext.edit.po +12 -4
  55. data/po/uk/gettext.po +7 -3
  56. data/po/vi/gettext.edit.po +12 -4
  57. data/po/vi/gettext.po +7 -3
  58. data/po/zh/gettext.edit.po +12 -4
  59. data/po/zh/gettext.po +7 -3
  60. data/po/zh_TW/gettext.edit.po +12 -4
  61. data/po/zh_TW/gettext.po +7 -3
  62. data/samples/cgi/po/helloerb1.pot +3 -3
  63. data/samples/cgi/po/helloerb2.pot +3 -3
  64. data/samples/cgi/po/hellolib.pot +3 -3
  65. data/samples/cgi/po/main.pot +3 -3
  66. data/samples/po/hello.pot +3 -3
  67. data/samples/po/hello2.pot +4 -4
  68. data/samples/po/hello_glade2.pot +4 -4
  69. data/samples/po/hello_gtk2.pot +4 -4
  70. data/samples/po/hello_gtk_builder.pot +5 -4
  71. data/samples/po/hello_noop.pot +4 -4
  72. data/samples/po/hello_plural.pot +4 -4
  73. data/samples/po/hello_tk.pot +4 -4
  74. data/test/fixtures/_/backtick.rb +30 -0
  75. data/test/fixtures/_/block_parameter.rb +2 -2
  76. data/test/fixtures/_/double_quote_in_double_quote.rb +2 -2
  77. data/test/fixtures/_/double_quote_in_single_quote.rb +2 -2
  78. data/test/fixtures/_/literal_concatenation_with_continuation_line.rb +2 -2
  79. data/test/fixtures/_/middle_new_line.rb +2 -2
  80. data/test/fixtures/_/multiple_lines_literal.rb +2 -2
  81. data/test/fixtures/_/multiple_messages_in_same_line.rb +2 -2
  82. data/test/fixtures/_/multiple_same_messages.rb +2 -2
  83. data/test/fixtures/_/one_line.rb +2 -2
  84. data/test/fixtures/_/one_new_line.rb +2 -2
  85. data/test/{gettext-test-utils.rb → fixtures/_/percent_strings.rb} +21 -26
  86. data/test/fixtures/_/quoted_symbol.rb +34 -0
  87. data/test/fixtures/gtk_builder_ui_definitions.ui +68 -0
  88. data/test/fixtures/ns_/custom.rb +2 -2
  89. data/test/fixtures/s_/custom.rb +2 -2
  90. data/test/helper.rb +99 -0
  91. data/test/po/_.pot +2 -6
  92. data/test/po/backslash.pot +4 -6
  93. data/test/po/hello.pot +3 -3
  94. data/test/po/ja/_.edit.po +0 -4
  95. data/test/po/ja/hello.edit.po +1 -0
  96. data/test/po/non_ascii.pot +4 -4
  97. data/test/po/np_.pot +5 -8
  98. data/test/po/ns_.pot +4 -6
  99. data/test/po/p_.pot +3 -3
  100. data/test/po/s_.pot +4 -6
  101. data/test/po/untranslated.pot +4 -4
  102. data/test/run-test.rb +2 -2
  103. data/test/test_parser.rb +11 -10
  104. data/test/test_po_parser.rb +2 -2
  105. data/test/test_string.rb +1 -1
  106. data/test/tools/parser/test_gtk_builder_ui_definitions.rb +45 -0
  107. data/test/tools/parser/test_ruby.rb +26 -39
  108. data/test/tools/test_msgmerge.rb +3 -3
  109. data/test/tools/test_xgettext.rb +2 -2
  110. metadata +20 -14
data/po/zh/gettext.po CHANGED
@@ -167,9 +167,7 @@ msgstr ""
167
167
  msgid "file '%s' does not exist."
168
168
  msgstr "文件'%s'已经存在。"
169
169
 
170
- msgid ""
171
- "Locale '#{language_tag}' is invalid. Please check if your specified locale is "
172
- "usable."
170
+ msgid "Locale '%s' is invalid. Please check if your specified locale is usable."
173
171
  msgstr ""
174
172
 
175
173
  #, fuzzy
@@ -402,6 +400,9 @@ msgid ""
402
400
  "Here document2\n"
403
401
  msgstr ""
404
402
 
403
+ msgid "in_quote"
404
+ msgstr ""
405
+
405
406
  #. TRANSLATORS: This is a proper name. See the gettext
406
407
  #. manual, section Names. Note this is actually a non-ASCII
407
408
  #. name: The first name is (with Unicode escapes)
@@ -456,6 +457,9 @@ msgid ""
456
457
  "one new line\n"
457
458
  msgstr ""
458
459
 
460
+ msgid "hello world"
461
+ msgstr ""
462
+
459
463
  msgid "You should escape '\\' as '\\\\'."
460
464
  msgstr ""
461
465
 
@@ -200,19 +200,19 @@ msgid "file '%s' does not exist."
200
200
  msgstr "檔案 '%s' 已經存在"
201
201
 
202
202
  #: ../lib/gettext/tools/msginit.rb:171
203
- msgid "Locale '#{language_tag}' is invalid. Please check if your specified locale is usable."
203
+ msgid "Locale '%s' is invalid. Please check if your specified locale is usable."
204
204
  msgstr ""
205
205
 
206
- #: ../lib/gettext/tools/msginit.rb:180
206
+ #: ../lib/gettext/tools/msginit.rb:181
207
207
  #, fuzzy
208
208
  msgid "file '%s' has already existed."
209
209
  msgstr "檔案 '%s' 已經存在"
210
210
 
211
- #: ../lib/gettext/tools/msginit.rb:222
211
+ #: ../lib/gettext/tools/msginit.rb:223
212
212
  msgid "Please enter your full name"
213
213
  msgstr ""
214
214
 
215
- #: ../lib/gettext/tools/msginit.rb:251
215
+ #: ../lib/gettext/tools/msginit.rb:252
216
216
  msgid "Please enter your email address"
217
217
  msgstr ""
218
218
 
@@ -482,6 +482,10 @@ msgid ""
482
482
  "Here document2\n"
483
483
  msgstr ""
484
484
 
485
+ #: ../test/fixtures/_.rb:109
486
+ msgid "in_quote"
487
+ msgstr ""
488
+
485
489
  #. TRANSLATORS: This is a proper name. See the gettext
486
490
  #. manual, section Names. Note this is actually a non-ASCII
487
491
  #. name: The first name is (with Unicode escapes)
@@ -550,6 +554,10 @@ msgid ""
550
554
  "one new line\n"
551
555
  msgstr ""
552
556
 
557
+ #: ../test/fixtures/_/percent_strings.rb:34
558
+ msgid "hello world"
559
+ msgstr ""
560
+
553
561
  #: ../test/fixtures/backslash.rb:27
554
562
  msgid "You should escape '\\' as '\\\\'."
555
563
  msgstr ""
data/po/zh_TW/gettext.po CHANGED
@@ -166,9 +166,7 @@ msgstr ""
166
166
  msgid "file '%s' does not exist."
167
167
  msgstr "檔案 '%s' 已經存在"
168
168
 
169
- msgid ""
170
- "Locale '#{language_tag}' is invalid. Please check if your specified locale is "
171
- "usable."
169
+ msgid "Locale '%s' is invalid. Please check if your specified locale is usable."
172
170
  msgstr ""
173
171
 
174
172
  #, fuzzy
@@ -401,6 +399,9 @@ msgid ""
401
399
  "Here document2\n"
402
400
  msgstr ""
403
401
 
402
+ msgid "in_quote"
403
+ msgstr ""
404
+
404
405
  #. TRANSLATORS: This is a proper name. See the gettext
405
406
  #. manual, section Names. Note this is actually a non-ASCII
406
407
  #. name: The first name is (with Unicode escapes)
@@ -455,6 +456,9 @@ msgid ""
455
456
  "one new line\n"
456
457
  msgstr ""
457
458
 
459
+ msgid "hello world"
460
+ msgstr ""
461
+
458
462
  msgid "You should escape '\\' as '\\\\'."
459
463
  msgstr ""
460
464
 
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: helloerb1 3.2.9\n"
9
+ "Project-Id-Version: helloerb1 3.1.3\n"
10
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"
11
+ "POT-Creation-Date: 2014-07-09 14:27+0900\n"
12
+ "PO-Revision-Date: 2014-07-09 14:27+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.2.9\n"
9
+ "Project-Id-Version: helloerb2 3.1.3\n"
10
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"
11
+ "POT-Creation-Date: 2014-07-09 14:27+0900\n"
12
+ "PO-Revision-Date: 2014-07-09 14:27+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.2.9\n"
9
+ "Project-Id-Version: hellolib 3.1.3\n"
10
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"
11
+ "POT-Creation-Date: 2014-07-09 14:27+0900\n"
12
+ "PO-Revision-Date: 2014-07-09 14:27+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.2.9\n"
9
+ "Project-Id-Version: main 3.1.3\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2020-01-08 16:56+0900\n"
12
- "PO-Revision-Date: 2020-01-08 16:56+0900\n"
11
+ "POT-Creation-Date: 2014-07-09 14:27+0900\n"
12
+ "PO-Revision-Date: 2014-07-09 14:27+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
data/samples/po/hello.pot CHANGED
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hello 3.2.9\n"
9
+ "Project-Id-Version: hello 3.1.3\n"
10
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"
11
+ "POT-Creation-Date: 2014-07-09 15:14+0900\n"
12
+ "PO-Revision-Date: 2014-07-09 15:14+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 hello2 package.
3
+ # This file is distributed under the same license as the gettext package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hello2 3.2.9\n"
9
+ "Project-Id-Version: gettext 3.0.1\n"
10
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"
11
+ "POT-Creation-Date: 2013-09-02 23:40+0900\n"
12
+ "PO-Revision-Date: 2013-09-02 23:40+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 hello_glade2 package.
3
+ # This file is distributed under the same license as the gettext package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hello_glade2 3.2.9\n"
9
+ "Project-Id-Version: gettext 2.3.1\n"
10
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"
11
+ "POT-Creation-Date: 2012-09-02 11:50+0900\n"
12
+ "PO-Revision-Date: 2012-09-02 11:50+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 hello_gtk2 package.
3
+ # This file is distributed under the same license as the gettext package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hello_gtk2 3.2.9\n"
9
+ "Project-Id-Version: gettext 3.0.1\n"
10
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"
11
+ "POT-Creation-Date: 2013-09-02 23:40+0900\n"
12
+ "PO-Revision-Date: 2013-09-02 23:40+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 hello_gtk_builder package.
3
+ # This file is distributed under the same license as the gettext package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hello_gtk_builder 3.2.9\n"
9
+ "Project-Id-Version: gettext 3.0.1\n"
10
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"
11
+ "POT-Creation-Date: 2013-09-02 23:19+0900\n"
12
+ "PO-Revision-Date: 2013-09-02 23:19+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,3 +17,4 @@ 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 hello_noop package.
3
+ # This file is distributed under the same license as the gettext package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hello_noop 3.2.9\n"
9
+ "Project-Id-Version: gettext 3.0.1\n"
10
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"
11
+ "POT-Creation-Date: 2013-09-02 23:40+0900\n"
12
+ "PO-Revision-Date: 2013-09-02 23:40+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 hello_plural package.
3
+ # This file is distributed under the same license as the gettext package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hello_plural 3.2.9\n"
9
+ "Project-Id-Version: gettext 3.0.1\n"
10
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"
11
+ "POT-Creation-Date: 2013-09-02 23:40+0900\n"
12
+ "PO-Revision-Date: 2013-09-02 23:40+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 hello_tk package.
3
+ # This file is distributed under the same license as the gettext package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hello_tk 3.2.9\n"
9
+ "Project-Id-Version: gettext 3.0.1\n"
10
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"
11
+ "POT-Creation-Date: 2013-09-02 23:40+0900\n"
12
+ "PO-Revision-Date: 2013-09-02 23:40+0900\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -0,0 +1,30 @@
1
+ # Copyright (C) 2020 Kitaiti Makoto <KitaitiMakoto@gmail.com>
2
+ #
3
+ # License: Ruby's or LGPL
4
+ #
5
+ # This library is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+
18
+ module Fixtures
19
+ module Method_
20
+ class Backtick
21
+ include GetText
22
+
23
+ bindtextdomain("_", :path => Helper::Path.locale_path)
24
+
25
+ def backtick
26
+ _(`echo hello world`)
27
+ end
28
+ end
29
+ end
30
+ end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2017-2020 Sutou Kouhei <kou@clear-code.com>
2
2
  #
3
3
  # License: Ruby's or LGPL
4
4
  #
@@ -20,7 +20,7 @@ module Fixtures
20
20
  class BlockParameter
21
21
  include GetText
22
22
 
23
- bindtextdomain("_", :path => GetTextTestUtils.locale_path)
23
+ bindtextdomain("_", :path => Helper::Path.locale_path)
24
24
 
25
25
  def message
26
26
  message_generator = lambda do |_|
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2013-2020 Sutou Kouhei <kou@clear-code.com>
4
4
  #
5
5
  # License: Ruby's or LGPL
6
6
  #
@@ -22,7 +22,7 @@ module Fixtures
22
22
  class DoubleQuoteInDoubleQuote
23
23
  include GetText
24
24
 
25
- bindtextdomain("_", :path => GetTextTestUtils.locale_path)
25
+ bindtextdomain("_", :path => Helper::Path.locale_path)
26
26
 
27
27
  def message
28
28
  _("double \"quote\" in double quote")
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2013-2020 Sutou Kouhei <kou@clear-code.com>
4
4
  #
5
5
  # License: Ruby's or LGPL
6
6
  #
@@ -22,7 +22,7 @@ module Fixtures
22
22
  class DoubleQuoteInSingleQuote
23
23
  include GetText
24
24
 
25
- bindtextdomain("_", :path => GetTextTestUtils.locale_path)
25
+ bindtextdomain("_", :path => Helper::Path.locale_path)
26
26
 
27
27
  def message
28
28
  _('double "quote" in single quote')
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2013-2020 Sutou Kouhei <kou@clear-code.com>
4
4
  #
5
5
  # License: Ruby's or LGPL
6
6
  #
@@ -22,7 +22,7 @@ module Fixtures
22
22
  class LiteralConcatenationWithContinuationLine
23
23
  include GetText
24
24
 
25
- bindtextdomain("_", :path => GetTextTestUtils.locale_path)
25
+ bindtextdomain("_", :path => Helper::Path.locale_path)
26
26
 
27
27
  def message
28
28
  _("literal " \
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2013 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2013-2020 Sutou Kouhei <kou@clear-code.com>
4
4
  #
5
5
  # License: Ruby's or LGPL
6
6
  #
@@ -22,7 +22,7 @@ module Fixtures
22
22
  class MiddleNewLine
23
23
  include GetText
24
24
 
25
- bindtextdomain("_", :path => GetTextTestUtils.locale_path)
25
+ bindtextdomain("_", :path => Helper::Path.locale_path)
26
26
 
27
27
  def message
28
28
  _("middle\nnew line")