gettext 3.4.9 → 3.5.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/doc/text/news.md +6 -0
- data/lib/gettext/tools/msginit.rb +2 -2
- data/lib/gettext/tools/parser/ruby.rb +13 -13
- data/lib/gettext/version.rb +2 -2
- data/po/gettext.pot +3 -3
- data/test/tools/test_msginit.rb +9 -7
- metadata +4 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c98f2480f4c1bb4957ff7fc29f8a37d7c444217a40ea853a1bc3cf585fee4215
|
4
|
+
data.tar.gz: f70da1d0e9365abb49e896bcc85aa90456b9abfc86590d11c92d5ccc213c7acb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef94936fb44a48b6569d899b8d3382073e49a2167b0b9ff906e26c8bf9cb8c4ff02869c742f453cd5ea5d33ccd4395b806385518b3422e7e7a9c4d6ed9894ee9
|
7
|
+
data.tar.gz: 5a53a44f5b8d637ee5f9f3ed816c14db49afdfaaeb53c24976e4c6cdeeee91221c9c5dd3312ae8c2a5fab283196ebcc2f9e0b7be791ec9f04c2a894e29a6c900
|
data/doc/text/news.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
3
|
# Copyright (C) 2012 Haruka Yoshihara <yoshihara@clear-code.com>
|
4
|
-
# Copyright (C) 2012-
|
4
|
+
# Copyright (C) 2012-2024 Sutou Kouhei <kou@clear-code.com>
|
5
5
|
#
|
6
6
|
# License: Ruby's or LGPL
|
7
7
|
#
|
@@ -416,7 +416,7 @@ module GetText
|
|
416
416
|
n_plurals += 1
|
417
417
|
conditions << condition
|
418
418
|
end
|
419
|
-
expression = ""
|
419
|
+
expression = +""
|
420
420
|
case conditions.size
|
421
421
|
when 0
|
422
422
|
expression << "0"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
parser/ruby.rb - parser for ruby script
|
3
3
|
|
4
|
-
Copyright (C) 2013-
|
4
|
+
Copyright (C) 2013-2024 Sutou Kouhei <kou@clear-code.com>
|
5
5
|
Copyright (C) 2003-2009 Masao Mutoh
|
6
6
|
Copyright (C) 2005 speakillof
|
7
7
|
Copyright (C) 2001,2002 Yasushi Shoji, Masao Mutoh
|
@@ -36,7 +36,7 @@ module GetText
|
|
36
36
|
@current_po_entry_nth_attribute = 0
|
37
37
|
@use_comment = false
|
38
38
|
@comment_tag = nil
|
39
|
-
@last_comment = ""
|
39
|
+
@last_comment = +""
|
40
40
|
@reset_comment = false
|
41
41
|
@string_mark_stack = []
|
42
42
|
@string_stack = []
|
@@ -86,7 +86,7 @@ module GetText
|
|
86
86
|
end
|
87
87
|
if @current_po_entry
|
88
88
|
@current_po_entry.add_comment(@last_comment) unless @last_comment.empty?
|
89
|
-
@last_comment = ""
|
89
|
+
@last_comment = +""
|
90
90
|
@current_po_entry.references << "#{filename}:#{lineno}"
|
91
91
|
@current_po_entry_nth_attribute = 0
|
92
92
|
end
|
@@ -104,7 +104,7 @@ module GetText
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def process_on_comment(token, po)
|
107
|
-
@last_comment = "" if @reset_comment
|
107
|
+
@last_comment = +"" if @reset_comment
|
108
108
|
@reset_comment = false
|
109
109
|
if @last_comment.empty?
|
110
110
|
content = token.gsub(/\A#\s*/, "").chomp
|
@@ -133,7 +133,7 @@ module GetText
|
|
133
133
|
else
|
134
134
|
@string_mark_stack << token
|
135
135
|
end
|
136
|
-
@string_stack << ""
|
136
|
+
@string_stack << +""
|
137
137
|
po
|
138
138
|
end
|
139
139
|
|
@@ -192,7 +192,7 @@ module GetText
|
|
192
192
|
else
|
193
193
|
@string_mark_stack << "\""
|
194
194
|
end
|
195
|
-
@string_stack << ""
|
195
|
+
@string_stack << +""
|
196
196
|
po
|
197
197
|
end
|
198
198
|
|
@@ -202,7 +202,7 @@ module GetText
|
|
202
202
|
|
203
203
|
def process_on_regexp_beg(token, po)
|
204
204
|
@string_mark_stack << "\""
|
205
|
-
@string_stack << ""
|
205
|
+
@string_stack << +""
|
206
206
|
po
|
207
207
|
end
|
208
208
|
|
@@ -245,38 +245,38 @@ module GetText
|
|
245
245
|
def process_on_symbeg(token, po)
|
246
246
|
if token.start_with?("%s") or [":'", ":\""].include?(token)
|
247
247
|
@string_mark_stack << ":"
|
248
|
-
@string_stack << ""
|
248
|
+
@string_stack << +""
|
249
249
|
end
|
250
250
|
po
|
251
251
|
end
|
252
252
|
|
253
253
|
def process_on_backtick(token, po)
|
254
254
|
@string_mark_stack << "`"
|
255
|
-
@string_stack << ""
|
255
|
+
@string_stack << +""
|
256
256
|
po
|
257
257
|
end
|
258
258
|
|
259
259
|
def process_on_symbols_beg(token, po)
|
260
260
|
@string_mark_stack << "\""
|
261
|
-
@string_stack << ""
|
261
|
+
@string_stack << +""
|
262
262
|
po
|
263
263
|
end
|
264
264
|
|
265
265
|
def process_on_qsymbols_beg(token, po)
|
266
266
|
@string_mark_stack << token
|
267
|
-
@string_stack << ""
|
267
|
+
@string_stack << +""
|
268
268
|
po
|
269
269
|
end
|
270
270
|
|
271
271
|
def process_on_words_beg(token, po)
|
272
272
|
@string_mark_stack << "\""
|
273
|
-
@string_stack << ""
|
273
|
+
@string_stack << +""
|
274
274
|
po
|
275
275
|
end
|
276
276
|
|
277
277
|
def process_on_qwords_beg(token, po)
|
278
278
|
@string_mark_stack << token
|
279
|
-
@string_stack << ""
|
279
|
+
@string_stack << +""
|
280
280
|
po
|
281
281
|
end
|
282
282
|
|
data/lib/gettext/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
version - version information of gettext
|
3
3
|
|
4
|
-
Copyright (C) 2012-
|
4
|
+
Copyright (C) 2012-2024 Sutou Kouhei <kou@clear-code.com>
|
5
5
|
Copyright (C) 2005-2009 Masao Mutoh
|
6
6
|
|
7
7
|
You may redistribute it and/or modify it under the same
|
@@ -9,5 +9,5 @@
|
|
9
9
|
=end
|
10
10
|
|
11
11
|
module GetText
|
12
|
-
VERSION = "3.
|
12
|
+
VERSION = "3.5.0"
|
13
13
|
end
|
data/po/gettext.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 3.
|
9
|
+
"Project-Id-Version: gettext 3.5.0\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
11
|
+
"POT-Creation-Date: 2024-12-04 17:02+0900\n"
|
12
|
+
"PO-Revision-Date: 2024-12-04 17:02+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/tools/test_msginit.rb
CHANGED
@@ -32,12 +32,10 @@ class TestToolsMsgInit < Test::Unit::TestCase
|
|
32
32
|
stub(@msginit).revision_date {@po_revision_date}
|
33
33
|
|
34
34
|
Locale.current = "ja_JP.UTF-8"
|
35
|
-
end
|
36
35
|
|
37
|
-
def run(*args, &blcok)
|
38
36
|
Dir.mktmpdir do |dir|
|
39
37
|
Dir.chdir(dir) do
|
40
|
-
|
38
|
+
yield
|
41
39
|
end
|
42
40
|
end
|
43
41
|
end
|
@@ -171,9 +169,11 @@ EOF
|
|
171
169
|
|
172
170
|
class TestOutput < self
|
173
171
|
def setup
|
174
|
-
super
|
175
|
-
|
176
|
-
|
172
|
+
super do
|
173
|
+
@pot_file_path = "test.pot"
|
174
|
+
create_pot_file(@pot_file_path)
|
175
|
+
yield
|
176
|
+
end
|
177
177
|
end
|
178
178
|
|
179
179
|
def test_default
|
@@ -313,8 +313,10 @@ EOF
|
|
313
313
|
|
314
314
|
class TestPluralForms < self
|
315
315
|
def setup
|
316
|
-
super
|
317
316
|
omit("Red Datasets is required") unless defined?(Datasets::CLDRPlurals)
|
317
|
+
super do
|
318
|
+
yield
|
319
|
+
end
|
318
320
|
end
|
319
321
|
|
320
322
|
def run_msginit(pot_header_options={})
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gettext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
|
+
original_platform: ''
|
6
7
|
authors:
|
7
8
|
- Kouhei Sutou
|
8
9
|
- Masao Mutoh
|
9
|
-
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-12-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: erubi
|
@@ -1713,7 +1713,6 @@ licenses:
|
|
1713
1713
|
- Ruby
|
1714
1714
|
- LGPL-3.0+
|
1715
1715
|
metadata: {}
|
1716
|
-
post_install_message:
|
1717
1716
|
rdoc_options: []
|
1718
1717
|
require_paths:
|
1719
1718
|
- lib
|
@@ -1728,8 +1727,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1728
1727
|
- !ruby/object:Gem::Version
|
1729
1728
|
version: '0'
|
1730
1729
|
requirements: []
|
1731
|
-
rubygems_version: 3.
|
1732
|
-
signing_key:
|
1730
|
+
rubygems_version: 3.6.0.dev
|
1733
1731
|
specification_version: 4
|
1734
1732
|
summary: Gettext is a pure Ruby libary and tools to localize messages.
|
1735
1733
|
test_files:
|