gettext 1.92.0 → 1.93.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.
- data/ChangeLog +52 -0
- data/NEWS +25 -0
- data/README +21 -18
- data/data/locale/bg/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/bg/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/bs/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/bs/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ca/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ca/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/eo/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/eo/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/et/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/et/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/hr/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/hr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/hu/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/hu/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/it/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/lv/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/lv/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/nb/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/nb/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ru/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ru/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/sr/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/sr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ua/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ua/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/vi/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/vi/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/zh/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/zh/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/zh_TW/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/zh_TW/LC_MESSAGES/rgettext.mo +0 -0
- data/doc/classes/ActionView/Helpers/FormBuilder.html +11 -11
- data/doc/classes/ActionView/TemplateFinder.html +16 -16
- data/doc/classes/GetText.html +556 -521
- data/doc/classes/GetText/ActiveRecordParser.html +13 -13
- data/doc/classes/GetText/ErbContainer.html +12 -12
- data/doc/classes/GetText/ErbParser.html +6 -6
- data/doc/classes/GetText/NoboundTextDomainError.html +1 -1
- data/doc/classes/GetText/PoParser.html +6 -6
- data/doc/classes/GetText/Rails.html +20 -20
- data/doc/classes/GetText/RubyParser.html +5 -0
- data/doc/classes/GetText/TextDomain.html +53 -53
- data/doc/classes/GetText/TextDomainManager.html +54 -54
- data/doc/classes/Locale/Object.html +177 -173
- data/doc/classes/Locale/SystemBase.html +32 -32
- data/doc/classes/Locale/SystemCGI.html +31 -31
- data/doc/classes/Locale/SystemPosix.html +50 -0
- data/doc/classes/Locale/SystemWin32.html +6 -6
- data/doc/created.rid +1 -1
- data/doc/files/ChangeLog.html +69 -1
- data/doc/files/README.html +27 -19
- data/doc/files/lib/gettext/parser/ruby_rb.html +1 -1
- data/doc/files/lib/gettext/rails_rb.html +1 -1
- data/doc/files/lib/gettext/rgettext_rb.html +1 -1
- data/doc/files/lib/gettext/utils_rb.html +1 -1
- data/doc/files/lib/gettext/version_rb.html +1 -1
- data/doc/files/lib/gettext_rb.html +1 -1
- data/doc/files/lib/locale/object_rb.html +1 -1
- data/doc/files/lib/locale/posix_rb.html +1 -1
- data/doc/fr_method_index.html +94 -92
- data/lib/gettext.rb +27 -6
- data/lib/gettext/parser/ruby.rb +9 -2
- data/lib/gettext/rails.rb +11 -6
- data/lib/gettext/rgettext.rb +9 -8
- data/lib/gettext/utils.rb +18 -4
- data/lib/gettext/version.rb +1 -1
- data/lib/locale/object.rb +10 -6
- data/lib/locale/posix.rb +15 -1
- data/po/bg/rails.po +169 -0
- data/po/bg/rgettext.po +146 -0
- data/po/bs/rails.po +34 -34
- data/po/bs/rgettext.po +23 -17
- data/po/ca/rails.po +34 -34
- data/po/ca/rgettext.po +29 -22
- data/po/cs/rails.po +34 -34
- data/po/cs/rgettext.po +23 -17
- data/po/de/rails.po +34 -34
- data/po/de/rgettext.po +30 -22
- data/po/el/rails.po +38 -38
- data/po/el/rgettext.po +29 -22
- data/po/eo/rails.po +34 -34
- data/po/eo/rgettext.po +30 -23
- data/po/es/rails.po +34 -34
- data/po/es/rgettext.po +27 -21
- data/po/et/rails.po +42 -50
- data/po/et/rgettext.po +143 -0
- data/po/fr/rails.po +45 -52
- data/po/fr/rgettext.po +39 -32
- data/po/hr/rails.po +34 -34
- data/po/hr/rgettext.po +23 -17
- data/po/hu/rails.po +34 -34
- data/po/hu/rgettext.po +29 -21
- data/po/it/rails.po +34 -34
- data/po/it/rgettext.po +23 -17
- data/po/ja/rails.po +35 -35
- data/po/ja/rgettext.po +30 -22
- data/po/ko/rails.po +34 -34
- data/po/ko/rgettext.po +23 -17
- data/po/lv/rails.po +57 -37
- data/po/lv/rgettext.po +37 -28
- data/po/nb/rails.po +37 -38
- data/po/nb/rgettext.po +29 -22
- data/po/nl/rails.po +34 -34
- data/po/nl/rgettext.po +23 -17
- data/po/pt_BR/rails.po +34 -34
- data/po/pt_BR/rgettext.po +30 -22
- data/po/rails.pot +34 -34
- data/po/rgettext.pot +23 -17
- data/po/ru/rails.po +37 -37
- data/po/ru/rgettext.po +28 -22
- data/po/sr/rails.po +34 -34
- data/po/sr/rgettext.po +23 -17
- data/po/sv/rgettext.po +23 -17
- data/po/ua/rails.po +41 -39
- data/po/ua/rgettext.po +26 -19
- data/po/vi/rails.po +34 -35
- data/po/vi/rgettext.po +34 -27
- data/po/zh/rails.po +34 -34
- data/po/zh/rgettext.po +28 -22
- data/po/zh_TW/rails.po +34 -34
- data/po/zh_TW/rgettext.po +27 -21
- data/samples/cgi/locale/bg/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/bg/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/bg/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/bg/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/lv/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/lv/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/lv/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/lv/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/nb/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/nb/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/nb/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/nb/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/sr/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/sr/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/sr/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/sr/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/ua/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/ua/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/po/bg/helloerb1.po +59 -0
- data/samples/cgi/po/bg/helloerb2.po +51 -0
- data/samples/cgi/po/bg/hellolib.po +23 -0
- data/samples/cgi/po/bg/main.po +83 -0
- data/samples/locale/bg/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/bg/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/bg/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/bg/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/bg/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/bg/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/bg/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/lv/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/sr/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/ua/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/ua/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/po/bg/hello.po +24 -0
- data/samples/po/bg/hello2.po +31 -0
- data/samples/po/bg/hello_noop.po +27 -0
- data/samples/po/bg/hello_plural.po +25 -0
- data/samples/po/bg/helloglade2.po +31 -0
- data/samples/po/bg/hellogtk.po +23 -0
- data/samples/po/bg/hellotk.po +23 -0
- data/samples/rails/db/schema.rb +2 -4
- data/samples/rails/locale/bg/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/bs/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ca/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/cs/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/el/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/en/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/eo/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/es/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/hr/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/hu/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/it/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/lv/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/nb/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/nl/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ru/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/sr/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ua/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/vi/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/zh/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/zh_TW/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/po/bg/blog.po +101 -0
- data/samples/rails/po/blog.pot +36 -40
- data/samples/rails/po/bs/blog.po +41 -44
- data/samples/rails/po/ca/blog.po +44 -48
- data/samples/rails/po/cs/blog.po +44 -47
- data/samples/rails/po/de/blog.po +44 -47
- data/samples/rails/po/el/blog.po +44 -47
- data/samples/rails/po/en/blog.po +37 -41
- data/samples/rails/po/eo/blog.po +44 -48
- data/samples/rails/po/es/blog.po +44 -48
- data/samples/rails/po/fr/blog.po +44 -47
- data/samples/rails/po/hr/blog.po +41 -45
- data/samples/rails/po/hu/blog.po +41 -45
- data/samples/rails/po/it/blog.po +45 -48
- data/samples/rails/po/ja/blog.po +44 -48
- data/samples/rails/po/ko/blog.po +45 -48
- data/samples/rails/po/lv/blog.po +43 -50
- data/samples/rails/po/nb/blog.po +42 -47
- data/samples/rails/po/nl/blog.po +44 -47
- data/samples/rails/po/pt_BR/blog.po +45 -48
- data/samples/rails/po/ru/blog.po +43 -46
- data/samples/rails/po/sr/blog.po +42 -45
- data/samples/rails/po/ua/blog.po +43 -46
- data/samples/rails/po/vi/blog.po +40 -43
- data/samples/rails/po/zh/blog.po +44 -48
- data/samples/rails/po/zh_TW/blog.po +44 -48
- data/samples/rails/vendor/plugins/gettext/locale/bg/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/bs/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/ca/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/cs/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/de/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/el/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/eo/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/es/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/fr/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/hr/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/hu/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/it/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/ja/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/ko/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/lv/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/nb/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/nl/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/ru/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/sr/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/ua/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/vi/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/zh/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/zh_TW/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/po/bg/gettext_plugin.po +27 -0
- data/samples/rails/vendor/plugins/gettext/po/bs/gettext_plugin.po +6 -6
- data/samples/rails/vendor/plugins/gettext/po/ca/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/cs/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/de/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/el/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/eo/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/es/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/fr/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/gettext_plugin.pot +3 -3
- data/samples/rails/vendor/plugins/gettext/po/hr/gettext_plugin.po +6 -6
- data/samples/rails/vendor/plugins/gettext/po/hu/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/it/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/ja/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/ko/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/lv/gettext_plugin.po +5 -5
- data/samples/rails/vendor/plugins/gettext/po/nb/gettext_plugin.po +6 -7
- data/samples/rails/vendor/plugins/gettext/po/nl/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/pt_BR/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/ru/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/sr/gettext_plugin.po +4 -4
- data/samples/rails/vendor/plugins/gettext/po/ua/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/vi/gettext_plugin.po +3 -4
- data/samples/rails/vendor/plugins/gettext/po/zh/gettext_plugin.po +3 -3
- data/samples/rails/vendor/plugins/gettext/po/zh_TW/gettext_plugin.po +3 -4
- data/test/locale/ja/LC_MESSAGES/active_record.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/test_npgettext.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/test_pgettext.mo +0 -0
- data/test/po/active_record.pot +41 -28
- data/test/po/ja/active_record.po +41 -28
- data/test/po/ja/test_npgettext.po +46 -0
- data/test/test_gettext.rb +10 -0
- data/test/test_locale.rb +5 -0
- data/test/testlib/npgettext.rb +33 -0
- metadata +78 -2
data/lib/gettext/parser/ruby.rb
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
You may redistribute it and/or modify it under the same
|
|
10
10
|
license terms as Ruby.
|
|
11
11
|
|
|
12
|
-
$Id: ruby.rb,v 1.
|
|
12
|
+
$Id: ruby.rb,v 1.12 2008/08/06 17:35:52 mutoh Exp $
|
|
13
13
|
=end
|
|
14
14
|
|
|
15
15
|
require 'irb/ruby-lex.rb'
|
|
@@ -64,6 +64,7 @@ module GetText
|
|
|
64
64
|
ID = ['gettext', '_', 'N_', 'sgettext', 's_']
|
|
65
65
|
PLURAL_ID = ['ngettext', 'n_', 'Nn_', 'ns_', 'nsgettext']
|
|
66
66
|
MSGCTXT_ID = ['pgettext', 'p_']
|
|
67
|
+
MSGCTXT_PLURAL_ID = ['npgettext', 'np_']
|
|
67
68
|
|
|
68
69
|
module_function
|
|
69
70
|
def parse(file, targets = []) # :nodoc:
|
|
@@ -92,6 +93,8 @@ module GetText
|
|
|
92
93
|
target = :plural
|
|
93
94
|
elsif MSGCTXT_ID.include?(tk.name)
|
|
94
95
|
target = :msgctxt
|
|
96
|
+
elsif MSGCTXT_PLURAL_ID.include?(tk.name)
|
|
97
|
+
target = :msgctxt_plural
|
|
95
98
|
else
|
|
96
99
|
target = nil
|
|
97
100
|
end
|
|
@@ -112,8 +115,12 @@ module GetText
|
|
|
112
115
|
msgid += "\000"
|
|
113
116
|
elsif target == :msgctxt
|
|
114
117
|
msgid += "\004"
|
|
118
|
+
elsif target == :msgctxt_plural
|
|
119
|
+
msgid += "\004"
|
|
120
|
+
target = :plural
|
|
121
|
+
else
|
|
122
|
+
target = :normal
|
|
115
123
|
end
|
|
116
|
-
target = :normal
|
|
117
124
|
end
|
|
118
125
|
else
|
|
119
126
|
if msgid
|
data/lib/gettext/rails.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
You may redistribute it and/or modify it under the same
|
|
7
7
|
license terms as Ruby.
|
|
8
8
|
|
|
9
|
-
$Id: rails.rb,v 1.
|
|
9
|
+
$Id: rails.rb,v 1.81 2008/09/13 18:23:56 mutoh Exp $
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'gettext/cgi'
|
|
@@ -275,11 +275,16 @@ module ActionView #:nodoc:
|
|
|
275
275
|
# instead of foo.html.erb. If the file isn't found, foo.html.erb is used.
|
|
276
276
|
def render_file_with_gettext(template_path, use_full_path = true, local_assigns = {})
|
|
277
277
|
locale = GetText.locale
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
278
|
+
begin
|
|
279
|
+
[locale.to_general, locale.to_s, locale.language, Locale.default.language].uniq.each do |v|
|
|
280
|
+
localized_path = "#{template_path}_#{v}"
|
|
281
|
+
if (respond_to? :file_exists?) ? file_exists?(localized_path) : (finder.file_exists? localized_path)
|
|
282
|
+
return render_file_without_gettext(localized_path, use_full_path, local_assigns)
|
|
283
|
+
end
|
|
282
284
|
end
|
|
285
|
+
rescue Exception
|
|
286
|
+
logger.debug($!)
|
|
287
|
+
logger.debug($!.backtrace)
|
|
283
288
|
end
|
|
284
289
|
render_file_without_gettext(template_path, use_full_path, local_assigns)
|
|
285
290
|
end
|
|
@@ -506,7 +511,7 @@ module ActionController #:nodoc: all
|
|
|
506
511
|
def expire_fragment_with_gettext(name, options = nil)
|
|
507
512
|
return unless perform_caching
|
|
508
513
|
|
|
509
|
-
fc_store = (
|
|
514
|
+
fc_store = (respond_to? :cache_store) ? cache_store : fragment_cache_store
|
|
510
515
|
key = name.is_a?(Regexp) ? name : fragment_cache_key_without_gettext(name)
|
|
511
516
|
if key.is_a?(Regexp)
|
|
512
517
|
self.class.benchmark "Expired fragments matching: #{key.source}" do
|
data/lib/gettext/rgettext.rb
CHANGED
|
@@ -25,7 +25,7 @@ module GetText
|
|
|
25
25
|
|
|
26
26
|
# constant values
|
|
27
27
|
VERSION = GetText::VERSION
|
|
28
|
-
DATE = %w($Date: 2008/
|
|
28
|
+
DATE = %w($Date: 2008/08/06 17:35:52 $)[1]
|
|
29
29
|
MAX_LINE_LEN = 70
|
|
30
30
|
|
|
31
31
|
@ex_parsers = []
|
|
@@ -109,19 +109,20 @@ msgstr ""
|
|
|
109
109
|
end
|
|
110
110
|
msgid.gsub!(/"/, '\"')
|
|
111
111
|
msgid.gsub!(/\r/, '')
|
|
112
|
+
if msgid.include?("\004")
|
|
113
|
+
msgctxt, msgid = msgid.split(/\004/)
|
|
114
|
+
str << "\nmsgctxt \"" << msgctxt << "\"\n"
|
|
115
|
+
else
|
|
116
|
+
str << "\n"
|
|
117
|
+
end
|
|
112
118
|
if msgid.include?("\000")
|
|
113
119
|
ids = msgid.split(/\000/)
|
|
114
|
-
str << "
|
|
120
|
+
str << "msgid \"" << ids[0] << "\"\n"
|
|
115
121
|
str << "msgid_plural \"" << ids[1] << "\"\n"
|
|
116
122
|
str << "msgstr[0] \"\"\n"
|
|
117
123
|
str << "msgstr[1] \"\"\n"
|
|
118
|
-
elsif msgid.include?("\004")
|
|
119
|
-
ids = msgid.split(/\004/)
|
|
120
|
-
str << "\nmsgctxt \"" << ids[0] << "\"\n"
|
|
121
|
-
str << "msgid \"" << ids[1] << "\"\n"
|
|
122
|
-
str << "msgstr \"\"\n"
|
|
123
124
|
else
|
|
124
|
-
str << "
|
|
125
|
+
str << "msgid \"" << msgid << "\"\n"
|
|
125
126
|
str << "msgstr \"\"\n"
|
|
126
127
|
end
|
|
127
128
|
end
|
data/lib/gettext/utils.rb
CHANGED
|
@@ -21,8 +21,21 @@ require 'fileutils'
|
|
|
21
21
|
module GetText
|
|
22
22
|
bindtextdomain "rgettext"
|
|
23
23
|
|
|
24
|
+
BOM_UTF8 = [0xef, 0xbb, 0xbf].pack("c3")
|
|
25
|
+
|
|
24
26
|
module_function
|
|
25
27
|
|
|
28
|
+
# Currently, GNU msgmerge doesn't accept BOM.
|
|
29
|
+
# This mesthod remove the UTF-8 BOM from the po-file.
|
|
30
|
+
def remove_bom(path) #:nodoc:
|
|
31
|
+
bom = IO.read(path, 3)
|
|
32
|
+
if bom == BOM_UTF8
|
|
33
|
+
data = IO.read(path)
|
|
34
|
+
File.open(path, "w") do |out|
|
|
35
|
+
out.write(data[3..-1])
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
26
39
|
|
|
27
40
|
# Merges two Uniforum style .po files together.
|
|
28
41
|
#
|
|
@@ -45,15 +58,16 @@ module GetText
|
|
|
45
58
|
# * app_version: the application information which appears "Project-Id-Version: #{app_version}" in the pot/po-files.
|
|
46
59
|
# * Returns: self
|
|
47
60
|
def msgmerge(defpo, refpo, app_version)
|
|
48
|
-
$stderr.
|
|
61
|
+
$stderr.print defpo + " "
|
|
49
62
|
cmd = ENV["MSGMERGE_PATH"] || "msgmerge"
|
|
50
63
|
|
|
51
64
|
cont = ""
|
|
52
65
|
if FileTest.exist? defpo
|
|
53
|
-
`#{cmd} --
|
|
54
|
-
unless $?.success?
|
|
55
|
-
raise _("
|
|
66
|
+
`#{cmd} --help`
|
|
67
|
+
unless $? && $?.success?
|
|
68
|
+
raise _("`%{cmd}' may not be found. \nInstall GNU Gettext then set PATH or MSGMERGE_PATH correctly.") % {:cmd => cmd}
|
|
56
69
|
end
|
|
70
|
+
remove_bom(defpo)
|
|
57
71
|
cont = `#{cmd} #{defpo} #{refpo}`
|
|
58
72
|
else
|
|
59
73
|
File.open(refpo) do |io|
|
data/lib/gettext/version.rb
CHANGED
data/lib/locale/object.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
You may redistribute it and/or modify it under the same
|
|
7
7
|
license terms as Ruby.
|
|
8
8
|
|
|
9
|
-
$Id: object.rb,v 1.
|
|
9
|
+
$Id: object.rb,v 1.4 2008/08/19 16:22:34 mutoh Exp $
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
|
|
@@ -95,11 +95,15 @@ module Locale
|
|
|
95
95
|
# "de_DE@collation=phonebook,currency=DDM" => ["de", "DE", nil, nil, "collation=phonebook,currency=DDM"]
|
|
96
96
|
|
|
97
97
|
def self.parse(locale_name)
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
98
|
+
if locale_name.nil? || locale_name.empty?
|
|
99
|
+
return ["en", nil, nil, nil, nil, nil]
|
|
100
|
+
else
|
|
101
|
+
lang_charset, modifier = locale_name.split(/@/)
|
|
102
|
+
lang, charset = lang_charset.split(/\./)
|
|
103
|
+
language, country, script, variant = lang.gsub(/_/, "-").split('-')
|
|
104
|
+
language = language ? language.downcase : nil
|
|
105
|
+
language = "en" if language == "c" || language == "posix"
|
|
106
|
+
end
|
|
103
107
|
if country
|
|
104
108
|
if country =~ /\A[A-Z][a-z]+\Z/ #Latn => script
|
|
105
109
|
tmp = script
|
data/lib/locale/posix.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
You may redistribute it and/or modify it under the same
|
|
7
7
|
license terms as Ruby.
|
|
8
8
|
|
|
9
|
-
$Id: posix.rb,v 1.
|
|
9
|
+
$Id: posix.rb,v 1.4 2008/09/15 16:32:39 mutoh Exp $
|
|
10
10
|
=end
|
|
11
11
|
|
|
12
12
|
require 'locale/base'
|
|
@@ -16,7 +16,21 @@ module Locale
|
|
|
16
16
|
# This is a low-level class. Application shouldn't use this directly.
|
|
17
17
|
module SystemPosix
|
|
18
18
|
extend SystemBase
|
|
19
|
+
|
|
20
|
+
module_function
|
|
21
|
+
# Gets the charset of the locale.
|
|
22
|
+
# * locale: Locale::Object
|
|
23
|
+
# * Returns the charset of the locale
|
|
24
|
+
def get_charset(locale)
|
|
25
|
+
charset = `LANG=#{locale.to_str};locale charmap`.strip
|
|
26
|
+
unless $? && $?.success?
|
|
27
|
+
charset = "UTF-8"
|
|
28
|
+
end
|
|
29
|
+
charset
|
|
30
|
+
end
|
|
19
31
|
end
|
|
32
|
+
|
|
20
33
|
@@locale_system_module = SystemPosix
|
|
34
|
+
|
|
21
35
|
end
|
|
22
36
|
|
data/po/bg/rails.po
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
#
|
|
2
|
+
# a po-file for Ruby-GetText-Package and Ruby on Rails.
|
|
3
|
+
#
|
|
4
|
+
# Copyright (C) 2005,2006 Masao Mutoh
|
|
5
|
+
# This file is distributed under the same license as the Ruby-GetText-Package.
|
|
6
|
+
#
|
|
7
|
+
# Georgi Stoimenov <georgistoimenov@abv.bg>, 2008
|
|
8
|
+
#
|
|
9
|
+
msgid ""
|
|
10
|
+
msgstr ""
|
|
11
|
+
"Project-Id-Version: ruby-gettext 1.92.0\n"
|
|
12
|
+
"POT-Creation-Date: 2008-09-14 01:48+0900\n"
|
|
13
|
+
"PO-Revision-Date: 2008-07-11 11:35+0300\n"
|
|
14
|
+
"Last-Translator: Sava Chankov <sava.chankov@gmail.com>\n"
|
|
15
|
+
"Language-Team: Bulgarian <ruby-on-rails-bulgaria@googlegroups.com>\n"
|
|
16
|
+
"MIME-Version: 1.0\n"
|
|
17
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
19
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
20
|
+
|
|
21
|
+
#: lib/gettext/rails.rb:327
|
|
22
|
+
msgid "%{num} error prohibited this %{record} from being saved"
|
|
23
|
+
msgid_plural "%{num} errors prohibited this %{record} from being saved"
|
|
24
|
+
msgstr[0] "Поради %{num} грешка %{record} не беше записан"
|
|
25
|
+
msgstr[1] "Поради %{num} грешки %{record} не беше записан"
|
|
26
|
+
|
|
27
|
+
#: lib/gettext/rails.rb:329
|
|
28
|
+
msgid "There was a problem with the following field:"
|
|
29
|
+
msgid_plural "There were problems with the following fields:"
|
|
30
|
+
msgstr[0] "Проблемът се дължи на:"
|
|
31
|
+
msgstr[1] "Проблемите се дължат на:"
|
|
32
|
+
|
|
33
|
+
#: lib/gettext/rails.rb:435
|
|
34
|
+
msgid "less than 5 seconds"
|
|
35
|
+
msgstr "по-малко от 5 секунди"
|
|
36
|
+
|
|
37
|
+
#: lib/gettext/rails.rb:435
|
|
38
|
+
msgid "less than 10 seconds"
|
|
39
|
+
msgstr "по-малко от 10 секунди"
|
|
40
|
+
|
|
41
|
+
#: lib/gettext/rails.rb:435
|
|
42
|
+
msgid "less than 20 seconds"
|
|
43
|
+
msgstr "по-малко от 20 секунди"
|
|
44
|
+
|
|
45
|
+
#: lib/gettext/rails.rb:436
|
|
46
|
+
msgid "half a minute"
|
|
47
|
+
msgstr "половин минута"
|
|
48
|
+
|
|
49
|
+
#: lib/gettext/rails.rb:436
|
|
50
|
+
msgid "less than a minute"
|
|
51
|
+
msgstr "по-малко от минута"
|
|
52
|
+
|
|
53
|
+
#: lib/gettext/rails.rb:436
|
|
54
|
+
msgid "about 1 month"
|
|
55
|
+
msgstr "около 1 месец"
|
|
56
|
+
|
|
57
|
+
#: lib/gettext/rails.rb:437
|
|
58
|
+
msgid "about 1 year"
|
|
59
|
+
msgstr "около 1 година"
|
|
60
|
+
|
|
61
|
+
#: lib/gettext/rails.rb:438
|
|
62
|
+
msgid "1 minute"
|
|
63
|
+
msgid_plural "%{num} minutes"
|
|
64
|
+
msgstr[0] "1 минута"
|
|
65
|
+
msgstr[1] "%{num} минути"
|
|
66
|
+
|
|
67
|
+
#: lib/gettext/rails.rb:439
|
|
68
|
+
msgid "about 1 hour"
|
|
69
|
+
msgid_plural "about %{num} hours"
|
|
70
|
+
msgstr[0] "около час"
|
|
71
|
+
msgstr[1] "около %{num} часа"
|
|
72
|
+
|
|
73
|
+
#: lib/gettext/rails.rb:440
|
|
74
|
+
msgid "1 day"
|
|
75
|
+
msgid_plural "%{num} days"
|
|
76
|
+
msgstr[0] "1 ден"
|
|
77
|
+
msgstr[1] "%{num} дни"
|
|
78
|
+
|
|
79
|
+
#: lib/gettext/rails.rb:441
|
|
80
|
+
msgid "1 month"
|
|
81
|
+
msgid_plural "%{num} months"
|
|
82
|
+
msgstr[0] "1 месец"
|
|
83
|
+
msgstr[1] "%{num} месеци"
|
|
84
|
+
|
|
85
|
+
#: lib/gettext/rails.rb:442
|
|
86
|
+
msgid "over 1 year"
|
|
87
|
+
msgid_plural "over %{num} years"
|
|
88
|
+
msgstr[0] "повече от година"
|
|
89
|
+
msgstr[1] "повече %{num} години"
|
|
90
|
+
|
|
91
|
+
#: lib/gettext/active_record.rb:28
|
|
92
|
+
msgid "Validation failed: %{error_messages}"
|
|
93
|
+
msgstr "Неуспешна валидация: %{error_messages}"
|
|
94
|
+
|
|
95
|
+
#: lib/gettext/active_record.rb:247
|
|
96
|
+
msgid "%{fn} is not included in the list"
|
|
97
|
+
msgstr "Полето „%{fn}“ не е в списъка"
|
|
98
|
+
|
|
99
|
+
#: lib/gettext/active_record.rb:248
|
|
100
|
+
msgid "%{fn} is reserved"
|
|
101
|
+
msgstr "Полето „%{fn}“ е резервирано"
|
|
102
|
+
|
|
103
|
+
#: lib/gettext/active_record.rb:249
|
|
104
|
+
msgid "%{fn} is invalid"
|
|
105
|
+
msgstr "Полето „%{fn}“ е невалидно"
|
|
106
|
+
|
|
107
|
+
#: lib/gettext/active_record.rb:250
|
|
108
|
+
msgid "%{fn} doesn't match confirmation"
|
|
109
|
+
msgstr "%{fn} не съвпада"
|
|
110
|
+
|
|
111
|
+
#: lib/gettext/active_record.rb:251
|
|
112
|
+
msgid "%{fn} must be accepted"
|
|
113
|
+
msgstr "Полето „%{fn}“ трябва бъде прието"
|
|
114
|
+
|
|
115
|
+
#: lib/gettext/active_record.rb:252
|
|
116
|
+
msgid "%{fn} can't be empty"
|
|
117
|
+
msgstr "Полето „%{fn}“ не може да е празно"
|
|
118
|
+
|
|
119
|
+
#: lib/gettext/active_record.rb:253
|
|
120
|
+
msgid "%{fn} can't be blank"
|
|
121
|
+
msgstr "Полето „%{fn}“ не може да е празно"
|
|
122
|
+
|
|
123
|
+
#: lib/gettext/active_record.rb:254
|
|
124
|
+
msgid "%{fn} is too long (maximum is %d characters)"
|
|
125
|
+
msgstr "Полето „%{fn}“ е много дълго (максимумът е %d символа)"
|
|
126
|
+
|
|
127
|
+
#: lib/gettext/active_record.rb:255
|
|
128
|
+
msgid "%{fn} is too short (minimum is %d characters)"
|
|
129
|
+
msgstr "Полето „%{fn}“ е много късо (минимумът е %d символа)"
|
|
130
|
+
|
|
131
|
+
#: lib/gettext/active_record.rb:256
|
|
132
|
+
msgid "%{fn} is the wrong length (should be %d characters)"
|
|
133
|
+
msgstr "Полето „%{fn}“ е с неправилна дължина (трябва да е %d символа)"
|
|
134
|
+
|
|
135
|
+
#: lib/gettext/active_record.rb:257
|
|
136
|
+
msgid "%{fn} has already been taken"
|
|
137
|
+
msgstr "Полето „%{fn}“ е вече заето"
|
|
138
|
+
|
|
139
|
+
#: lib/gettext/active_record.rb:258
|
|
140
|
+
msgid "%{fn} is not a number"
|
|
141
|
+
msgstr "Полето „%{fn}“ не е число"
|
|
142
|
+
|
|
143
|
+
#: lib/gettext/active_record.rb:259
|
|
144
|
+
msgid "%{fn} must be greater than %d"
|
|
145
|
+
msgstr "Полето „%{fn}“ трябва бъде по-голямо от %d"
|
|
146
|
+
|
|
147
|
+
#: lib/gettext/active_record.rb:260
|
|
148
|
+
msgid "%{fn} must be greater than or equal to %d"
|
|
149
|
+
msgstr "Полето „%{fn}“ трябва бъде по-голямо или равно на %d"
|
|
150
|
+
|
|
151
|
+
#: lib/gettext/active_record.rb:261
|
|
152
|
+
msgid "%{fn} must be equal to %d"
|
|
153
|
+
msgstr "Полето „%{fn}“ трябва бъде равно на %d"
|
|
154
|
+
|
|
155
|
+
#: lib/gettext/active_record.rb:262
|
|
156
|
+
msgid "%{fn} must be less than %d"
|
|
157
|
+
msgstr "Полето „%{fn}“ трябва бъде по-малко от %d"
|
|
158
|
+
|
|
159
|
+
#: lib/gettext/active_record.rb:263
|
|
160
|
+
msgid "%{fn} must be less than or equal to %d"
|
|
161
|
+
msgstr "Полето „%{fn}“ трябва бъде по-малко или равно на %d"
|
|
162
|
+
|
|
163
|
+
#: lib/gettext/active_record.rb:264
|
|
164
|
+
msgid "%{fn} must be odd"
|
|
165
|
+
msgstr "Полето „%{fn}“ трябва бъде нечетно"
|
|
166
|
+
|
|
167
|
+
#: lib/gettext/active_record.rb:265
|
|
168
|
+
msgid "%{fn} must be even"
|
|
169
|
+
msgstr "Полето „%{fn}“ трябва бъде четно"
|
data/po/bg/rgettext.po
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
#
|
|
2
|
+
# a po-file for Ruby-GetText-Package
|
|
3
|
+
#
|
|
4
|
+
# Copyright (C) 2004-2006 Masao Mutoh
|
|
5
|
+
# This file is distributed under the same license as the Ruby-GetText-Package.
|
|
6
|
+
#
|
|
7
|
+
# Georgi Stoimenov <georgistoimenov@abv.bg>, 2008
|
|
8
|
+
#
|
|
9
|
+
msgid ""
|
|
10
|
+
msgstr ""
|
|
11
|
+
"Project-Id-Version: ruby-gettext 1.92.0\n"
|
|
12
|
+
"POT-Creation-Date: 2008-09-14 01:48+0900\n"
|
|
13
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
14
|
+
"Last-Translator: Sava Chankov <sava.chankov@gmail.com>\n"
|
|
15
|
+
"Language-Team: Bulgarian <ruby-on-rails-bulgaria@googlegroups.com>\n"
|
|
16
|
+
"MIME-Version: 1.0\n"
|
|
17
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
19
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
20
|
+
|
|
21
|
+
#: lib/gettext/utils.rb:68
|
|
22
|
+
msgid ""
|
|
23
|
+
"`%{cmd}' may not be found. \n"
|
|
24
|
+
"Install GNU Gettext then set PATH or MSGMERGE_PATH correctly."
|
|
25
|
+
msgstr ""
|
|
26
|
+
|
|
27
|
+
#: lib/gettext/utils.rb:80
|
|
28
|
+
msgid "Failed to merge with %{defpo}"
|
|
29
|
+
msgstr "Пропадна сливането с %{defpo}"
|
|
30
|
+
|
|
31
|
+
#: lib/gettext/utils.rb:81
|
|
32
|
+
msgid "New .pot was copied to %{failed_filename}"
|
|
33
|
+
msgstr "Новия .pot беше копиран като %{failed_filename}"
|
|
34
|
+
|
|
35
|
+
#: lib/gettext/utils.rb:82
|
|
36
|
+
msgid "Check these po/pot-files. It may have syntax errors or something wrong."
|
|
37
|
+
msgstr ""
|
|
38
|
+
"Проверете тези po/pot файлове. Може да имат синтактични грешки или нещо "
|
|
39
|
+
"друго."
|
|
40
|
+
|
|
41
|
+
#: lib/gettext/rgettext.rb:43
|
|
42
|
+
msgid "'%{klass}' is ignored."
|
|
43
|
+
msgstr "'%{klass}' беше игнориран."
|
|
44
|
+
|
|
45
|
+
#: lib/gettext/rgettext.rb:189
|
|
46
|
+
msgid "Usage: %s input.rb [-r parser.rb] [-o output.pot]"
|
|
47
|
+
msgstr "Употреба: %s input.rb [-r parser.rb] [-o output.pot] "
|
|
48
|
+
|
|
49
|
+
#: lib/gettext/rgettext.rb:191
|
|
50
|
+
msgid "Extract translatable strings from given input files."
|
|
51
|
+
msgstr "Извличане на преводните низове от зададените файлове."
|
|
52
|
+
|
|
53
|
+
#: lib/gettext/rgettext.rb:193 lib/gettext/rmsgfmt.rb:51
|
|
54
|
+
#: lib/gettext/rmsgmerge.rb:408
|
|
55
|
+
msgid "Specific options:"
|
|
56
|
+
msgstr "Специфични опции:"
|
|
57
|
+
|
|
58
|
+
#: lib/gettext/rgettext.rb:195 lib/gettext/rmsgfmt.rb:53
|
|
59
|
+
#: lib/gettext/rmsgmerge.rb:410
|
|
60
|
+
msgid "write output to specified file"
|
|
61
|
+
msgstr "изходът беше записан в зададения файл"
|
|
62
|
+
|
|
63
|
+
#: lib/gettext/rgettext.rb:199
|
|
64
|
+
msgid "File '%s' already exists."
|
|
65
|
+
msgstr "Файлът '%s' съществува."
|
|
66
|
+
|
|
67
|
+
#: lib/gettext/rgettext.rb:204
|
|
68
|
+
msgid "require the library before executing rgettext"
|
|
69
|
+
msgstr "заредете библиотеката с require преди да изпълните rgettext"
|
|
70
|
+
|
|
71
|
+
#: lib/gettext/rgettext.rb:208
|
|
72
|
+
msgid "run in debugging mode"
|
|
73
|
+
msgstr "изпълнение в режим на дебъгване"
|
|
74
|
+
|
|
75
|
+
#: lib/gettext/rgettext.rb:212 lib/gettext/rmsgfmt.rb:57
|
|
76
|
+
#: lib/gettext/rmsgmerge.rb:421
|
|
77
|
+
msgid "display version information and exit"
|
|
78
|
+
msgstr "показване на версията и изход"
|
|
79
|
+
|
|
80
|
+
#: lib/gettext/rgettext.rb:236 lib/gettext/rmsgfmt.rb:31
|
|
81
|
+
msgid "no input files"
|
|
82
|
+
msgstr "няма зададени файлове"
|
|
83
|
+
|
|
84
|
+
#: lib/gettext/rmsgfmt.rb:47
|
|
85
|
+
msgid "Usage: %s input.po [-o output.mo]"
|
|
86
|
+
msgstr "Употреба: %s input.po [-o output.mo]"
|
|
87
|
+
|
|
88
|
+
#: lib/gettext/rmsgfmt.rb:49
|
|
89
|
+
msgid "Generate binary message catalog from textual translation description."
|
|
90
|
+
msgstr "Генериране на двоични файлове с преводите от текстовите описания."
|
|
91
|
+
|
|
92
|
+
#: lib/gettext/rmsgmerge.rb:403
|
|
93
|
+
msgid "Usage: %s def.po ref.pot [-o output.pot]"
|
|
94
|
+
msgstr "Употреба: %s def.po ref.pot [-o output.pot]"
|
|
95
|
+
|
|
96
|
+
#: lib/gettext/rmsgmerge.rb:406
|
|
97
|
+
msgid ""
|
|
98
|
+
"Merges two Uniforum style .po files together. The def.po file is an existing "
|
|
99
|
+
"PO file with translations. The ref.pot file is the last created PO file with "
|
|
100
|
+
"up-to-date source references. ref.pot is generally created by rgettext."
|
|
101
|
+
msgstr ""
|
|
102
|
+
"Слива два Uniforum .pо файла. def.po е съществуващ PO файл с преводи. ref."
|
|
103
|
+
"pot е пресен PO файл с актуални референции към кода. ref.pot обикновено е "
|
|
104
|
+
"създаден от rgettext."
|
|
105
|
+
|
|
106
|
+
#: lib/gettext/rmsgmerge.rb:447
|
|
107
|
+
msgid "definition po is not given."
|
|
108
|
+
msgstr "съществуващия po не е зададен."
|
|
109
|
+
|
|
110
|
+
#: lib/gettext/rmsgmerge.rb:449
|
|
111
|
+
msgid "reference pot is not given."
|
|
112
|
+
msgstr "pot с референциите не е зададен."
|
|
113
|
+
|
|
114
|
+
#: lib/gettext/parser/glade.rb:74
|
|
115
|
+
msgid "`%{file}' is not glade-2.0 format."
|
|
116
|
+
msgstr "`%{file}' не е във формат glade-2.0."
|
|
117
|
+
|
|
118
|
+
#: lib/gettext/parser/active_record.rb:39
|
|
119
|
+
msgid "'%{file}' is not found."
|
|
120
|
+
msgstr "'%{file}' не беше намерен."
|
|
121
|
+
|
|
122
|
+
#: lib/gettext/parser/active_record.rb:80
|
|
123
|
+
msgid "Ignored '%{file}'. Solve dependencies first."
|
|
124
|
+
msgstr "'%{file}' беше игнориран. Първо оправете зависимостите."
|
|
125
|
+
|
|
126
|
+
#: lib/gettext/parser/active_record.rb:104
|
|
127
|
+
msgid "No database is available."
|
|
128
|
+
msgstr "Базата данни я е хванала липса."
|
|
129
|
+
|
|
130
|
+
#: lib/gettext/parser/active_record.rb:140
|
|
131
|
+
msgid "rubygems are not found."
|
|
132
|
+
msgstr "rubygems липсват."
|
|
133
|
+
|
|
134
|
+
#: lib/gettext.rb:417
|
|
135
|
+
msgid "3rd parmeter is wrong: value = %{number}"
|
|
136
|
+
msgstr "Третият параметър е грешен: value = %{number}"
|
|
137
|
+
|
|
138
|
+
#: src/poparser.ry:38 src/poparser.ry:55
|
|
139
|
+
msgid "Warning: fuzzy message was ignored.\n"
|
|
140
|
+
msgstr "Предупреждение: беше игнорирано неточно съобщение"
|
|
141
|
+
|
|
142
|
+
#: src/poparser.ry:148
|
|
143
|
+
msgid "Warning: obsolete msgid exists.\n"
|
|
144
|
+
msgstr ""
|
|
145
|
+
"Предупреждение: има несъществуващи вече msgid\n"
|
|
146
|
+
"."
|