gettext 3.2.9 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/test/po/ja/hello.edit.po
CHANGED
data/test/po/non_ascii.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 non_ascii 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: non_ascii 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/np_.pot
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
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 np_ 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: np_ 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"
|
|
17
19
|
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
|
18
20
|
|
|
19
|
-
#: ../fixtures/np_.rb:28 ../fixtures/np_.rb:29 ../fixtures/np_.rb:33
|
|
21
|
+
#: ../fixtures/np_.rb:28 ../fixtures/np_.rb:29 ../fixtures/np_.rb:33
|
|
22
|
+
#: ../fixtures/np_.rb:34
|
|
20
23
|
msgctxt "Magazine"
|
|
21
24
|
msgid "a book"
|
|
22
25
|
msgid_plural "%{num} books"
|
data/test/po/ns_.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 ns_ 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: ns_ 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/p_.pot
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
#, fuzzy
|
|
7
7
|
msgid ""
|
|
8
8
|
msgstr ""
|
|
9
|
-
"Project-Id-Version: p_ 3.
|
|
9
|
+
"Project-Id-Version: p_ 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:01+0900\n"
|
|
12
|
+
"PO-Revision-Date: 2020-01-08 16:01+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/s_.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 s_ 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: s_ 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/untranslated.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 untranslated 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: untranslated 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/test_class_info.rb
CHANGED
|
@@ -30,11 +30,6 @@ module M8
|
|
|
30
30
|
include M9
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
# Anonymous module
|
|
34
|
-
@@anon = Module.new
|
|
35
|
-
class @@anon::AC1; end
|
|
36
|
-
module @@anon::AM1; end
|
|
37
|
-
|
|
38
33
|
module TestClassInfoSandbox
|
|
39
34
|
class << self
|
|
40
35
|
def clear
|
|
@@ -57,11 +52,15 @@ class TestClassInfo < Test::Unit::TestCase
|
|
|
57
52
|
assert_equal TestClassInfo, normalize_class(self)
|
|
58
53
|
end
|
|
59
54
|
|
|
55
|
+
@@anonymous_module = Module.new
|
|
56
|
+
class @@anonymous_module::AC1; end
|
|
57
|
+
module @@anonymous_module::AM1; end
|
|
58
|
+
|
|
60
59
|
def test_normalize_class_anonymous_module
|
|
61
|
-
assert_equal Object, normalize_class(@@
|
|
62
|
-
assert_equal Object, normalize_class(@@
|
|
63
|
-
assert_equal Object, normalize_class(@@
|
|
64
|
-
assert_equal Object, normalize_class(@@
|
|
60
|
+
assert_equal Object, normalize_class(@@anonymous_module)
|
|
61
|
+
assert_equal Object, normalize_class(@@anonymous_module)
|
|
62
|
+
assert_equal Object, normalize_class(@@anonymous_module::AC1)
|
|
63
|
+
assert_equal Object, normalize_class(@@anonymous_module::AM1)
|
|
65
64
|
end
|
|
66
65
|
|
|
67
66
|
def test_related_classes
|
data/test/test_gettext.rb
CHANGED
|
@@ -235,7 +235,10 @@ DDD
|
|
|
235
235
|
set_locale("fr")
|
|
236
236
|
assert_equal("fr_first", n_("first", "second", 0))
|
|
237
237
|
assert_equal("fr_first", n_("first", "second", 1))
|
|
238
|
-
assert_equal("fr_first", n_("first", "second", 2))
|
|
238
|
+
assert_equal("fr_first", n_("first", "second", 2)) # no translation
|
|
239
|
+
assert_equal("fr_first_2", n_("first_2", "second_2", 0))
|
|
240
|
+
assert_equal("fr_first_2", n_("first_2", "second_2", 1))
|
|
241
|
+
assert_equal("", n_("first_2", "second_2", 2)) # empty translation
|
|
239
242
|
set_locale("da") # Invalid Plural-Forms.
|
|
240
243
|
assert_equal("da_first", n_("first", "second", 0))
|
|
241
244
|
assert_equal("da_first", n_("first", "second", 1))
|
|
@@ -352,6 +355,9 @@ DDD
|
|
|
352
355
|
end
|
|
353
356
|
|
|
354
357
|
def test_safe_mode
|
|
358
|
+
if RUBY_VERSION >= "2.6.0"
|
|
359
|
+
omit("Per thread $SAFE is removed since Ruby 2.6.")
|
|
360
|
+
end
|
|
355
361
|
Thread.start{
|
|
356
362
|
$SAFE = 1
|
|
357
363
|
GetText.bindtextdomain("test1", :path => "locale")
|
data/test/test_parser.rb
CHANGED
|
@@ -187,7 +187,7 @@ class TestGetTextParser < Test::Unit::TestCase
|
|
|
187
187
|
fixture_path = "fixtures/erb/non_ascii.rhtml"
|
|
188
188
|
@ary = GetText::ErbParser.parse(fixture_path)
|
|
189
189
|
|
|
190
|
-
assert_target('わたし', ["#{fixture_path}:
|
|
190
|
+
assert_target('わたし', ["#{fixture_path}:12"])
|
|
191
191
|
end
|
|
192
192
|
end
|
|
193
193
|
|
data/test/test_po_entry.rb
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
#
|
|
3
1
|
# Copyright (C) 2012 Haruka Yoshihara <yoshihara@clear-code.com>
|
|
4
|
-
# Copyright (C) 2012-
|
|
2
|
+
# Copyright (C) 2012-2019 Sutou Kouhei <kou@clear-code.com>
|
|
5
3
|
# Copyright (C) 2010 masone (Christian Felder) <ema@rh-productions.ch>
|
|
6
4
|
# Copyright (C) 2009 Masao Mutoh
|
|
7
5
|
#
|
|
@@ -35,16 +33,6 @@ class TestPOEntry < Test::Unit::TestCase
|
|
|
35
33
|
end
|
|
36
34
|
end
|
|
37
35
|
|
|
38
|
-
def test_attribute_accumulation
|
|
39
|
-
tt = GetText::POEntry.new(:plural)
|
|
40
|
-
tt.set_current_attribute 'long'
|
|
41
|
-
tt.set_current_attribute ' tail'
|
|
42
|
-
tt.advance_to_next_attribute
|
|
43
|
-
tt.set_current_attribute 'long tails'
|
|
44
|
-
assert_equal 'long tail', tt.msgid
|
|
45
|
-
assert_equal 'long tails', tt.msgid_plural
|
|
46
|
-
end
|
|
47
|
-
|
|
48
36
|
class TestSetType < self
|
|
49
37
|
def test_varid_type
|
|
50
38
|
entry = GetText::POEntry.new(:normal)
|
data/test/test_po_parser.rb
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
#
|
|
2
|
-
#
|
|
3
|
-
# Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
|
|
1
|
+
# Copyright (C) 2012-2018 Kouhei Sutou <kou@clear-code.com>
|
|
4
2
|
# Copyright (C) 2012 Haruka Yoshihara <yoshihara@clear-code.com>
|
|
5
3
|
#
|
|
6
4
|
# License: Ruby's or LGPL
|
|
@@ -62,6 +60,8 @@ EOP
|
|
|
62
60
|
end
|
|
63
61
|
|
|
64
62
|
class TestPO < self
|
|
63
|
+
include GetTextTestUtils
|
|
64
|
+
|
|
65
65
|
def test_msgstr
|
|
66
66
|
po_file = create_po_file(<<-EOP)
|
|
67
67
|
# This is the comment.
|
|
@@ -220,7 +220,9 @@ EOP
|
|
|
220
220
|
msgid "hello"
|
|
221
221
|
msgstr "bonjour"
|
|
222
222
|
EOP
|
|
223
|
-
entries =
|
|
223
|
+
entries = suppress_warning do
|
|
224
|
+
parse_po_file(po_file, :ignore_fuzzy => false)
|
|
225
|
+
end
|
|
224
226
|
|
|
225
227
|
assert_true(entries.has_key?("hello"))
|
|
226
228
|
assert_equal("fuzzy", entries["hello"].flag)
|
data/test/test_string.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
|
|
3
1
|
class TestGetTextString < Test::Unit::TestCase
|
|
4
2
|
class TestFormat < self
|
|
3
|
+
include GetTextTestUtils
|
|
4
|
+
|
|
5
5
|
def test_basic
|
|
6
6
|
assert_equal("foo is a number", "%{msg} is a number" % {:msg => "foo"})
|
|
7
7
|
assert_equal("bar is a number", "%s is a number" % ["bar"])
|
|
@@ -22,7 +22,9 @@ class TestGetTextString < Test::Unit::TestCase
|
|
|
22
22
|
|
|
23
23
|
def test_percent
|
|
24
24
|
assert_equal("% 1", "%% %<num>d" % {:num => 1.0})
|
|
25
|
-
|
|
25
|
+
suppress_warning do
|
|
26
|
+
assert_equal("%{num} %<num>d", "%%{num} %%<num>d" % {:num => 1})
|
|
27
|
+
end
|
|
26
28
|
end
|
|
27
29
|
|
|
28
30
|
def test_percent_in_replacement
|
|
@@ -30,8 +32,10 @@ class TestGetTextString < Test::Unit::TestCase
|
|
|
30
32
|
end
|
|
31
33
|
|
|
32
34
|
def test_no_placeholder
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
suppress_warning do
|
|
36
|
+
assert_equal("aaa", "aaa" % {:num => 1})
|
|
37
|
+
assert_equal("bbb", "bbb" % [1])
|
|
38
|
+
end
|
|
35
39
|
end
|
|
36
40
|
|
|
37
41
|
def test_ruby19_style
|
data/test/tools/test_msgmerge.rb
CHANGED
|
@@ -292,7 +292,6 @@ msgstr "bonjour"
|
|
|
292
292
|
@pot[new_msgid] = ""
|
|
293
293
|
merged_po = merge
|
|
294
294
|
|
|
295
|
-
puts merged_po
|
|
296
295
|
assert_equal("bonjour", merged_po[new_msgid].msgstr)
|
|
297
296
|
assert_equal("fuzzy", merged_po[new_msgid].flag)
|
|
298
297
|
end
|
|
@@ -481,6 +480,8 @@ EOP
|
|
|
481
480
|
end
|
|
482
481
|
|
|
483
482
|
class TestMessage < self
|
|
483
|
+
include GetTextTestUtils
|
|
484
|
+
|
|
484
485
|
def po_content
|
|
485
486
|
<<-PO
|
|
486
487
|
#{po_header(@po_formatted_time, @po_formatted_time)}
|
|
@@ -492,7 +493,9 @@ msgstr "Translated World"
|
|
|
492
493
|
end
|
|
493
494
|
|
|
494
495
|
def test_merge_metadata
|
|
495
|
-
|
|
496
|
+
suppress_warning do
|
|
497
|
+
@msgmerge.run("--update", @po_file_path, @pot_file_path)
|
|
498
|
+
end
|
|
496
499
|
assert_equal(<<-PO, File.read(@po_file_path))
|
|
497
500
|
#{po_header(@pot_formatted_time, @po_formatted_time)}
|
|
498
501
|
#: hello.rb:1
|
data/test/tools/test_xgettext.rb
CHANGED
|
@@ -414,6 +414,7 @@ msgid "World"
|
|
|
414
414
|
msgstr ""
|
|
415
415
|
|
|
416
416
|
#: ../lib/xgettext.rb:2
|
|
417
|
+
msgctxt "context"
|
|
417
418
|
msgid "Hello"
|
|
418
419
|
msgstr ""
|
|
419
420
|
|
|
@@ -443,6 +444,7 @@ msgid "World"
|
|
|
443
444
|
msgstr ""
|
|
444
445
|
|
|
445
446
|
#: ../lib/xgettext.rb:2
|
|
447
|
+
msgctxt "context"
|
|
446
448
|
msgid "Hello"
|
|
447
449
|
msgstr ""
|
|
448
450
|
POT
|
|
@@ -456,6 +458,7 @@ msgid "World"
|
|
|
456
458
|
msgstr ""
|
|
457
459
|
|
|
458
460
|
#: ../lib/xgettext.rb:2
|
|
461
|
+
msgctxt "context"
|
|
459
462
|
msgid "Hello"
|
|
460
463
|
msgstr ""
|
|
461
464
|
|
|
@@ -481,6 +484,7 @@ msgid "ABC"
|
|
|
481
484
|
msgstr ""
|
|
482
485
|
|
|
483
486
|
#: ../lib/xgettext.rb:2
|
|
487
|
+
msgctxt "context"
|
|
484
488
|
msgid "Hello"
|
|
485
489
|
msgstr ""
|
|
486
490
|
|
|
@@ -502,7 +506,7 @@ msgstr ""
|
|
|
502
506
|
File.open(@rb_file_path, "w") do |rb_file|
|
|
503
507
|
rb_file.puts(<<-RUBY)
|
|
504
508
|
_('World')
|
|
505
|
-
|
|
509
|
+
p_('context', 'Hello')
|
|
506
510
|
RUBY
|
|
507
511
|
end
|
|
508
512
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gettext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kouhei Sutou
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2020-01-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: locale
|
|
@@ -145,11 +145,11 @@ email:
|
|
|
145
145
|
- kou@clear-code.com
|
|
146
146
|
- mutomasa at gmail.com
|
|
147
147
|
executables:
|
|
148
|
-
- rmsginit
|
|
149
148
|
- rmsgfmt
|
|
149
|
+
- rmsgmerge
|
|
150
150
|
- rmsgcat
|
|
151
151
|
- rxgettext
|
|
152
|
-
-
|
|
152
|
+
- rmsginit
|
|
153
153
|
extensions: []
|
|
154
154
|
extra_rdoc_files: []
|
|
155
155
|
files:
|
|
@@ -185,7 +185,6 @@ files:
|
|
|
185
185
|
- lib/gettext/tools/msgmerge.rb
|
|
186
186
|
- lib/gettext/tools/parser/erb.rb
|
|
187
187
|
- lib/gettext/tools/parser/glade.rb
|
|
188
|
-
- lib/gettext/tools/parser/haml.rb
|
|
189
188
|
- lib/gettext/tools/parser/ruby.rb
|
|
190
189
|
- lib/gettext/tools/task.rb
|
|
191
190
|
- lib/gettext/tools/xgettext.rb
|
|
@@ -1660,7 +1659,7 @@ files:
|
|
|
1660
1659
|
- test/tools/test_msgmerge.rb
|
|
1661
1660
|
- test/tools/test_task.rb
|
|
1662
1661
|
- test/tools/test_xgettext.rb
|
|
1663
|
-
homepage:
|
|
1662
|
+
homepage: https://ruby-gettext.github.io/
|
|
1664
1663
|
licenses:
|
|
1665
1664
|
- Ruby or LGPLv3+
|
|
1666
1665
|
metadata: {}
|
|
@@ -1672,30 +1671,30 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
1672
1671
|
requirements:
|
|
1673
1672
|
- - ">="
|
|
1674
1673
|
- !ruby/object:Gem::Version
|
|
1675
|
-
version:
|
|
1674
|
+
version: 2.5.0
|
|
1676
1675
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1677
1676
|
requirements:
|
|
1678
1677
|
- - ">="
|
|
1679
1678
|
- !ruby/object:Gem::Version
|
|
1680
1679
|
version: '0'
|
|
1681
1680
|
requirements: []
|
|
1682
|
-
rubyforge_project:
|
|
1683
|
-
rubygems_version: 2.7.6
|
|
1681
|
+
rubyforge_project:
|
|
1682
|
+
rubygems_version: 2.7.6.2
|
|
1684
1683
|
signing_key:
|
|
1685
1684
|
specification_version: 4
|
|
1686
1685
|
summary: Gettext is a pure Ruby libary and tools to localize messages.
|
|
1687
1686
|
test_files:
|
|
1688
|
-
- test/
|
|
1689
|
-
- test/test_parser.rb
|
|
1690
|
-
- test/test_class_info.rb
|
|
1687
|
+
- test/test_mo.rb
|
|
1691
1688
|
- test/test_text_domain_toplevel.rb
|
|
1689
|
+
- test/test_locale_path.rb
|
|
1690
|
+
- test/test_text_domain_bind.rb
|
|
1692
1691
|
- test/test_po_entry.rb
|
|
1693
|
-
- test/
|
|
1694
|
-
- test/test_mo.rb
|
|
1695
|
-
- test/test_string.rb
|
|
1692
|
+
- test/test_po_parser.rb
|
|
1696
1693
|
- test/test_po.rb
|
|
1694
|
+
- test/test_string.rb
|
|
1697
1695
|
- test/test_gettext.rb
|
|
1698
|
-
- test/
|
|
1699
|
-
- test/
|
|
1696
|
+
- test/test_text_domain.rb
|
|
1697
|
+
- test/test_parser.rb
|
|
1700
1698
|
- test/test_text_domain_multi.rb
|
|
1701
|
-
- test/
|
|
1699
|
+
- test/test_thread.rb
|
|
1700
|
+
- test/test_class_info.rb
|