gettext 2.3.0 → 2.3.1
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.
- data/.yardopts +6 -0
- data/Rakefile +7 -6
- data/doc/text/news.md +51 -2
- data/gettext.gemspec +1 -0
- data/lib/gettext/runtime/locale_path.rb +0 -1
- data/lib/gettext/runtime/mofile.rb +8 -2
- data/lib/gettext/runtime/textdomain.rb +19 -21
- data/lib/gettext/runtime/textdomain_manager.rb +0 -1
- data/lib/gettext/tools/msginit.rb +19 -9
- data/lib/gettext/tools/msgmerge.rb +28 -15
- data/lib/gettext/tools/parser/erb.rb +25 -5
- data/lib/gettext/tools/parser/glade.rb +4 -3
- data/lib/gettext/tools/parser/ruby.rb +23 -5
- data/lib/gettext/tools/poparser.rb +2 -1
- data/lib/gettext/tools/xgettext.rb +187 -136
- data/lib/gettext/version.rb +1 -1
- data/po/ja/gettext.po +82 -41
- data/samples/cgi/locale/bg/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/bs/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/ca/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/cs/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/de/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/el/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/eo/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/es/LC_MESSAGES/main.mo +0 -0
- data/samples/po/hello.pot +3 -3
- data/samples/po/hello2.pot +3 -3
- data/samples/po/hello_glade2.pot +3 -3
- data/samples/po/hello_gtk2.pot +3 -3
- data/samples/po/hello_noop.pot +3 -3
- data/samples/po/hello_plural.pot +3 -3
- data/samples/po/hello_tk.pot +3 -3
- data/src/poparser.ry +1 -0
- data/test/fixtures/_.rb +4 -4
- data/test/fixtures/{erb.rhtml → erb/ascii.rhtml} +0 -0
- data/test/fixtures/{erb.rxml → erb/ascii.rxml} +0 -0
- data/test/fixtures/erb/non_ascii.rhtml +13 -0
- data/test/fixtures/untranslated.rb +12 -0
- data/test/gettext-test-utils.rb +23 -0
- data/test/locale/ja/LC_MESSAGES/untranslated.mo +0 -0
- data/test/parser/test_ruby.rb +48 -1
- data/test/po/_.pot +4 -4
- data/test/po/ascii.pot +23 -0
- data/test/po/backslash.pot +3 -3
- data/test/po/ja/untranslated.po +22 -0
- data/test/po/no_exist_msgid.pot +20 -0
- data/test/po/non_ascii.pot +3 -3
- data/test/po/not_existed_msgid.pot +20 -0
- data/test/po/np_.pot +3 -3
- data/test/po/ns_.pot +3 -3
- data/test/po/p_.pot +3 -3
- data/test/po/s_.pot +3 -3
- data/test/po/untranslated.pot +23 -0
- data/test/run-test.rb +1 -1
- data/test/test_gettext.rb +2 -2
- data/test/test_mofile.rb +10 -0
- data/test/test_parser.rb +45 -19
- data/test/test_po_parser.rb +14 -1
- data/test/tools/test_msginit.rb +52 -36
- data/test/tools/test_msgmerge.rb +44 -6
- data/test/tools/test_xgettext.rb +203 -5
- metadata +143 -146
- data/po/de/gettext.po +0 -668
- data/po/de/gettext.po.bak +0 -589
- data/po/el/gettext.po +0 -571
- data/po/fr/gettext.po +0 -589
- data/po/gettext.pot +0 -638
- data/po/gettext.pot~ +0 -638
- data/po/it/gettext.po +0 -589
- data/po/uk/gettext.po +0 -571
- data/test/locale/ja/LC_MESSAGES/npgettext.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/nsgettext.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/pgettext.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/sgettext.mo +0 -0
data/test/tools/test_xgettext.rb
CHANGED
@@ -18,6 +18,8 @@
|
|
18
18
|
# You should have received a copy of the GNU Lesser General Public License
|
19
19
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
20
20
|
|
21
|
+
require "iconv"
|
22
|
+
require "locale"
|
21
23
|
require "gettext/tools/xgettext"
|
22
24
|
|
23
25
|
class TestToolsXGetText < Test::Unit::TestCase
|
@@ -36,8 +38,10 @@ class TestToolsXGetText < Test::Unit::TestCase
|
|
36
38
|
def setup_paths
|
37
39
|
@rb_file_path = File.join(@tmpdir, "lib", "xgettext.rb")
|
38
40
|
@pot_file_path = File.join(@tmpdir, "po", "xgettext.pot")
|
41
|
+
@rhtml_file_path = File.join(@tmpdir, "templates", "xgettext.rhtml")
|
39
42
|
FileUtils.mkdir_p(File.dirname(@rb_file_path))
|
40
43
|
FileUtils.mkdir_p(File.dirname(@pot_file_path))
|
44
|
+
FileUtils.mkdir_p(File.dirname(@rhtml_file_path))
|
41
45
|
end
|
42
46
|
|
43
47
|
def test_relative_source
|
@@ -57,10 +61,81 @@ msgstr ""
|
|
57
61
|
EOP
|
58
62
|
end
|
59
63
|
|
64
|
+
class TestEncoding < self
|
65
|
+
def test_different_encoding_from_current_locale
|
66
|
+
need_encoding
|
67
|
+
|
68
|
+
rhtml = <<-EOR
|
69
|
+
<%#-*- coding: sjis -*-%>
|
70
|
+
<html>
|
71
|
+
<head>
|
72
|
+
<title></title>
|
73
|
+
</head>
|
74
|
+
<body>
|
75
|
+
<h1><%= _("わたし") %></h1>
|
76
|
+
</body>
|
77
|
+
</html>
|
78
|
+
EOR
|
79
|
+
File.open(@rhtml_file_path, "w") do |rhtml_file|
|
80
|
+
rhtml_file.puts(encode(rhtml, "sjis"))
|
81
|
+
end
|
82
|
+
|
83
|
+
@xgettext.run("--output", @pot_file_path, @rhtml_file_path)
|
84
|
+
|
85
|
+
encoding = "UTF-8"
|
86
|
+
pot_content = File.read(@pot_file_path)
|
87
|
+
set_encoding(pot_content, encoding)
|
88
|
+
expected_content = <<-EOP
|
89
|
+
#{header}
|
90
|
+
#: ../templates/xgettext.rhtml:7
|
91
|
+
msgid "わたし"
|
92
|
+
msgstr ""
|
93
|
+
EOP
|
94
|
+
expected_content = encode(expected_content, encoding)
|
95
|
+
assert_equal(expected_content, pot_content)
|
96
|
+
end
|
97
|
+
|
98
|
+
def test_multiple_encodings
|
99
|
+
need_encoding
|
100
|
+
|
101
|
+
File.open(@rb_file_path, "w") do |rb_file|
|
102
|
+
rb_file.puts(encode(<<-EOR, "euc-jp"))
|
103
|
+
# -*- coding: euc-jp -*-
|
104
|
+
_("こんにちは")
|
105
|
+
EOR
|
106
|
+
end
|
107
|
+
|
108
|
+
File.open(@rhtml_file_path, "w") do |rhtml_file|
|
109
|
+
rhtml_file.puts(encode(<<-EOR, "cp932"))
|
110
|
+
<%# -*- coding: cp932 -*-%>
|
111
|
+
<h1><%= _("わたし") %></h1>
|
112
|
+
EOR
|
113
|
+
end
|
114
|
+
|
115
|
+
@xgettext.run("--output", @pot_file_path, @rb_file_path, @rhtml_file_path)
|
116
|
+
|
117
|
+
encoding = "UTF-8"
|
118
|
+
pot_content = File.read(@pot_file_path)
|
119
|
+
set_encoding(pot_content, encoding)
|
120
|
+
expected_content = <<-EOP
|
121
|
+
#{header}
|
122
|
+
#: ../lib/xgettext.rb:2
|
123
|
+
msgid "こんにちは"
|
124
|
+
msgstr ""
|
125
|
+
|
126
|
+
#: ../templates/xgettext.rhtml:2
|
127
|
+
msgid "わたし"
|
128
|
+
msgstr ""
|
129
|
+
EOP
|
130
|
+
expected_content = encode(expected_content, encoding)
|
131
|
+
assert_equal(expected_content, pot_content)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
60
135
|
class TestCommandLineOption < self
|
61
136
|
def test_package_name
|
62
137
|
File.open(@rb_file_path, "w") do |rb_file|
|
63
|
-
rb_file.puts(
|
138
|
+
rb_file.puts(":hello")
|
64
139
|
end
|
65
140
|
|
66
141
|
package_name = "test-package"
|
@@ -75,7 +150,7 @@ EOP
|
|
75
150
|
|
76
151
|
def test_package_version
|
77
152
|
File.open(@rb_file_path, "w") do |rb_file|
|
78
|
-
rb_file.puts(
|
153
|
+
rb_file.puts(":hello")
|
79
154
|
end
|
80
155
|
|
81
156
|
package_version = "1.2.3"
|
@@ -90,7 +165,7 @@ EOP
|
|
90
165
|
|
91
166
|
def test_report_msgid_bugs_to
|
92
167
|
File.open(@rb_file_path, "w") do |rb_file|
|
93
|
-
rb_file.puts(
|
168
|
+
rb_file.puts(":hello")
|
94
169
|
end
|
95
170
|
|
96
171
|
msgid_bugs_address = "me@example.com"
|
@@ -105,7 +180,7 @@ EOP
|
|
105
180
|
|
106
181
|
def test_copyright_holder
|
107
182
|
File.open(@rb_file_path, "w") do |rb_file|
|
108
|
-
rb_file.puts(
|
183
|
+
rb_file.puts(":hello")
|
109
184
|
end
|
110
185
|
|
111
186
|
copyright_holder = "me"
|
@@ -117,6 +192,128 @@ EOP
|
|
117
192
|
expected_header = "#{header(options)}\n"
|
118
193
|
assert_equal(expected_header, File.read(@pot_file_path))
|
119
194
|
end
|
195
|
+
|
196
|
+
def test_to_code
|
197
|
+
need_encoding
|
198
|
+
|
199
|
+
File.open(@rb_file_path, "w") do |rb_file|
|
200
|
+
rb_file.puts(<<-EOR)
|
201
|
+
# -*- coding: utf-8 -*-
|
202
|
+
|
203
|
+
_("わたし")
|
204
|
+
EOR
|
205
|
+
end
|
206
|
+
|
207
|
+
output_encoding = "EUC-JP"
|
208
|
+
@xgettext.run("--output", @pot_file_path,
|
209
|
+
"--output-encoding", output_encoding,
|
210
|
+
@rb_file_path)
|
211
|
+
|
212
|
+
actual_pot = File.read(@pot_file_path)
|
213
|
+
set_encoding(actual_pot, output_encoding)
|
214
|
+
|
215
|
+
options = {:to_code => output_encoding}
|
216
|
+
expected_pot = <<-EOP
|
217
|
+
#{header(options)}
|
218
|
+
#: ../lib/xgettext.rb:3
|
219
|
+
msgid "わたし"
|
220
|
+
msgstr ""
|
221
|
+
EOP
|
222
|
+
expected_pot = encode(expected_pot, output_encoding)
|
223
|
+
|
224
|
+
assert_equal(expected_pot, actual_pot)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
class TestAddParser < self
|
229
|
+
setup
|
230
|
+
def setup_default_parsers
|
231
|
+
@default_parsers = default_parsers.dup
|
232
|
+
end
|
233
|
+
|
234
|
+
teardown
|
235
|
+
def teardown_default_parsers
|
236
|
+
default_parsers.replace(@default_parsers)
|
237
|
+
end
|
238
|
+
|
239
|
+
def test_class_method
|
240
|
+
GetText::Tools::XGetText.add_parser(mock_html_parser)
|
241
|
+
xgettext = GetText::Tools::XGetText.new
|
242
|
+
xgettext.parse(["index.html"])
|
243
|
+
end
|
244
|
+
|
245
|
+
def test_instance_method
|
246
|
+
@xgettext.add_parser(mock_html_parser)
|
247
|
+
@xgettext.parse(["index.html"])
|
248
|
+
end
|
249
|
+
|
250
|
+
private
|
251
|
+
def default_parsers
|
252
|
+
GetText::Tools::XGetText.module_eval("@@default_parsers")
|
253
|
+
end
|
254
|
+
|
255
|
+
def mock_html_parser
|
256
|
+
html_parser = Object.new
|
257
|
+
mock(html_parser).target?("index.html") {true}
|
258
|
+
mock(html_parser).parse("index.html") {[]}
|
259
|
+
html_parser
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
class TestRGetText < self
|
264
|
+
def setup
|
265
|
+
@now = Time.now
|
266
|
+
@warning_message = "Warning: This method is obsolete. " +
|
267
|
+
"Please use GetText::Tools::XGetText.run."
|
268
|
+
end
|
269
|
+
|
270
|
+
def test_warning
|
271
|
+
mock(GetText::RGetText).warn(@warning_message) {}
|
272
|
+
|
273
|
+
File.open(@rb_file_path, "w") do |rb_file|
|
274
|
+
end
|
275
|
+
GetText::RGetText.run(@rb_file_path, @pot_file_path)
|
276
|
+
end
|
277
|
+
|
278
|
+
class TestArguments < self
|
279
|
+
def test_input_file_and_output_file
|
280
|
+
stub(GetText::RGetText).warn(@warning_message) {}
|
281
|
+
|
282
|
+
File.open(@rb_file_path, "w") do |rb_file|
|
283
|
+
rb_file.puts(<<-EOR)
|
284
|
+
_("Hello")
|
285
|
+
EOR
|
286
|
+
end
|
287
|
+
GetText::RGetText.run(@rb_file_path, @pot_file_path)
|
288
|
+
|
289
|
+
assert_equal(expected_pot_content, File.read(@pot_file_path))
|
290
|
+
end
|
291
|
+
|
292
|
+
def test_argv
|
293
|
+
stub(GetText::RGetText).warn(@warning_message) {}
|
294
|
+
|
295
|
+
File.open(@rb_file_path, "w") do |rb_file|
|
296
|
+
rb_file.puts(<<-EOR)
|
297
|
+
_("Hello")
|
298
|
+
EOR
|
299
|
+
end
|
300
|
+
|
301
|
+
ARGV.replace([@rb_file_path, "--output", @pot_file_path])
|
302
|
+
GetText::RGetText.run
|
303
|
+
|
304
|
+
assert_equal(expected_pot_content, File.read(@pot_file_path))
|
305
|
+
end
|
306
|
+
|
307
|
+
private
|
308
|
+
def expected_pot_content
|
309
|
+
<<-EOP
|
310
|
+
#{header}
|
311
|
+
#: ../lib/xgettext.rb:1
|
312
|
+
msgid "Hello"
|
313
|
+
msgstr ""
|
314
|
+
EOP
|
315
|
+
end
|
316
|
+
end
|
120
317
|
end
|
121
318
|
|
122
319
|
private
|
@@ -127,6 +324,7 @@ EOP
|
|
127
324
|
msgid_bugs_address = options[:msgid_bugs_address] || ""
|
128
325
|
copyright_holder = options[:copyright_holder] ||
|
129
326
|
"THE PACKAGE'S COPYRIGHT HOLDER"
|
327
|
+
output_encoding = options[:to_code] || "UTF-8"
|
130
328
|
|
131
329
|
time = @now.strftime("%Y-%m-%d %H:%M%z")
|
132
330
|
<<-"EOH"
|
@@ -146,7 +344,7 @@ msgstr ""
|
|
146
344
|
"Language-Team: LANGUAGE <LL@li.org>\\n"
|
147
345
|
"Language: \\n"
|
148
346
|
"MIME-Version: 1.0\\n"
|
149
|
-
"Content-Type: text/plain; charset
|
347
|
+
"Content-Type: text/plain; charset=#{output_encoding}\\n"
|
150
348
|
"Content-Transfer-Encoding: 8bit\\n"
|
151
349
|
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\\n"
|
152
350
|
EOH
|
metadata
CHANGED
@@ -1,163 +1,154 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: gettext
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 3
|
9
|
+
- 1
|
10
|
+
version: 2.3.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Kouhei Sutou
|
9
14
|
- Masao Mutoh
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
+
|
19
|
+
date: 2012-09-13 00:00:00 +09:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
24
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
|
23
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
32
|
+
version_requirements: *id001
|
33
|
+
name: locale
|
24
34
|
prerelease: false
|
25
|
-
|
35
|
+
type: :runtime
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
26
38
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
46
|
+
version_requirements: *id002
|
32
47
|
name: rake
|
33
|
-
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
|
-
requirements:
|
36
|
-
- - ! '>='
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
version: '0'
|
39
|
-
type: :development
|
40
48
|
prerelease: false
|
41
|
-
|
49
|
+
type: :development
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
42
52
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
|
47
|
-
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
60
|
+
version_requirements: *id003
|
48
61
|
name: racc
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ! '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
type: :development
|
56
62
|
prerelease: false
|
57
|
-
|
63
|
+
type: :development
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
58
66
|
none: false
|
59
|
-
requirements:
|
60
|
-
- -
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
|
63
|
-
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
hash: 3
|
71
|
+
segments:
|
72
|
+
- 0
|
73
|
+
version: "0"
|
74
|
+
version_requirements: *id004
|
64
75
|
name: yard
|
65
|
-
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
|
-
requirements:
|
68
|
-
- - ! '>='
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '0'
|
71
|
-
type: :development
|
72
76
|
prerelease: false
|
73
|
-
|
77
|
+
type: :development
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
74
80
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
|
79
|
-
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
hash: 3
|
85
|
+
segments:
|
86
|
+
- 0
|
87
|
+
version: "0"
|
88
|
+
version_requirements: *id005
|
80
89
|
name: redcarpet
|
81
|
-
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
|
-
requirements:
|
84
|
-
- - ! '>='
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: '0'
|
87
|
-
type: :development
|
88
90
|
prerelease: false
|
89
|
-
|
91
|
+
type: :development
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
90
94
|
none: false
|
91
|
-
requirements:
|
92
|
-
- -
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
|
95
|
-
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
hash: 3
|
99
|
+
segments:
|
100
|
+
- 0
|
101
|
+
version: "0"
|
102
|
+
version_requirements: *id006
|
96
103
|
name: test-unit
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
|
-
requirements:
|
100
|
-
- - ! '>='
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '0'
|
103
|
-
type: :development
|
104
104
|
prerelease: false
|
105
|
-
|
105
|
+
type: :development
|
106
|
+
- !ruby/object:Gem::Dependency
|
107
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
106
108
|
none: false
|
107
|
-
requirements:
|
108
|
-
- -
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
|
111
|
-
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
hash: 3
|
113
|
+
segments:
|
114
|
+
- 0
|
115
|
+
version: "0"
|
116
|
+
version_requirements: *id007
|
112
117
|
name: test-unit-notify
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
|
-
requirements:
|
116
|
-
- - ! '>='
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
version: '0'
|
119
|
-
type: :development
|
120
118
|
prerelease: false
|
121
|
-
|
119
|
+
type: :development
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
122
122
|
none: false
|
123
|
-
requirements:
|
124
|
-
- -
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
|
127
|
-
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
hash: 3
|
127
|
+
segments:
|
128
|
+
- 0
|
129
|
+
version: "0"
|
130
|
+
version_requirements: *id008
|
128
131
|
name: test-unit-rr
|
129
|
-
requirement: !ruby/object:Gem::Requirement
|
130
|
-
none: false
|
131
|
-
requirements:
|
132
|
-
- - ! '>='
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version: '0'
|
135
|
-
type: :development
|
136
132
|
prerelease: false
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
- - ! '>='
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: '0'
|
143
|
-
description: ! 'Gettext is a GNU gettext-like program for Ruby.
|
144
|
-
|
133
|
+
type: :development
|
134
|
+
description: |
|
135
|
+
Gettext is a GNU gettext-like program for Ruby.
|
145
136
|
The catalog file(po-file) is same format with GNU gettext.
|
146
|
-
|
147
137
|
So you can use GNU gettext tools for maintaining.
|
148
138
|
|
149
|
-
|
150
|
-
email:
|
139
|
+
email:
|
151
140
|
- kou@clear-code.com
|
152
141
|
- mutomasa at gmail.com
|
153
|
-
executables:
|
142
|
+
executables:
|
154
143
|
- rmsginit
|
155
144
|
- rxgettext
|
156
145
|
- rmsgfmt
|
157
146
|
- rmsgmerge
|
158
147
|
extensions: []
|
148
|
+
|
159
149
|
extra_rdoc_files: []
|
160
|
-
|
150
|
+
|
151
|
+
files:
|
161
152
|
- bin/rmsginit
|
162
153
|
- bin/rxgettext
|
163
154
|
- bin/rmsgfmt
|
@@ -189,23 +180,15 @@ files:
|
|
189
180
|
- lib/gettext/runtime/textdomain_manager.rb
|
190
181
|
- lib/gettext/core_ext/iconv.rb
|
191
182
|
- lib/gettext/core_ext/string.rb
|
192
|
-
- po/gettext.pot
|
193
|
-
- po/de/gettext.po.bak
|
194
|
-
- po/de/gettext.po
|
195
183
|
- po/de/rgettext.po
|
196
|
-
- po/el/gettext.po
|
197
184
|
- po/el/rgettext.po
|
198
185
|
- po/rgettext.pot
|
199
|
-
- po/uk/gettext.po
|
200
186
|
- po/uk/rgettext.po
|
201
187
|
- po/sr/rgettext.po
|
202
|
-
- po/gettext.pot~
|
203
188
|
- po/zh/rgettext.po
|
204
|
-
- po/fr/gettext.po
|
205
189
|
- po/fr/rgettext.po
|
206
190
|
- po/sv/rgettext.po
|
207
191
|
- po/hr/rgettext.po
|
208
|
-
- po/it/gettext.po
|
209
192
|
- po/it/rgettext.po
|
210
193
|
- po/lv/rgettext.po
|
211
194
|
- po/ja/gettext.po
|
@@ -842,6 +825,7 @@ files:
|
|
842
825
|
- test/tools/test_tools.rb
|
843
826
|
- test/test_mofile.rb
|
844
827
|
- test/parser/test_ruby.rb
|
828
|
+
- test/po/not_existed_msgid.pot
|
845
829
|
- test/po/sl/plural.po
|
846
830
|
- test/po/ir/plural.po
|
847
831
|
- test/po/np_.pot
|
@@ -851,6 +835,7 @@ files:
|
|
851
835
|
- test/po/fr/plural.po
|
852
836
|
- test/po/fr/plural_error.po
|
853
837
|
- test/po/fr/test2.po
|
838
|
+
- test/po/ja/untranslated.po
|
854
839
|
- test/po/ja/_.po
|
855
840
|
- test/po/ja/test3.po
|
856
841
|
- test/po/ja/test1.po
|
@@ -867,10 +852,13 @@ files:
|
|
867
852
|
- test/po/li/plural.po
|
868
853
|
- test/po/li/plural_error.po
|
869
854
|
- test/po/_.pot
|
855
|
+
- test/po/untranslated.pot
|
870
856
|
- test/po/p_.pot
|
857
|
+
- test/po/ascii.pot
|
871
858
|
- test/po/da/plural.po
|
872
859
|
- test/po/da/plural_error.po
|
873
860
|
- test/po/po/plural.po
|
861
|
+
- test/po/no_exist_msgid.pot
|
874
862
|
- test/po/cr/plural.po
|
875
863
|
- test/po/la/plural.po
|
876
864
|
- test/po/la/plural_error.po
|
@@ -878,19 +866,21 @@ files:
|
|
878
866
|
- test/po/backslash.pot
|
879
867
|
- test/fixtures/gladeparser.glade
|
880
868
|
- test/fixtures/n_.rb
|
881
|
-
- test/fixtures/erb.rxml
|
882
869
|
- test/fixtures/s_/custom.rb
|
883
870
|
- test/fixtures/multi_textdomain.rb
|
884
871
|
- test/fixtures/np_.rb
|
885
872
|
- test/fixtures/_/one_line.rb
|
886
873
|
- test/fixtures/non_ascii.rb
|
887
874
|
- test/fixtures/ns_/custom.rb
|
875
|
+
- test/fixtures/untranslated.rb
|
888
876
|
- test/fixtures/_.rb
|
889
877
|
- test/fixtures/s_.rb
|
890
878
|
- test/fixtures/backslash.rb
|
879
|
+
- test/fixtures/erb/ascii.rxml
|
880
|
+
- test/fixtures/erb/ascii.rhtml
|
881
|
+
- test/fixtures/erb/non_ascii.rhtml
|
891
882
|
- test/fixtures/N_.rb
|
892
883
|
- test/fixtures/ns_.rb
|
893
|
-
- test/fixtures/erb.rhtml
|
894
884
|
- test/fixtures/p_.rb
|
895
885
|
- test/fixtures/simple.rb
|
896
886
|
- test/gettext-test-utils.rb
|
@@ -911,17 +901,14 @@ files:
|
|
911
901
|
- test/locale/ja/LC_MESSAGES/test3.mo
|
912
902
|
- test/locale/ja/LC_MESSAGES/rubyparser.mo
|
913
903
|
- test/locale/ja/LC_MESSAGES/non_ascii.mo
|
914
|
-
- test/locale/ja/LC_MESSAGES/sgettext.mo
|
915
|
-
- test/locale/ja/LC_MESSAGES/npgettext.mo
|
916
904
|
- test/locale/ja/LC_MESSAGES/plural_error.mo
|
905
|
+
- test/locale/ja/LC_MESSAGES/untranslated.mo
|
917
906
|
- test/locale/ja/LC_MESSAGES/p_.mo
|
918
907
|
- test/locale/ja/LC_MESSAGES/ns_.mo
|
919
908
|
- test/locale/ja/LC_MESSAGES/_.mo
|
920
909
|
- test/locale/ja/LC_MESSAGES/backslash.mo
|
921
910
|
- test/locale/ja/LC_MESSAGES/test2.mo
|
922
911
|
- test/locale/ja/LC_MESSAGES/np_.mo
|
923
|
-
- test/locale/ja/LC_MESSAGES/pgettext.mo
|
924
|
-
- test/locale/ja/LC_MESSAGES/nsgettext.mo
|
925
912
|
- test/locale/ja/LC_MESSAGES/s_.mo
|
926
913
|
- test/locale/ja/LC_MESSAGES/plural.mo
|
927
914
|
- test/locale/ja/LC_MESSAGES/test1.mo
|
@@ -939,31 +926,42 @@ files:
|
|
939
926
|
- README.rdoc
|
940
927
|
- Rakefile
|
941
928
|
- gettext.gemspec
|
929
|
+
- .yardopts
|
930
|
+
has_rdoc: true
|
942
931
|
homepage: http://ruby-gettext.github.com/
|
943
932
|
licenses: []
|
933
|
+
|
944
934
|
post_install_message:
|
945
935
|
rdoc_options: []
|
946
|
-
|
936
|
+
|
937
|
+
require_paths:
|
947
938
|
- lib
|
948
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
939
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
949
940
|
none: false
|
950
|
-
requirements:
|
951
|
-
- -
|
952
|
-
- !ruby/object:Gem::Version
|
953
|
-
|
954
|
-
|
941
|
+
requirements:
|
942
|
+
- - ">="
|
943
|
+
- !ruby/object:Gem::Version
|
944
|
+
hash: 3
|
945
|
+
segments:
|
946
|
+
- 0
|
947
|
+
version: "0"
|
948
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
955
949
|
none: false
|
956
|
-
requirements:
|
957
|
-
- -
|
958
|
-
- !ruby/object:Gem::Version
|
959
|
-
|
950
|
+
requirements:
|
951
|
+
- - ">="
|
952
|
+
- !ruby/object:Gem::Version
|
953
|
+
hash: 3
|
954
|
+
segments:
|
955
|
+
- 0
|
956
|
+
version: "0"
|
960
957
|
requirements: []
|
958
|
+
|
961
959
|
rubyforge_project: gettext
|
962
|
-
rubygems_version: 1.
|
960
|
+
rubygems_version: 1.6.2
|
963
961
|
signing_key:
|
964
962
|
specification_version: 3
|
965
963
|
summary: Gettext is a pure Ruby libary and tools to localize messages.
|
966
|
-
test_files:
|
964
|
+
test_files:
|
967
965
|
- test/test_locale_path.rb
|
968
966
|
- test/test_class_info.rb
|
969
967
|
- test/test_mofile.rb
|
@@ -977,4 +975,3 @@ test_files:
|
|
977
975
|
- test/test_po_generation.rb
|
978
976
|
- test/test_string.rb
|
979
977
|
- test/test_gettext.rb
|
980
|
-
has_rdoc:
|