gettext 3.3.4 → 3.3.5
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/doc/text/news.md +11 -0
- data/lib/gettext/tools/parser/ruby.rb +32 -17
- data/lib/gettext/version.rb +1 -1
- data/po/bg/gettext.edit.po +5 -5
- data/po/bg/gettext.po +3 -3
- data/po/bs/gettext.edit.po +5 -5
- data/po/bs/gettext.po +3 -3
- data/po/ca/gettext.edit.po +5 -5
- data/po/ca/gettext.po +3 -3
- data/po/cs/gettext.edit.po +5 -5
- data/po/cs/gettext.po +3 -3
- data/po/de/gettext.edit.po +5 -5
- data/po/de/gettext.po +3 -3
- data/po/el/gettext.edit.po +5 -5
- data/po/el/gettext.po +3 -3
- data/po/eo/gettext.edit.po +5 -5
- data/po/eo/gettext.po +3 -3
- data/po/es/gettext.edit.po +5 -5
- data/po/es/gettext.po +3 -3
- data/po/et/gettext.edit.po +5 -5
- data/po/et/gettext.po +3 -3
- data/po/fr/gettext.edit.po +5 -5
- data/po/fr/gettext.po +3 -3
- data/po/gettext.pot +8 -8
- data/po/hr/gettext.edit.po +5 -5
- data/po/hr/gettext.po +3 -3
- data/po/hu/gettext.edit.po +5 -5
- data/po/hu/gettext.po +3 -3
- data/po/it/gettext.edit.po +5 -5
- data/po/it/gettext.po +3 -3
- data/po/ja/gettext.edit.po +5 -5
- data/po/ja/gettext.po +3 -3
- data/po/ko/gettext.edit.po +5 -5
- data/po/ko/gettext.po +3 -3
- data/po/lv/gettext.edit.po +5 -5
- data/po/lv/gettext.po +3 -3
- data/po/nb/gettext.edit.po +5 -5
- data/po/nb/gettext.po +3 -3
- data/po/nl/gettext.edit.po +5 -5
- data/po/nl/gettext.po +3 -3
- data/po/pt_BR/gettext.edit.po +5 -5
- data/po/pt_BR/gettext.po +3 -3
- data/po/ru/gettext.edit.po +5 -5
- data/po/ru/gettext.po +3 -3
- data/po/sr/gettext.edit.po +5 -5
- data/po/sr/gettext.po +3 -3
- data/po/sv/gettext.edit.po +5 -5
- data/po/sv/gettext.po +3 -3
- data/po/uk/gettext.edit.po +5 -5
- data/po/uk/gettext.po +3 -3
- data/po/vi/gettext.edit.po +5 -5
- data/po/vi/gettext.po +3 -3
- data/po/zh/gettext.edit.po +5 -5
- data/po/zh/gettext.po +3 -3
- data/po/zh_TW/gettext.edit.po +5 -5
- data/po/zh_TW/gettext.po +3 -3
- data/test/fixtures/_/pipe.rb +32 -0
- data/test/tools/parser/test_ruby.rb +15 -0
- metadata +3 -2
data/po/vi/gettext.po
CHANGED
@@ -464,6 +464,9 @@ msgstr ""
|
|
464
464
|
msgid "in_string_array"
|
465
465
|
msgstr ""
|
466
466
|
|
467
|
+
msgid "Hello"
|
468
|
+
msgstr ""
|
469
|
+
|
467
470
|
msgid "You should escape '\\' as '\\\\'."
|
468
471
|
msgstr ""
|
469
472
|
|
@@ -490,9 +493,6 @@ msgstr ""
|
|
490
493
|
msgid "duplicated"
|
491
494
|
msgstr ""
|
492
495
|
|
493
|
-
msgid "Hello"
|
494
|
-
msgstr ""
|
495
|
-
|
496
496
|
msgid ""
|
497
497
|
"bbb\n"
|
498
498
|
msgid_plural ""
|
data/po/zh/gettext.edit.po
CHANGED
@@ -356,7 +356,7 @@ msgid ""
|
|
356
356
|
"Hello %{world}\n"
|
357
357
|
msgstr ""
|
358
358
|
|
359
|
-
#: ../samples/hello2.rb:20
|
359
|
+
#: ../samples/hello2.rb:20 ../test/fixtures/_/pipe.rb:28
|
360
360
|
msgid "World"
|
361
361
|
msgstr ""
|
362
362
|
|
@@ -567,6 +567,10 @@ msgstr ""
|
|
567
567
|
msgid "in_string_array"
|
568
568
|
msgstr ""
|
569
569
|
|
570
|
+
#: ../test/fixtures/_/pipe.rb:26 ../test/fixtures/hello.rb:26
|
571
|
+
msgid "Hello"
|
572
|
+
msgstr ""
|
573
|
+
|
570
574
|
#: ../test/fixtures/backslash.rb:27
|
571
575
|
msgid "You should escape '\\' as '\\\\'."
|
572
576
|
msgstr ""
|
@@ -600,10 +604,6 @@ msgstr ""
|
|
600
604
|
msgid "duplicated"
|
601
605
|
msgstr ""
|
602
606
|
|
603
|
-
#: ../test/fixtures/hello.rb:26
|
604
|
-
msgid "Hello"
|
605
|
-
msgstr ""
|
606
|
-
|
607
607
|
#: ../test/fixtures/lower_n_.rb:33
|
608
608
|
msgid ""
|
609
609
|
"bbb\n"
|
data/po/zh/gettext.po
CHANGED
@@ -466,6 +466,9 @@ msgstr ""
|
|
466
466
|
msgid "in_string_array"
|
467
467
|
msgstr ""
|
468
468
|
|
469
|
+
msgid "Hello"
|
470
|
+
msgstr ""
|
471
|
+
|
469
472
|
msgid "You should escape '\\' as '\\\\'."
|
470
473
|
msgstr ""
|
471
474
|
|
@@ -492,9 +495,6 @@ msgstr ""
|
|
492
495
|
msgid "duplicated"
|
493
496
|
msgstr ""
|
494
497
|
|
495
|
-
msgid "Hello"
|
496
|
-
msgstr ""
|
497
|
-
|
498
498
|
msgid ""
|
499
499
|
"bbb\n"
|
500
500
|
msgid_plural ""
|
data/po/zh_TW/gettext.edit.po
CHANGED
@@ -355,7 +355,7 @@ msgid ""
|
|
355
355
|
"Hello %{world}\n"
|
356
356
|
msgstr ""
|
357
357
|
|
358
|
-
#: ../samples/hello2.rb:20
|
358
|
+
#: ../samples/hello2.rb:20 ../test/fixtures/_/pipe.rb:28
|
359
359
|
msgid "World"
|
360
360
|
msgstr ""
|
361
361
|
|
@@ -566,6 +566,10 @@ msgstr ""
|
|
566
566
|
msgid "in_string_array"
|
567
567
|
msgstr ""
|
568
568
|
|
569
|
+
#: ../test/fixtures/_/pipe.rb:26 ../test/fixtures/hello.rb:26
|
570
|
+
msgid "Hello"
|
571
|
+
msgstr ""
|
572
|
+
|
569
573
|
#: ../test/fixtures/backslash.rb:27
|
570
574
|
msgid "You should escape '\\' as '\\\\'."
|
571
575
|
msgstr ""
|
@@ -599,10 +603,6 @@ msgstr ""
|
|
599
603
|
msgid "duplicated"
|
600
604
|
msgstr ""
|
601
605
|
|
602
|
-
#: ../test/fixtures/hello.rb:26
|
603
|
-
msgid "Hello"
|
604
|
-
msgstr ""
|
605
|
-
|
606
606
|
#: ../test/fixtures/lower_n_.rb:33
|
607
607
|
msgid ""
|
608
608
|
"bbb\n"
|
data/po/zh_TW/gettext.po
CHANGED
@@ -465,6 +465,9 @@ msgstr ""
|
|
465
465
|
msgid "in_string_array"
|
466
466
|
msgstr ""
|
467
467
|
|
468
|
+
msgid "Hello"
|
469
|
+
msgstr ""
|
470
|
+
|
468
471
|
msgid "You should escape '\\' as '\\\\'."
|
469
472
|
msgstr ""
|
470
473
|
|
@@ -491,9 +494,6 @@ msgstr ""
|
|
491
494
|
msgid "duplicated"
|
492
495
|
msgstr ""
|
493
496
|
|
494
|
-
msgid "Hello"
|
495
|
-
msgstr ""
|
496
|
-
|
497
497
|
msgid ""
|
498
498
|
"bbb\n"
|
499
499
|
msgid_plural ""
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Copyright (C) 2020 Sutou Kouhei <kou@clear-code.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 Pipe
|
21
|
+
include GetText
|
22
|
+
|
23
|
+
bindtextdomain("_", :path => Helper::Path.locale_path)
|
24
|
+
|
25
|
+
def binary_pipe
|
26
|
+
_("Hello")
|
27
|
+
1 | 2
|
28
|
+
_("World")
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -222,6 +222,21 @@ class TestRubyParser < Test::Unit::TestCase
|
|
222
222
|
path)
|
223
223
|
end
|
224
224
|
|
225
|
+
def test_pipe
|
226
|
+
path = "pipe.rb"
|
227
|
+
assert_parse([
|
228
|
+
{
|
229
|
+
:msgid => "Hello",
|
230
|
+
:references => ["#{path}:26"],
|
231
|
+
},
|
232
|
+
{
|
233
|
+
:msgid => "World",
|
234
|
+
:references => ["#{path}:28"],
|
235
|
+
},
|
236
|
+
],
|
237
|
+
path)
|
238
|
+
end
|
239
|
+
|
225
240
|
private
|
226
241
|
def fixture_path(*components)
|
227
242
|
super("_", *components)
|
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.3.
|
4
|
+
version: 3.3.5
|
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: 2020-02-
|
12
|
+
date: 2020-02-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: locale
|
@@ -1526,6 +1526,7 @@ files:
|
|
1526
1526
|
- test/fixtures/_/one_line.rb
|
1527
1527
|
- test/fixtures/_/one_new_line.rb
|
1528
1528
|
- test/fixtures/_/percent_strings.rb
|
1529
|
+
- test/fixtures/_/pipe.rb
|
1529
1530
|
- test/fixtures/_/quoted_symbol.rb
|
1530
1531
|
- test/fixtures/backslash.rb
|
1531
1532
|
- test/fixtures/erb/ascii.rhtml
|