gettext 3.3.9 → 3.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/Rakefile +1 -3
- data/doc/text/news.md +121 -0
- data/gettext.gemspec +4 -2
- data/lib/gettext/mo.rb +5 -14
- data/lib/gettext/po_entry.rb +31 -21
- data/lib/gettext/po_parser.rb +65 -59
- data/lib/gettext/text_domain_manager.rb +6 -5
- data/lib/gettext/tools/msgcat.rb +9 -2
- data/lib/gettext/tools/msgmerge.rb +11 -6
- data/lib/gettext/tools/parser/erubi.rb +88 -0
- data/lib/gettext/tools/task.rb +3 -5
- data/lib/gettext/tools/xgettext.rb +15 -4
- data/lib/gettext/version.rb +3 -3
- data/locale/ja/LC_MESSAGES/gettext.mo +0 -0
- data/po/bg/gettext.edit.po +65 -60
- data/po/bg/gettext.po +6 -0
- data/po/bs/gettext.edit.po +65 -60
- data/po/bs/gettext.po +6 -0
- data/po/ca/gettext.edit.po +65 -60
- data/po/ca/gettext.po +6 -0
- data/po/cs/gettext.edit.po +65 -60
- data/po/cs/gettext.po +6 -0
- data/po/de/gettext.edit.po +65 -60
- data/po/de/gettext.po +6 -0
- data/po/el/gettext.edit.po +65 -60
- data/po/el/gettext.po +6 -0
- data/po/eo/gettext.edit.po +65 -60
- data/po/eo/gettext.po +6 -0
- data/po/es/gettext.edit.po +65 -60
- data/po/es/gettext.po +6 -0
- data/po/et/gettext.edit.po +65 -60
- data/po/et/gettext.po +6 -0
- data/po/fr/gettext.edit.po +65 -60
- data/po/fr/gettext.po +6 -0
- data/po/gettext.pot +77 -68
- data/po/hr/gettext.edit.po +65 -60
- data/po/hr/gettext.po +6 -0
- data/po/hu/gettext.edit.po +65 -60
- data/po/hu/gettext.po +6 -0
- data/po/it/gettext.edit.po +65 -60
- data/po/it/gettext.po +6 -0
- data/po/ja/gettext.edit.po +66 -61
- data/po/ja/gettext.po +7 -1
- data/po/ko/gettext.edit.po +65 -60
- data/po/ko/gettext.po +6 -0
- data/po/lv/gettext.edit.po +65 -60
- data/po/lv/gettext.po +6 -0
- data/po/nb/gettext.edit.po +65 -60
- data/po/nb/gettext.po +6 -0
- data/po/nl/gettext.edit.po +65 -60
- data/po/nl/gettext.po +6 -0
- data/po/pt_BR/gettext.edit.po +65 -60
- data/po/pt_BR/gettext.po +6 -0
- data/po/ru/gettext.edit.po +65 -60
- data/po/ru/gettext.po +6 -0
- data/po/sr/gettext.edit.po +65 -60
- data/po/sr/gettext.po +6 -0
- data/po/sv/gettext.edit.po +65 -57
- data/po/sv/gettext.po +6 -0
- data/po/uk/gettext.edit.po +65 -60
- data/po/uk/gettext.po +6 -0
- data/po/vi/gettext.edit.po +65 -60
- data/po/vi/gettext.po +6 -0
- data/po/zh/gettext.edit.po +65 -60
- data/po/zh/gettext.po +6 -0
- data/po/zh_TW/gettext.edit.po +65 -60
- data/po/zh_TW/gettext.po +6 -0
- data/samples/cgi/po/helloerb1.pot +3 -3
- data/samples/cgi/po/helloerb2.pot +3 -3
- data/samples/cgi/po/hellolib.pot +3 -3
- data/samples/cgi/po/main.pot +3 -3
- data/samples/po/bg/hello_gtk_builder.edit.po +15 -0
- data/samples/po/bg/hello_gtk_builder.po +12 -0
- data/samples/po/bs/hello_gtk_builder.edit.po +15 -0
- data/samples/po/bs/hello_gtk_builder.po +12 -0
- data/samples/po/ca/hello_gtk_builder.edit.po +15 -0
- data/samples/po/ca/hello_gtk_builder.po +12 -0
- data/samples/po/cs/hello_gtk_builder.edit.po +15 -0
- data/samples/po/cs/hello_gtk_builder.po +12 -0
- data/samples/po/de/hello_gtk_builder.edit.po +15 -0
- data/samples/po/de/hello_gtk_builder.po +12 -0
- data/samples/po/el/hello_gtk_builder.edit.po +15 -0
- data/samples/po/el/hello_gtk_builder.po +12 -0
- data/samples/po/eo/hello_gtk_builder.edit.po +15 -0
- data/samples/po/eo/hello_gtk_builder.po +12 -0
- data/samples/po/es/hello_gtk_builder.edit.po +15 -0
- data/samples/po/es/hello_gtk_builder.po +12 -0
- data/samples/po/fr/hello_gtk_builder.edit.po +15 -0
- data/samples/po/fr/hello_gtk_builder.po +12 -0
- data/samples/po/hello.pot +3 -3
- data/samples/po/hello2.pot +4 -4
- data/samples/po/hello_glade2.pot +8 -5
- data/samples/po/hello_gtk2.pot +4 -4
- data/samples/po/hello_gtk_builder.pot +18 -4
- data/samples/po/hello_noop.pot +4 -4
- data/samples/po/hello_plural.pot +4 -4
- data/samples/po/hello_tk.pot +4 -4
- data/samples/po/hr/hello_gtk_builder.edit.po +15 -0
- data/samples/po/hr/hello_gtk_builder.po +12 -0
- data/samples/po/hu/hello_gtk_builder.edit.po +15 -0
- data/samples/po/hu/hello_gtk_builder.po +12 -0
- data/samples/po/it/hello_gtk_builder.edit.po +15 -0
- data/samples/po/it/hello_gtk_builder.po +12 -0
- data/samples/po/ja/hello_gtk_builder.edit.po +15 -0
- data/samples/po/ja/hello_gtk_builder.po +12 -0
- data/samples/po/ko/hello_gtk_builder.edit.po +15 -0
- data/samples/po/ko/hello_gtk_builder.po +12 -0
- data/samples/po/lv/hello_gtk_builder.edit.po +15 -0
- data/samples/po/lv/hello_gtk_builder.po +12 -0
- data/samples/po/nb/hello_gtk_builder.edit.po +15 -0
- data/samples/po/nb/hello_gtk_builder.po +12 -0
- data/samples/po/nl/hello_gtk_builder.edit.po +15 -0
- data/samples/po/nl/hello_gtk_builder.po +12 -0
- data/samples/po/pt_BR/hello_gtk_builder.edit.po +15 -0
- data/samples/po/pt_BR/hello_gtk_builder.po +12 -0
- data/samples/po/ru/hello_gtk_builder.edit.po +15 -0
- data/samples/po/ru/hello_gtk_builder.po +12 -0
- data/samples/po/sr/hello_gtk_builder.edit.po +15 -0
- data/samples/po/sr/hello_gtk_builder.po +12 -0
- data/samples/po/sv/hello_gtk_builder.edit.po +15 -0
- data/samples/po/sv/hello_gtk_builder.po +12 -0
- data/samples/po/uk/hello_gtk_builder.edit.po +15 -0
- data/samples/po/uk/hello_gtk_builder.po +12 -0
- data/samples/po/vi/hello_gtk_builder.edit.po +15 -0
- data/samples/po/vi/hello_gtk_builder.po +12 -0
- data/samples/po/zh/hello_gtk_builder.edit.po +15 -0
- data/samples/po/zh/hello_gtk_builder.po +12 -0
- data/samples/po/zh_TW/hello_gtk_builder.edit.po +15 -0
- data/samples/po/zh_TW/hello_gtk_builder.po +12 -0
- data/src/po_parser.ry +48 -42
- data/test/fixtures/erb/case.rhtml +16 -0
- data/test/fixtures/simple.rb +4 -0
- data/test/locale/fr/LC_MESSAGES/test1.mo +0 -0
- data/test/locale/fr_BE/LC_MESSAGES/test1.mo +0 -0
- data/test/locale/fr_BE_Foo/LC_MESSAGES/test1.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/_.mo +0 -0
- data/test/po/_.pot +3 -3
- data/test/po/backslash.pot +6 -4
- data/test/po/fr/test1.po +7 -0
- data/test/po/fr_BE/test1.po +24 -0
- data/test/po/fr_BE_Foo/test1.po +20 -0
- data/test/po/hello.pot +3 -3
- data/test/po/ja/_.edit.po +3 -3
- data/test/po/ja/_.po +15 -0
- data/test/po/ja/hello.edit.po +0 -1
- data/test/po/non_ascii.pot +4 -4
- 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 +4 -4
- data/test/test_gettext.rb +23 -0
- data/test/test_locale_path.rb +12 -4
- data/test/test_parser.rb +62 -0
- data/test/test_po_entry.rb +20 -4
- data/test/test_po_parser.rb +44 -1
- data/test/tools/test_msgcat.rb +21 -1
- data/test/tools/test_msginit.rb +7 -2
- data/test/tools/test_msgmerge.rb +41 -3
- data/test/tools/test_xgettext.rb +100 -3
- metadata +48 -14
- data/test/fixtures/gtk_builder_ui_definitions.ui~ +0 -68
@@ -0,0 +1,88 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
parser/erubi.rb - parser for ERB using Erubi
|
5
|
+
|
6
|
+
Copyright (C) 2005-2009 Masao Mutoh
|
7
|
+
|
8
|
+
You may redistribute it and/or modify it under the same
|
9
|
+
license terms as Ruby or LGPL.
|
10
|
+
=end
|
11
|
+
|
12
|
+
require "erubi"
|
13
|
+
require 'gettext/tools/parser/ruby'
|
14
|
+
|
15
|
+
module GetText
|
16
|
+
class ErubiParser
|
17
|
+
@config = {
|
18
|
+
:extnames => ['.rhtml', '.erb']
|
19
|
+
}
|
20
|
+
|
21
|
+
class << self
|
22
|
+
# Sets some preferences to parse ERB files.
|
23
|
+
# * config: a Hash of the config. It can takes some values below:
|
24
|
+
# * :extnames: An Array of target files extension. Default is [".rhtml"].
|
25
|
+
def init(config)
|
26
|
+
config.each{|k, v|
|
27
|
+
@config[k] = v
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def target?(file) # :nodoc:
|
32
|
+
@config[:extnames].each do |v|
|
33
|
+
return true if File.extname(file) == v
|
34
|
+
end
|
35
|
+
false
|
36
|
+
end
|
37
|
+
|
38
|
+
# Parses eRuby script located at `path`.
|
39
|
+
#
|
40
|
+
# This is a short cut method. It equals to `new(path,
|
41
|
+
# options).parse`.
|
42
|
+
#
|
43
|
+
# @return [Array<POEntry>] Extracted messages
|
44
|
+
# @see #initialize and #parse
|
45
|
+
def parse(path, options={})
|
46
|
+
parser = new(path, options)
|
47
|
+
parser.parse
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# @param path [String] eRuby script path to be parsed
|
52
|
+
# @param options [Hash]
|
53
|
+
def initialize(path, options={})
|
54
|
+
@path = path
|
55
|
+
@options = options
|
56
|
+
end
|
57
|
+
|
58
|
+
# Extracts messages from @path.
|
59
|
+
#
|
60
|
+
# @return [Array<POEntry>] Extracted messages
|
61
|
+
def parse
|
62
|
+
content = IO.read(@path)
|
63
|
+
|
64
|
+
encoding = detect_encoding(content)
|
65
|
+
content.force_encoding(encoding)
|
66
|
+
|
67
|
+
erb = Erubi::Engine.new(content)
|
68
|
+
src = erb.src
|
69
|
+
|
70
|
+
RubyParser.new(@path, @options).parse_source(src)
|
71
|
+
end
|
72
|
+
|
73
|
+
def detect_encoding(content)
|
74
|
+
if /#.*coding: (\S*)/ =~ content.lines.first
|
75
|
+
$1.upcase
|
76
|
+
else
|
77
|
+
content.encoding
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
if __FILE__ == $0
|
84
|
+
# ex) ruby glade.rhtml foo.rhtml bar.rhtml
|
85
|
+
ARGV.each do |file|
|
86
|
+
p GetText::ErubiParser.parse(file)
|
87
|
+
end
|
88
|
+
end
|
data/lib/gettext/tools/task.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
# Copyright (C) 2012-2014 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2012-2023 Sutou Kouhei <kou@clear-code.com>
|
4
2
|
#
|
5
3
|
# License: Ruby's or LGPL
|
6
4
|
#
|
@@ -452,8 +450,8 @@ module GetText
|
|
452
450
|
locale = args.locale || ENV["LOCALE"]
|
453
451
|
if locale.nil?
|
454
452
|
raise "specify locale name by " +
|
455
|
-
|
456
|
-
|
453
|
+
"rake '#{_task.name}[${LOCALE}]' or " +
|
454
|
+
"rake #{_task.name} LOCALE=${LOCALE}'"
|
457
455
|
end
|
458
456
|
define_edit_po_file_task(locale)
|
459
457
|
define_po_file_task(locale)
|
@@ -1,7 +1,5 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
#
|
3
1
|
# Copyright (C) 2012 Haruka Yoshihara <yoshihara@clear-code.com>
|
4
|
-
# Copyright (C) 2012-
|
2
|
+
# Copyright (C) 2012-2023 Sutou Kouhei <kou@clear-code.com>
|
5
3
|
# Copyright (C) 2003-2010 Masao Mutoh
|
6
4
|
# Copyright (C) 2001,2002 Yasushi Shoji, Masao Mutoh
|
7
5
|
#
|
@@ -90,7 +88,8 @@ module GetText
|
|
90
88
|
|
91
89
|
@po_order = :references
|
92
90
|
@po_format_options = {
|
93
|
-
:
|
91
|
+
max_line_width: POEntry::Formatter::DEFAULT_MAX_LINE_WIDTH,
|
92
|
+
use_one_line_per_reference: false,
|
94
93
|
}
|
95
94
|
end
|
96
95
|
|
@@ -325,11 +324,23 @@ Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;
|
|
325
324
|
@po_format_options[:max_line_width] = max_line_width
|
326
325
|
end
|
327
326
|
|
327
|
+
parser.on("--[no-]use-one-line-per-reference",
|
328
|
+
_("Use one line for each reference comment"),
|
329
|
+
"(#{@po_format_options[:use_one_line_per_reference]})") do |use|
|
330
|
+
@po_format_options[:use_one_line_per_reference] = use
|
331
|
+
end
|
332
|
+
|
328
333
|
parser.on("-r", "--require=library",
|
329
334
|
_("require the library before executing xgettext")) do |out|
|
330
335
|
require out
|
331
336
|
end
|
332
337
|
|
338
|
+
parser.on("--parser=PARSER",
|
339
|
+
_("Add PARSER to parser list for xgettext")) do |parser_name|
|
340
|
+
parser_class = parser_name.split('::').inject(Object) {|o,c| o.const_get c}
|
341
|
+
add_parser(parser_class)
|
342
|
+
end
|
343
|
+
|
333
344
|
parser.on("-c", "--add-comments[=TAG]",
|
334
345
|
_("If TAG is specified, place comment blocks starting with TAG and precedding keyword lines in output file"),
|
335
346
|
_("If TAG is not specified, place all comment blocks preceing keyword lines in output file"),
|
data/lib/gettext/version.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
=begin
|
2
2
|
version - version information of gettext
|
3
3
|
|
4
|
-
Copyright (C) 2012-
|
5
|
-
Copyright (C) 2005-2009
|
4
|
+
Copyright (C) 2012-2023 Sutou Kouhei <kou@clear-code.com>
|
5
|
+
Copyright (C) 2005-2009 Masao Mutoh
|
6
6
|
|
7
7
|
You may redistribute it and/or modify it under the same
|
8
8
|
license terms as Ruby or LGPL.
|
9
9
|
=end
|
10
10
|
|
11
11
|
module GetText
|
12
|
-
VERSION = "3.
|
12
|
+
VERSION = "3.4.9"
|
13
13
|
end
|
Binary file
|
data/po/bg/gettext.edit.po
CHANGED
@@ -19,107 +19,111 @@ msgstr ""
|
|
19
19
|
"Content-Transfer-Encoding: 8bit\n"
|
20
20
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
21
21
|
|
22
|
-
#: ../lib/gettext/text_domain_manager.rb:
|
22
|
+
#: ../lib/gettext/text_domain_manager.rb:149
|
23
23
|
msgid "ngettext: 3rd parmeter is wrong: value = %{number}"
|
24
24
|
msgstr "Третият параметър е грешен: value = %{number}"
|
25
25
|
|
26
|
-
#: ../lib/gettext/text_domain_manager.rb:
|
26
|
+
#: ../lib/gettext/text_domain_manager.rb:155
|
27
27
|
msgid "ngettext: 3rd parameter should be a number, not nil."
|
28
28
|
msgstr ""
|
29
29
|
|
30
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
30
|
+
#: ../lib/gettext/tools/msgcat.rb:243
|
31
31
|
msgid "Usage: %s [OPTIONS] PO_FILE1 PO_FILE2 ..."
|
32
32
|
msgstr ""
|
33
33
|
|
34
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
34
|
+
#: ../lib/gettext/tools/msgcat.rb:245
|
35
35
|
msgid "Concatenates and merges PO files."
|
36
36
|
msgstr ""
|
37
37
|
|
38
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
38
|
+
#: ../lib/gettext/tools/msgcat.rb:247 ../lib/gettext/tools/msgfmt.rb:86 ../lib/gettext/tools/msginit.rb:98 ../lib/gettext/tools/msgmerge.rb:368 ../lib/gettext/tools/xgettext.rb:247
|
39
39
|
msgid "Specific options:"
|
40
40
|
msgstr "Специфични опции:"
|
41
41
|
|
42
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
42
|
+
#: ../lib/gettext/tools/msgcat.rb:250 ../lib/gettext/tools/msgmerge.rb:376
|
43
43
|
msgid "Write output to specified file"
|
44
44
|
msgstr "изходът беше записан в зададения файл"
|
45
45
|
|
46
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
46
|
+
#: ../lib/gettext/tools/msgcat.rb:251
|
47
47
|
msgid "(default: the standard output)"
|
48
48
|
msgstr ""
|
49
49
|
|
50
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
50
|
+
#: ../lib/gettext/tools/msgcat.rb:256 ../lib/gettext/tools/msgcat.rb:273 ../lib/gettext/tools/msgmerge.rb:381 ../lib/gettext/tools/msgmerge.rb:400 ../lib/gettext/tools/xgettext.rb:301
|
51
51
|
msgid "Sort output by msgid"
|
52
52
|
msgstr ""
|
53
53
|
|
54
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
54
|
+
#: ../lib/gettext/tools/msgcat.rb:261 ../lib/gettext/tools/msgcat.rb:266 ../lib/gettext/tools/msgmerge.rb:388 ../lib/gettext/tools/msgmerge.rb:395
|
55
55
|
msgid "Sort output by location"
|
56
56
|
msgstr ""
|
57
57
|
|
58
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
58
|
+
#: ../lib/gettext/tools/msgcat.rb:267 ../lib/gettext/tools/msgmerge.rb:389
|
59
59
|
msgid "It is same as --sort-by-location"
|
60
60
|
msgstr ""
|
61
61
|
|
62
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
62
|
+
#: ../lib/gettext/tools/msgcat.rb:268 ../lib/gettext/tools/msgcat.rb:275 ../lib/gettext/tools/msgmerge.rb:383 ../lib/gettext/tools/msgmerge.rb:390
|
63
63
|
msgid "Just for GNU gettext's msgcat compatibility"
|
64
64
|
msgstr ""
|
65
65
|
|
66
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
66
|
+
#: ../lib/gettext/tools/msgcat.rb:274 ../lib/gettext/tools/msgmerge.rb:382
|
67
67
|
msgid "It is same as --sort-by-msgid"
|
68
68
|
msgstr ""
|
69
69
|
|
70
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
70
|
+
#: ../lib/gettext/tools/msgcat.rb:280
|
71
71
|
msgid "Remove location information"
|
72
72
|
msgstr ""
|
73
73
|
|
74
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
74
|
+
#: ../lib/gettext/tools/msgcat.rb:285
|
75
75
|
msgid "Remove translator comment"
|
76
76
|
msgstr ""
|
77
77
|
|
78
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
78
|
+
#: ../lib/gettext/tools/msgcat.rb:290
|
79
79
|
msgid "Remove extracted comment"
|
80
80
|
msgstr ""
|
81
81
|
|
82
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
82
|
+
#: ../lib/gettext/tools/msgcat.rb:295
|
83
83
|
msgid "Remove flag comment"
|
84
84
|
msgstr ""
|
85
85
|
|
86
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
86
|
+
#: ../lib/gettext/tools/msgcat.rb:300
|
87
87
|
msgid "Remove previous comment"
|
88
88
|
msgstr ""
|
89
89
|
|
90
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
90
|
+
#: ../lib/gettext/tools/msgcat.rb:305
|
91
91
|
msgid "Remove all comments"
|
92
92
|
msgstr ""
|
93
93
|
|
94
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
94
|
+
#: ../lib/gettext/tools/msgcat.rb:310 ../lib/gettext/tools/msgmerge.rb:410 ../lib/gettext/tools/xgettext.rb:311
|
95
95
|
msgid "Set output page width"
|
96
96
|
msgstr ""
|
97
97
|
|
98
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
98
|
+
#: ../lib/gettext/tools/msgcat.rb:316 ../lib/gettext/tools/msgmerge.rb:416 ../lib/gettext/tools/xgettext.rb:317
|
99
99
|
msgid "Break long message lines, longer than the output page width, into several lines"
|
100
100
|
msgstr ""
|
101
101
|
|
102
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
102
|
+
#: ../lib/gettext/tools/msgcat.rb:327 ../lib/gettext/tools/msgmerge.rb:427 ../lib/gettext/tools/xgettext.rb:328
|
103
|
+
msgid "Use one line for each reference comment"
|
104
|
+
msgstr ""
|
105
|
+
|
106
|
+
#: ../lib/gettext/tools/msgcat.rb:333
|
103
107
|
msgid "Ignore fuzzy entries"
|
104
108
|
msgstr ""
|
105
109
|
|
106
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
110
|
+
#: ../lib/gettext/tools/msgcat.rb:338 ../lib/gettext/tools/msgmerge.rb:439
|
107
111
|
msgid "Don't report warning messages"
|
108
112
|
msgstr ""
|
109
113
|
|
110
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
114
|
+
#: ../lib/gettext/tools/msgcat.rb:343 ../lib/gettext/tools/msgmerge.rb:444
|
111
115
|
msgid "Don't output obsolete entries"
|
112
116
|
msgstr ""
|
113
117
|
|
114
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
118
|
+
#: ../lib/gettext/tools/msgcat.rb:348
|
115
119
|
msgid "Update PO-Revision-Date header field"
|
116
120
|
msgstr ""
|
117
121
|
|
118
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
122
|
+
#: ../lib/gettext/tools/msgcat.rb:353
|
119
123
|
msgid "Remove FIELD from header"
|
120
124
|
msgstr ""
|
121
125
|
|
122
|
-
#: ../lib/gettext/tools/msgcat.rb:
|
126
|
+
#: ../lib/gettext/tools/msgcat.rb:354
|
123
127
|
msgid "Specify this option multiple times to remove multiple header fields"
|
124
128
|
msgstr ""
|
125
129
|
|
@@ -135,11 +139,11 @@ msgstr "Употреба: %s input.po [-o output.mo]"
|
|
135
139
|
msgid "Generate binary message catalog from textual translation description."
|
136
140
|
msgstr "Генериране на двоични файлове с преводите от текстовите описания."
|
137
141
|
|
138
|
-
#: ../lib/gettext/tools/msgfmt.rb:89 ../lib/gettext/tools/xgettext.rb:
|
142
|
+
#: ../lib/gettext/tools/msgfmt.rb:89 ../lib/gettext/tools/xgettext.rb:250
|
139
143
|
msgid "write output to specified file"
|
140
144
|
msgstr "изходът беше записан в зададения файл"
|
141
145
|
|
142
|
-
#: ../lib/gettext/tools/msgfmt.rb:93 ../lib/gettext/tools/xgettext.rb:
|
146
|
+
#: ../lib/gettext/tools/msgfmt.rb:93 ../lib/gettext/tools/xgettext.rb:360
|
143
147
|
msgid "display version information and exit"
|
144
148
|
msgstr "показване на версията и изход"
|
145
149
|
|
@@ -175,7 +179,7 @@ msgstr ""
|
|
175
179
|
msgid "Use EMAIL as translator email address"
|
176
180
|
msgstr ""
|
177
181
|
|
178
|
-
#: ../lib/gettext/tools/msginit.rb:137 ../lib/gettext/tools/msgmerge.rb:
|
182
|
+
#: ../lib/gettext/tools/msginit.rb:137 ../lib/gettext/tools/msgmerge.rb:448
|
179
183
|
msgid "Display this help and exit"
|
180
184
|
msgstr ""
|
181
185
|
|
@@ -207,117 +211,118 @@ msgstr ""
|
|
207
211
|
msgid "Please enter your email address"
|
208
212
|
msgstr ""
|
209
213
|
|
210
|
-
#: ../lib/gettext/tools/msgmerge.rb:
|
214
|
+
#: ../lib/gettext/tools/msgmerge.rb:357
|
211
215
|
msgid "Usage: %s [OPTIONS] definition.po reference.pot"
|
212
216
|
msgstr ""
|
213
217
|
|
214
|
-
#: ../lib/gettext/tools/msgmerge.rb:
|
218
|
+
#: ../lib/gettext/tools/msgmerge.rb:360
|
215
219
|
msgid "Merges two Uniforum style .po files together. The definition.po file is an existing PO file with translations. The reference.pot file is the last created PO file with up-to-date source references. The reference.pot is generally created by rxgettext."
|
216
220
|
msgstr "Слива два Uniforum .pо файла. definition.po е съществуващ PO файл с преводи. reference.pot е пресен PO файл с актуални референции към кода. reference.pot обикновено е създаден от rgettext."
|
217
221
|
|
218
|
-
#: ../lib/gettext/tools/msgmerge.rb:
|
222
|
+
#: ../lib/gettext/tools/msgmerge.rb:371
|
219
223
|
msgid "Update definition.po"
|
220
224
|
msgstr ""
|
221
225
|
|
222
|
-
#: ../lib/gettext/tools/msgmerge.rb:
|
226
|
+
#: ../lib/gettext/tools/msgmerge.rb:405 ../lib/gettext/tools/xgettext.rb:306
|
223
227
|
msgid "Preserve '#: FILENAME:LINE' lines"
|
224
228
|
msgstr ""
|
225
229
|
|
226
|
-
#: ../lib/gettext/tools/msgmerge.rb:
|
230
|
+
#: ../lib/gettext/tools/msgmerge.rb:433
|
227
231
|
msgid "Disable fuzzy matching"
|
228
232
|
msgstr ""
|
229
233
|
|
230
|
-
#: ../lib/gettext/tools/msgmerge.rb:
|
234
|
+
#: ../lib/gettext/tools/msgmerge.rb:434
|
231
235
|
msgid "(enable)"
|
232
236
|
msgstr ""
|
233
237
|
|
234
|
-
#: ../lib/gettext/tools/msgmerge.rb:
|
238
|
+
#: ../lib/gettext/tools/msgmerge.rb:454
|
235
239
|
msgid "Display version information and exit"
|
236
240
|
msgstr "показване на версията и изход"
|
237
241
|
|
238
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
242
|
+
#: ../lib/gettext/tools/xgettext.rb:63
|
239
243
|
msgid "'%{klass}' is ignored."
|
240
244
|
msgstr "'%{klass}' беше игнориран."
|
241
245
|
|
242
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
246
|
+
#: ../lib/gettext/tools/xgettext.rb:169
|
243
247
|
msgid "Error parsing %{path}"
|
244
248
|
msgstr ""
|
245
249
|
|
246
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
250
|
+
#: ../lib/gettext/tools/xgettext.rb:228
|
247
251
|
msgid "no input files"
|
248
252
|
msgstr "няма зададени файлове"
|
249
253
|
|
250
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
254
|
+
#: ../lib/gettext/tools/xgettext.rb:241
|
251
255
|
msgid "Usage: %s input.rb [-r parser.rb] [-o output.pot]"
|
252
256
|
msgstr "Употреба: %s input.rb [-r parser.rb] [-o output.pot] "
|
253
257
|
|
254
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
258
|
+
#: ../lib/gettext/tools/xgettext.rb:244
|
255
259
|
msgid "Extract translatable strings from given input files."
|
256
260
|
msgstr "Извличане на преводните низове от зададените файлове."
|
257
261
|
|
258
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
262
|
+
#: ../lib/gettext/tools/xgettext.rb:255
|
259
263
|
msgid "set package name in output"
|
260
264
|
msgstr ""
|
261
265
|
|
262
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
266
|
+
#: ../lib/gettext/tools/xgettext.rb:261
|
263
267
|
msgid "set package version in output"
|
264
268
|
msgstr ""
|
265
269
|
|
266
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
270
|
+
#: ../lib/gettext/tools/xgettext.rb:267
|
267
271
|
msgid "set report e-mail address for msgid bugs"
|
268
272
|
msgstr ""
|
269
273
|
|
270
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
274
|
+
#: ../lib/gettext/tools/xgettext.rb:273
|
271
275
|
msgid "set copyright holder in output"
|
272
276
|
msgstr ""
|
273
277
|
|
274
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
278
|
+
#: ../lib/gettext/tools/xgettext.rb:279
|
275
279
|
msgid "set copyright year in output"
|
276
280
|
msgstr ""
|
277
281
|
|
278
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
282
|
+
#: ../lib/gettext/tools/xgettext.rb:285
|
279
283
|
msgid "set encoding for output"
|
280
284
|
msgstr ""
|
281
285
|
|
282
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
286
|
+
#: ../lib/gettext/tools/xgettext.rb:291
|
283
287
|
msgid "Generate sorted output"
|
284
288
|
msgstr ""
|
285
289
|
|
286
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
290
|
+
#: ../lib/gettext/tools/xgettext.rb:296
|
287
291
|
msgid "Sort output by file location"
|
288
292
|
msgstr ""
|
289
293
|
|
290
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
294
|
+
#: ../lib/gettext/tools/xgettext.rb:334
|
291
295
|
msgid "require the library before executing xgettext"
|
292
296
|
msgstr "заредете библиотеката с require преди да изпълните rgettext"
|
293
297
|
|
294
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
298
|
+
#: ../lib/gettext/tools/xgettext.rb:339
|
299
|
+
msgid "Add PARSER to parser list for xgettext"
|
300
|
+
msgstr ""
|
301
|
+
|
302
|
+
#: ../lib/gettext/tools/xgettext.rb:345
|
295
303
|
msgid "If TAG is specified, place comment blocks starting with TAG and precedding keyword lines in output file"
|
296
304
|
msgstr ""
|
297
305
|
|
298
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
306
|
+
#: ../lib/gettext/tools/xgettext.rb:346
|
299
307
|
msgid "If TAG is not specified, place all comment blocks preceing keyword lines in output file"
|
300
308
|
msgstr ""
|
301
309
|
|
302
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
310
|
+
#: ../lib/gettext/tools/xgettext.rb:347
|
303
311
|
msgid "(default: %s)"
|
304
312
|
msgstr ""
|
305
313
|
|
306
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
314
|
+
#: ../lib/gettext/tools/xgettext.rb:347
|
307
315
|
msgid "no TAG"
|
308
316
|
msgstr ""
|
309
317
|
|
310
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
318
|
+
#: ../lib/gettext/tools/xgettext.rb:351
|
311
319
|
msgid "run in debugging mode"
|
312
320
|
msgstr "изпълнение в режим на дебъгване"
|
313
321
|
|
314
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
322
|
+
#: ../lib/gettext/tools/xgettext.rb:355
|
315
323
|
msgid "display this help and exit"
|
316
324
|
msgstr "показване на версията и изход"
|
317
325
|
|
318
|
-
#: ../lib/gettext/tools/xgettext.rb:
|
326
|
+
#: ../lib/gettext/tools/xgettext.rb:386
|
319
327
|
msgid "Warning: The empty \"\" msgid is reserved by gettext. So gettext(\"\") doesn't returns empty string but the header entry in po file."
|
320
328
|
msgstr ""
|
321
|
-
|
322
|
-
#~ msgid "`%{file}' is not glade-2.0 format."
|
323
|
-
#~ msgstr "`%{file}' не е във формат glade-2.0."
|
data/po/bg/gettext.po
CHANGED
@@ -81,6 +81,9 @@ msgid ""
|
|
81
81
|
"s"
|
82
82
|
msgstr ""
|
83
83
|
|
84
|
+
msgid "Use one line for each reference comment"
|
85
|
+
msgstr ""
|
86
|
+
|
84
87
|
msgid "Ignore fuzzy entries"
|
85
88
|
msgstr ""
|
86
89
|
|
@@ -240,6 +243,9 @@ msgstr ""
|
|
240
243
|
msgid "require the library before executing xgettext"
|
241
244
|
msgstr "заредете библиотеката с require преди да изпълните rgettext"
|
242
245
|
|
246
|
+
msgid "Add PARSER to parser list for xgettext"
|
247
|
+
msgstr ""
|
248
|
+
|
243
249
|
msgid ""
|
244
250
|
"If TAG is specified, place comment blocks starting with TAG and precedding key"
|
245
251
|
"word lines in output file"
|