gettext 3.3.3 → 3.3.4
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 +16 -10
- data/lib/gettext/version.rb +1 -1
- data/po/gettext.pot +3 -3
- data/test/fixtures/ruby/percent_I.rb +1 -0
- data/test/fixtures/ruby/percent_W.rb +1 -0
- data/test/fixtures/ruby/percent_i.rb +1 -0
- data/test/fixtures/ruby/percent_w.rb +1 -0
- data/test/tools/parser/test_ruby.rb +27 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2042428f38c26ad37b232abdd52d2450339e52fa476c129dd31ffd58ee7e7c8f
|
4
|
+
data.tar.gz: e7de1e426ce9699a0f8cc7e0fa7a1a9e4df9cc05af35b32911bb690dc2eeeac0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcff65fd44de8574479c1d8d12d7d32c0b2fbb703516656f5ceadf57e3a6c7ceaa23985a1ad069db8fff222e53c3bd37333d1410c7e5c6d1398f2276e5300b8d
|
7
|
+
data.tar.gz: a653287bf1ca9b1361bc5e9aacb1bee26175d51a061d963915db161f80c38af2984bedb3757767d543e2f2c2e71dff5d6a30014a133fef38cde833985b478abc
|
data/doc/text/news.md
CHANGED
@@ -203,18 +203,18 @@ module GetText
|
|
203
203
|
po
|
204
204
|
end
|
205
205
|
|
206
|
-
def process_on_embexpr_beg(token, po)
|
207
|
-
@current_po_entry = nil
|
208
|
-
@current_po_entry_nth_attribute = 0
|
209
|
-
po
|
210
|
-
end
|
211
|
-
|
212
206
|
def process_on_regexp_end(token, po)
|
213
207
|
@string_mark_stack.pop
|
214
208
|
@string_stack.pop
|
215
209
|
po
|
216
210
|
end
|
217
211
|
|
212
|
+
def process_on_embexpr_beg(token, po)
|
213
|
+
@current_po_entry = nil
|
214
|
+
@current_po_entry_nth_attribute = 0
|
215
|
+
po
|
216
|
+
end
|
217
|
+
|
218
218
|
def process_on_int(token, po)
|
219
219
|
@ignore_next_comma = true
|
220
220
|
po
|
@@ -247,14 +247,14 @@ module GetText
|
|
247
247
|
po
|
248
248
|
end
|
249
249
|
|
250
|
-
def
|
251
|
-
@string_mark_stack << "
|
250
|
+
def process_on_backtick(token, po)
|
251
|
+
@string_mark_stack << "`"
|
252
252
|
@string_stack << ""
|
253
253
|
po
|
254
254
|
end
|
255
255
|
|
256
|
-
def
|
257
|
-
@string_mark_stack << "
|
256
|
+
def process_on_symbols_beg(token, po)
|
257
|
+
@string_mark_stack << "\""
|
258
258
|
@string_stack << ""
|
259
259
|
po
|
260
260
|
end
|
@@ -265,6 +265,12 @@ module GetText
|
|
265
265
|
po
|
266
266
|
end
|
267
267
|
|
268
|
+
def process_on_words_beg(token, po)
|
269
|
+
@string_mark_stack << "\""
|
270
|
+
@string_stack << ""
|
271
|
+
po
|
272
|
+
end
|
273
|
+
|
268
274
|
def process_on_qwords_beg(token, po)
|
269
275
|
@string_mark_stack << token
|
270
276
|
@string_stack << ""
|
data/lib/gettext/version.rb
CHANGED
data/po/gettext.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 3.3.
|
9
|
+
"Project-Id-Version: gettext 3.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2020-02-
|
12
|
-
"PO-Revision-Date: 2020-02-
|
11
|
+
"POT-Creation-Date: 2020-02-12 14:09+0900\n"
|
12
|
+
"PO-Revision-Date: 2020-02-12 14:09+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 @@
|
|
1
|
+
%I(hello world)
|
@@ -0,0 +1 @@
|
|
1
|
+
%W(Hello World)
|
@@ -0,0 +1 @@
|
|
1
|
+
%i(hello world)
|
@@ -0,0 +1 @@
|
|
1
|
+
%w(Hello World)
|
@@ -266,4 +266,31 @@ class TestRubyParser < Test::Unit::TestCase
|
|
266
266
|
super("ns_", *components)
|
267
267
|
end
|
268
268
|
end
|
269
|
+
|
270
|
+
sub_test_case("parse") do
|
271
|
+
def test_percent_w
|
272
|
+
assert_parse([],
|
273
|
+
"percent_w.rb")
|
274
|
+
end
|
275
|
+
|
276
|
+
def test_percent_W
|
277
|
+
assert_parse([],
|
278
|
+
"percent_W.rb")
|
279
|
+
end
|
280
|
+
|
281
|
+
def test_percent_i
|
282
|
+
assert_parse([],
|
283
|
+
"percent_i.rb")
|
284
|
+
end
|
285
|
+
|
286
|
+
def test_percent_I
|
287
|
+
assert_parse([],
|
288
|
+
"percent_I.rb")
|
289
|
+
end
|
290
|
+
|
291
|
+
private
|
292
|
+
def fixture_path(*components)
|
293
|
+
super("ruby", *components)
|
294
|
+
end
|
295
|
+
end
|
269
296
|
end
|
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.4
|
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-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: locale
|
@@ -1541,6 +1541,10 @@ files:
|
|
1541
1541
|
- test/fixtures/ns_.rb
|
1542
1542
|
- test/fixtures/ns_/custom.rb
|
1543
1543
|
- test/fixtures/p_.rb
|
1544
|
+
- test/fixtures/ruby/percent_I.rb
|
1545
|
+
- test/fixtures/ruby/percent_W.rb
|
1546
|
+
- test/fixtures/ruby/percent_i.rb
|
1547
|
+
- test/fixtures/ruby/percent_w.rb
|
1544
1548
|
- test/fixtures/s_.rb
|
1545
1549
|
- test/fixtures/s_/custom.rb
|
1546
1550
|
- test/fixtures/simple.rb
|