gettext 2.3.3 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/text/news.md +37 -0
- data/gettext.gemspec +1 -0
- data/lib/gettext/runtime/mo.rb +382 -0
- data/lib/gettext/runtime/mofile.rb +24 -366
- data/lib/gettext/runtime/textdomain.rb +17 -17
- data/lib/gettext/tools.rb +1 -1
- data/lib/gettext/tools/msgfmt.rb +2 -2
- data/lib/gettext/tools/msginit.rb +16 -15
- data/lib/gettext/tools/msgmerge.rb +258 -255
- data/lib/gettext/tools/parser/ruby.rb +24 -24
- data/lib/gettext/tools/po.rb +256 -0
- data/lib/gettext/tools/po_entry.rb +355 -0
- data/lib/gettext/tools/poparser.rb +118 -16
- data/lib/gettext/tools/xgettext.rb +56 -58
- data/lib/gettext/version.rb +1 -1
- 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 +111 -9
- data/test/parser/test_ruby.rb +17 -13
- data/test/po/_.pot +3 -3
- data/test/po/backslash.pot +3 -3
- data/test/po/non_ascii.pot +3 -3
- data/test/po/np_.pot +5 -4
- 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 +3 -3
- data/test/{test_mofile.rb → test_mo.rb} +3 -3
- data/test/test_parser.rb +13 -12
- data/test/test_po_entry.rb +329 -0
- data/test/test_po_parser.rb +209 -8
- data/test/tools/test_msginit.rb +0 -2
- data/test/tools/test_msgmerge.rb +427 -50
- data/test/tools/test_po.rb +487 -0
- data/test/tools/test_xgettext.rb +1 -1
- metadata +28 -45
- data/data/locale/de/LC_MESSAGES/gettext.mo +0 -0
- data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/el/LC_MESSAGES/gettext.mo +0 -0
- data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/sr/LC_MESSAGES/gettext.mo +0 -0
- data/data/locale/sr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/uk/LC_MESSAGES/gettext.mo +0 -0
- data/data/locale/uk/LC_MESSAGES/rgettext.mo +0 -0
- data/lib/gettext/tools/pomessage.rb +0 -232
- data/samples/locale/bg/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/bs/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/ca/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/cs/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/de/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/el/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/eo/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/es/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/fr/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/hr/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/hu/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/it/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/ja/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/ko/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/nl/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/pt_BR/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/ru/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/sv/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/uk/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/vi/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/hello_gtk.mo +0 -0
- data/samples/locale/zh_TW/LC_MESSAGES/hello_gtk.mo +0 -0
- data/test/po/ascii.pot +0 -23
- data/test/po/no_exist_msgid.pot +0 -20
- data/test/po/not_existed_msgid.pot +0 -20
- data/test/test_po_message.rb +0 -118
data/samples/po/hello_glade2.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 10:50+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 10:50+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/samples/po/hello_gtk2.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 10:50+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 10:50+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/samples/po/hello_noop.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 10:50+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 10:50+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/samples/po/hello_plural.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 10:50+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 10:50+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/samples/po/hello_tk.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 10:50+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 10:50+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/src/poparser.ry
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
# You may redistribute it and/or modify it under the same
|
10
10
|
# license terms as Ruby or LGPL.
|
11
11
|
|
12
|
-
class GetText::
|
12
|
+
class GetText::POParser
|
13
13
|
token COMMENT MSGID MSGCTXT MSGID_PLURAL MSGSTR STRING PLURAL_NUM
|
14
14
|
|
15
15
|
rule
|
@@ -24,7 +24,7 @@ class GetText::PoParser
|
|
24
24
|
msgctxt
|
25
25
|
: MSGCTXT string_list
|
26
26
|
{
|
27
|
-
@msgctxt = unescape(val[1])
|
27
|
+
@msgctxt = unescape(val[1])
|
28
28
|
}
|
29
29
|
;
|
30
30
|
|
@@ -52,7 +52,7 @@ class GetText::PoParser
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
@fuzzy = false
|
55
|
-
on_message(
|
55
|
+
on_message(msgid, msgstr) if use_message_p
|
56
56
|
result = ""
|
57
57
|
}
|
58
58
|
|
@@ -70,7 +70,8 @@ class GetText::PoParser
|
|
70
70
|
end
|
71
71
|
@fuzzy = false
|
72
72
|
else
|
73
|
-
|
73
|
+
@msgid_plural = unescape(val[3])
|
74
|
+
on_message(unescape(val[1]), unescape(val[4]))
|
74
75
|
end
|
75
76
|
result = ""
|
76
77
|
}
|
@@ -115,7 +116,13 @@ class GetText::PoParser
|
|
115
116
|
;
|
116
117
|
end
|
117
118
|
|
119
|
+
---- header
|
120
|
+
require "gettext/tools/po"
|
121
|
+
require "gettext/tools/msgmerge"
|
118
122
|
---- inner
|
123
|
+
# for backward compatibility.
|
124
|
+
PoParser = POParser
|
125
|
+
|
119
126
|
if GetText.respond_to?(:bindtextdomain)
|
120
127
|
include GetText
|
121
128
|
GetText.bindtextdomain("gettext")
|
@@ -155,10 +162,16 @@ end
|
|
155
162
|
private :unescape_string
|
156
163
|
|
157
164
|
def parse(str, data)
|
165
|
+
@translator_comments = []
|
166
|
+
@extracted_comments = []
|
167
|
+
@references = []
|
168
|
+
@flag = []
|
169
|
+
@previous = []
|
158
170
|
@comments = []
|
159
171
|
@data = data
|
160
172
|
@fuzzy = false
|
161
|
-
@msgctxt =
|
173
|
+
@msgctxt = nil
|
174
|
+
@msgid_plural = nil
|
162
175
|
|
163
176
|
str.strip!
|
164
177
|
@q = []
|
@@ -221,16 +234,89 @@ end
|
|
221
234
|
|
222
235
|
def on_message(msgid, msgstr)
|
223
236
|
msgstr = nil if msgstr.empty?
|
224
|
-
@data[msgid] = msgstr
|
225
|
-
@data.set_comment(msgid, @comments.join("\n"))
|
226
237
|
|
238
|
+
if @data.instance_of?(PO) or
|
239
|
+
@data.instance_of?(GetText::Tools::MsgMerge::PoData)
|
240
|
+
type = detect_entry_type
|
241
|
+
entry = POEntry.new(type)
|
242
|
+
entry.translator_comment = format_comment(@translator_comments)
|
243
|
+
entry.extracted_comment = format_comment(@extracted_comments)
|
244
|
+
entry.flag = format_comment(@flag)
|
245
|
+
entry.previous = format_comment(@previous)
|
246
|
+
entry.references = @references
|
247
|
+
entry.msgctxt = @msgctxt
|
248
|
+
entry.msgid = msgid
|
249
|
+
entry.msgid_plural = @msgid_plural
|
250
|
+
entry.msgstr = msgstr
|
251
|
+
|
252
|
+
if @data.instance_of?(PO)
|
253
|
+
@data[@msgctxt, msgid] = entry
|
254
|
+
elsif @data.instance_of?(GetText::Tools::MsgMerge::PoData)
|
255
|
+
id = ""
|
256
|
+
id << "#{@msgctxt}\004" unless @msgctxt.nil?
|
257
|
+
id << msgid
|
258
|
+
id << "\000#{@msgid_plural}" unless @msgid_plural.nil?
|
259
|
+
@data[id] = entry
|
260
|
+
end
|
261
|
+
else
|
262
|
+
options = {}
|
263
|
+
options[:msgctxt] = @msgctxt
|
264
|
+
options[:msgid_plural] = @msgid_plural
|
265
|
+
@data.store(msgid, msgstr, options)
|
266
|
+
@data.set_comment(msgid, format_comment(@comments))
|
267
|
+
end
|
268
|
+
|
269
|
+
@translator_comments = []
|
270
|
+
@extracted_comments = []
|
271
|
+
@references = []
|
272
|
+
@flag = []
|
273
|
+
@previous = []
|
274
|
+
@references = []
|
227
275
|
@comments.clear
|
228
|
-
@msgctxt =
|
276
|
+
@msgctxt = nil
|
277
|
+
@msgid_plural = nil
|
229
278
|
end
|
230
279
|
|
280
|
+
def format_comment(comments)
|
281
|
+
return "" if comments.empty?
|
282
|
+
|
283
|
+
comment = comments.join("\n")
|
284
|
+
comment << "\n" if comments.last.empty?
|
285
|
+
comment
|
286
|
+
end
|
287
|
+
|
288
|
+
TRANSLATOR_COMMENT_MARK = "# "
|
289
|
+
EXTRACTED_COMMENT_MARK = "#."
|
290
|
+
FLAG_MARK = "#,"
|
291
|
+
PREVIOUS_MSGID_COMMENT_MARK = "#|"
|
292
|
+
REFERENCE_COMMENT_MARK = "#:"
|
231
293
|
def on_comment(comment)
|
232
294
|
@fuzzy = true if (/fuzzy/ =~ comment)
|
233
|
-
@
|
295
|
+
if @data.instance_of?(PO) or
|
296
|
+
@data.instance_of?(GetText::Tools::MsgMerge::PoData)
|
297
|
+
if comment == "#"
|
298
|
+
@translator_comments << ""
|
299
|
+
elsif /\A(#.)\s*(.*)\z/ =~ comment
|
300
|
+
mark = $1
|
301
|
+
content = $2
|
302
|
+
case mark
|
303
|
+
when TRANSLATOR_COMMENT_MARK
|
304
|
+
@translator_comments << content
|
305
|
+
when EXTRACTED_COMMENT_MARK
|
306
|
+
@extracted_comments << content
|
307
|
+
when REFERENCE_COMMENT_MARK
|
308
|
+
@references << content
|
309
|
+
when FLAG_MARK
|
310
|
+
@flag << content
|
311
|
+
when PREVIOUS_MSGID_COMMENT_MARK
|
312
|
+
@previous << content
|
313
|
+
else
|
314
|
+
@comments << comment
|
315
|
+
end
|
316
|
+
end
|
317
|
+
else
|
318
|
+
@comments << comment
|
319
|
+
end
|
234
320
|
end
|
235
321
|
|
236
322
|
def parse_file(po_file, data)
|
@@ -252,5 +338,21 @@ end
|
|
252
338
|
end
|
253
339
|
Encoding.default_external
|
254
340
|
end
|
341
|
+
|
342
|
+
def detect_entry_type
|
343
|
+
if @msgctxt.nil?
|
344
|
+
if @msgid_plural.nil?
|
345
|
+
:normal
|
346
|
+
else
|
347
|
+
:plural
|
348
|
+
end
|
349
|
+
else
|
350
|
+
if @msgid_plural.nil?
|
351
|
+
:msgctxt
|
352
|
+
else
|
353
|
+
:msgctxt_plural
|
354
|
+
end
|
355
|
+
end
|
356
|
+
end
|
255
357
|
private :detect_file_encoding
|
256
358
|
---- footer
|
data/test/parser/test_ruby.rb
CHANGED
@@ -41,27 +41,29 @@ class TestRubyParser < Test::Unit::TestCase
|
|
41
41
|
default = {
|
42
42
|
:msgid => nil,
|
43
43
|
:msgid_plural => nil,
|
44
|
+
:msgstr => nil,
|
44
45
|
:separator => nil,
|
45
|
-
:
|
46
|
+
:references => nil,
|
46
47
|
}
|
47
48
|
default.merge(message)
|
48
49
|
end
|
49
50
|
end
|
50
51
|
|
51
|
-
def normalize_actual(
|
52
|
-
|
52
|
+
def normalize_actual(po)
|
53
|
+
po.collect do |po_entry|
|
53
54
|
{
|
54
|
-
:msgid =>
|
55
|
-
:msgid_plural =>
|
56
|
-
:
|
57
|
-
:
|
55
|
+
:msgid => po_entry.msgid,
|
56
|
+
:msgid_plural => po_entry.msgid_plural,
|
57
|
+
:msgstr => po_entry.msgstr,
|
58
|
+
:separator => po_entry.separator,
|
59
|
+
:references => normalize_references(po_entry.references),
|
58
60
|
}
|
59
61
|
end
|
60
62
|
end
|
61
63
|
|
62
|
-
def
|
63
|
-
|
64
|
-
|
64
|
+
def normalize_references(references)
|
65
|
+
references.collect do |reference|
|
66
|
+
reference.sub(/\A#{Regexp.escape(fixture_path)}\//, "")
|
65
67
|
end
|
66
68
|
end
|
67
69
|
|
@@ -117,7 +119,7 @@ class TestRubyParser < Test::Unit::TestCase
|
|
117
119
|
assert_parse([
|
118
120
|
{
|
119
121
|
:msgid => "one line",
|
120
|
-
:
|
122
|
+
:references => ["one_line.rb:28"],
|
121
123
|
}
|
122
124
|
],
|
123
125
|
"one_line.rb")
|
@@ -134,8 +136,9 @@ class TestRubyParser < Test::Unit::TestCase
|
|
134
136
|
assert_parse([
|
135
137
|
{
|
136
138
|
:msgid => "context|context$message",
|
139
|
+
:msgstr => nil,
|
137
140
|
:separator => "$",
|
138
|
-
:
|
141
|
+
:references => ["custom.rb:28"],
|
139
142
|
}
|
140
143
|
],
|
141
144
|
"custom.rb")
|
@@ -153,8 +156,9 @@ class TestRubyParser < Test::Unit::TestCase
|
|
153
156
|
{
|
154
157
|
:msgid => "context|context$message",
|
155
158
|
:msgid_plural => "context|context$messages",
|
159
|
+
:msgstr => nil,
|
156
160
|
:separator => "$",
|
157
|
-
:
|
161
|
+
:references => ["custom.rb:28"],
|
158
162
|
}
|
159
163
|
],
|
160
164
|
"custom.rb")
|
data/test/po/_.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 12:08+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 12:08+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/backslash.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 12:08+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 12:08+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/non_ascii.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 12:08+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 12:08+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
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 12:08+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 12:08+0900\n"
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15
15
|
"Language: \n"
|
@@ -18,7 +18,8 @@ msgstr ""
|
|
18
18
|
"Content-Transfer-Encoding: 8bit\n"
|
19
19
|
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
20
20
|
|
21
|
-
#: ../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
|
22
23
|
msgctxt "Magazine"
|
23
24
|
msgid "a book"
|
24
25
|
msgid_plural "%{num} books"
|
data/test/po/ns_.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 12:08+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 12:08+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/p_.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 12:08+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 12:08+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
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 12:08+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 12:08+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/untranslated.pot
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext 2.3.
|
9
|
+
"Project-Id-Version: gettext 2.3.4\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date: 2012-
|
12
|
-
"PO-Revision-Date: 2012-
|
11
|
+
"POT-Creation-Date: 2012-11-15 12:08+0900\n"
|
12
|
+
"PO-Revision-Date: 2012-11-15 12:08+0900\n"
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15
15
|
"Language: \n"
|