gettext 3.2.9 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +276 -198
- data/Rakefile +2 -1
- data/doc/text/news.md +43 -0
- data/gettext.gemspec +3 -2
- data/lib/gettext/locale_path.rb +5 -1
- data/lib/gettext/po.rb +4 -4
- data/lib/gettext/po_entry.rb +17 -7
- data/lib/gettext/text_domain.rb +1 -1
- data/lib/gettext/tools/parser/ruby.rb +238 -224
- data/lib/gettext/version.rb +2 -2
- data/po/bg/gettext.edit.po +10 -4
- data/po/bg/gettext.po +5 -0
- data/po/bs/gettext.edit.po +10 -4
- data/po/bs/gettext.po +5 -0
- data/po/ca/gettext.edit.po +10 -4
- data/po/ca/gettext.po +5 -0
- data/po/cs/gettext.edit.po +10 -4
- data/po/cs/gettext.po +5 -0
- data/po/de/gettext.edit.po +10 -4
- data/po/de/gettext.po +5 -0
- data/po/el/gettext.edit.po +10 -4
- data/po/el/gettext.po +5 -0
- data/po/eo/gettext.edit.po +10 -4
- data/po/eo/gettext.po +5 -0
- data/po/es/gettext.edit.po +10 -4
- data/po/es/gettext.po +5 -0
- data/po/et/gettext.edit.po +10 -4
- data/po/et/gettext.po +5 -0
- data/po/fr/gettext.edit.po +10 -4
- data/po/fr/gettext.po +5 -0
- data/po/gettext.pot +32 -25
- data/po/hr/gettext.edit.po +10 -4
- data/po/hr/gettext.po +5 -0
- data/po/hu/gettext.edit.po +10 -4
- data/po/hu/gettext.po +5 -0
- data/po/it/gettext.edit.po +10 -4
- data/po/it/gettext.po +5 -0
- data/po/ja/gettext.edit.po +10 -4
- data/po/ja/gettext.po +5 -0
- data/po/ko/gettext.edit.po +10 -4
- data/po/ko/gettext.po +5 -0
- data/po/lv/gettext.edit.po +10 -4
- data/po/lv/gettext.po +5 -0
- data/po/nb/gettext.edit.po +10 -4
- data/po/nb/gettext.po +5 -0
- data/po/nl/gettext.edit.po +10 -4
- data/po/nl/gettext.po +5 -0
- data/po/pt_BR/gettext.edit.po +10 -4
- data/po/pt_BR/gettext.po +5 -0
- data/po/ru/gettext.edit.po +10 -4
- data/po/ru/gettext.po +5 -0
- data/po/sr/gettext.edit.po +10 -4
- data/po/sr/gettext.po +5 -0
- data/po/sv/gettext.edit.po +10 -4
- data/po/sv/gettext.po +5 -0
- data/po/uk/gettext.edit.po +10 -4
- data/po/uk/gettext.po +5 -0
- data/po/vi/gettext.edit.po +10 -4
- data/po/vi/gettext.po +5 -0
- data/po/zh/gettext.edit.po +10 -4
- data/po/zh/gettext.po +5 -0
- data/po/zh_TW/gettext.edit.po +10 -4
- data/po/zh_TW/gettext.po +5 -0
- data/samples/cgi/po/helloerb1.pot +3 -3
- data/samples/cgi/po/helloerb2.pot +3 -3
- data/samples/cgi/po/hellolib.pot +3 -3
- data/samples/cgi/po/main.pot +3 -3
- data/samples/po/hello.pot +3 -3
- data/samples/po/hello2.pot +4 -4
- data/samples/po/hello_glade2.pot +4 -4
- data/samples/po/hello_gtk2.pot +4 -4
- data/samples/po/hello_gtk_builder.pot +4 -5
- data/samples/po/hello_noop.pot +4 -4
- data/samples/po/hello_plural.pot +4 -4
- data/samples/po/hello_tk.pot +4 -4
- data/test/fixtures/_.rb +9 -0
- data/test/fixtures/erb/non_ascii.rhtml +1 -0
- data/test/gettext-test-utils.rb +10 -3
- data/test/locale/fr/LC_MESSAGES/plural_error.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/_.mo +0 -0
- data/test/po/_.pot +8 -4
- data/test/po/backslash.pot +6 -4
- data/test/po/fr/plural_error.po +7 -0
- data/test/po/hello.pot +3 -3
- data/test/po/ja/_.edit.po +6 -2
- data/test/po/ja/_.po +5 -2
- data/test/po/ja/hello.edit.po +0 -1
- data/test/po/non_ascii.pot +4 -4
- data/test/po/np_.pot +8 -5
- data/test/po/ns_.pot +6 -4
- data/test/po/p_.pot +3 -3
- data/test/po/s_.pot +6 -4
- data/test/po/untranslated.pot +4 -4
- data/test/test_class_info.rb +8 -9
- data/test/test_gettext.rb +7 -1
- data/test/test_parser.rb +1 -1
- data/test/test_po_entry.rb +1 -13
- data/test/test_po_parser.rb +6 -4
- data/test/test_string.rb +9 -5
- data/test/tools/test_msgmerge.rb +5 -2
- data/test/tools/test_xgettext.rb +5 -1
- metadata +17 -18
- data/lib/gettext/tools/parser/haml.rb +0 -61
data/po/zh_TW/gettext.edit.po
CHANGED
@@ -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:
|
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:
|
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:
|
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:
|
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] ""
|
data/po/zh_TW/gettext.po
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: helloerb1 3.
|
9
|
+
"Project-Id-Version: helloerb1 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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.
|
9
|
+
"Project-Id-Version: helloerb2 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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"
|
data/samples/cgi/po/hellolib.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: hellolib 3.
|
9
|
+
"Project-Id-Version: hellolib 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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"
|
data/samples/cgi/po/main.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: main 3.
|
9
|
+
"Project-Id-Version: main 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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"
|
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.
|
9
|
+
"Project-Id-Version: hello 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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"
|
data/samples/po/hello2.pot
CHANGED
@@ -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
|
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:
|
9
|
+
"Project-Id-Version: hello2 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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"
|
data/samples/po/hello_glade2.pot
CHANGED
@@ -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
|
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:
|
9
|
+
"Project-Id-Version: hello_glade2 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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"
|
data/samples/po/hello_gtk2.pot
CHANGED
@@ -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
|
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:
|
9
|
+
"Project-Id-Version: hello_gtk2 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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
|
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:
|
9
|
+
"Project-Id-Version: hello_gtk_builder 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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
|
-
|
data/samples/po/hello_noop.pot
CHANGED
@@ -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
|
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:
|
9
|
+
"Project-Id-Version: hello_noop 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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"
|
data/samples/po/hello_plural.pot
CHANGED
@@ -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
|
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:
|
9
|
+
"Project-Id-Version: hello_plural 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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"
|
data/samples/po/hello_tk.pot
CHANGED
@@ -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
|
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:
|
9
|
+
"Project-Id-Version: hello_tk 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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"
|
data/test/fixtures/_.rb
CHANGED
@@ -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
|
data/test/gettext-test-utils.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
#
|
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
|
Binary file
|
Binary file
|
data/test/po/_.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: _ 3.2.
|
9
|
+
"Project-Id-Version: _ 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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)
|
data/test/po/backslash.pot
CHANGED
@@ -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
|
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:
|
10
|
-
"
|
11
|
-
"
|
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"
|
data/test/po/fr/plural_error.po
CHANGED
@@ -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] ""
|
data/test/po/hello.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: hello 3.
|
9
|
+
"Project-Id-Version: hello 3.2.9\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
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"
|
data/test/po/ja/_.edit.po
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
msgid ""
|
6
6
|
msgstr ""
|
7
7
|
"Project-Id-Version: PACKAGE VERSION\n"
|
8
|
-
"PO-Revision-Date:
|
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)
|
data/test/po/ja/_.po
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
msgid ""
|
6
6
|
msgstr ""
|
7
7
|
"Project-Id-Version: PACKAGE VERSION\n"
|
8
|
-
"PO-Revision-Date:
|
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)
|