gettext 1.91.0 → 1.92.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 +111 -1
- data/NEWS +35 -0
- data/README +26 -24
- data/bin/rgettext +2 -2
- data/bin/rmsgfmt +2 -2
- data/bin/rmsgmerge +2 -2
- data/doc/classes/ActionView/Helpers/FormBuilder.html +11 -11
- data/doc/classes/ActionView/TemplateFinder.html +152 -0
- data/doc/classes/ActiveRecord/Base.html +87 -87
- data/doc/classes/ActiveRecord/ConnectionAdapters/Column.html +6 -6
- data/doc/classes/GetText.html +617 -491
- 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 +11 -11
- 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/Iconv.html +20 -20
- data/doc/classes/Locale.html +151 -151
- data/doc/classes/Locale/Object.html +92 -92
- data/doc/classes/Locale/SystemBase.html +32 -32
- data/doc/classes/Locale/SystemCGI.html +31 -31
- data/doc/classes/Locale/SystemWin32.html +6 -6
- data/doc/classes/MOFile.html +311 -293
- data/doc/classes/MOFile/HeaderRev1.html +150 -0
- data/doc/classes/Module.html +6 -6
- data/doc/created.rid +1 -1
- data/doc/files/ChangeLog.html +143 -2
- data/doc/files/README.html +31 -25
- data/doc/files/lib/gettext/active_record_rb.html +1 -1
- data/doc/files/lib/gettext/mo_rb.html +1 -1
- data/doc/files/lib/gettext/parser/active_record_rb.html +1 -1
- data/doc/files/lib/gettext/parser/ruby_rb.html +1 -1
- data/doc/files/lib/gettext/poparser_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/rmsgfmt_rb.html +2 -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/fr_class_index.html +2 -0
- data/doc/fr_method_index.html +133 -129
- data/lib/gettext.rb +49 -7
- data/lib/gettext/active_record.rb +49 -4
- data/lib/gettext/mo.rb +39 -12
- data/lib/gettext/parser/active_record.rb +6 -4
- data/lib/gettext/parser/ruby.rb +11 -4
- data/lib/gettext/poparser.rb +81 -52
- data/lib/gettext/rails.rb +28 -11
- data/lib/gettext/rgettext.rb +6 -1
- data/lib/gettext/rmsgfmt.rb +3 -11
- data/lib/gettext/utils.rb +7 -3
- data/lib/gettext/version.rb +1 -1
- data/po/bs/rails.po +55 -20
- data/po/bs/rgettext.po +3 -3
- data/po/ca/rails.po +58 -31
- data/po/ca/rgettext.po +16 -18
- data/po/cs/rails.po +55 -20
- data/po/cs/rgettext.po +3 -3
- data/po/de/rails.po +55 -27
- data/po/de/rgettext.po +21 -22
- data/po/el/rails.po +60 -36
- data/po/el/rgettext.po +15 -17
- data/po/eo/rails.po +51 -23
- data/po/eo/rgettext.po +21 -20
- data/po/es/rails.po +57 -31
- data/po/es/rgettext.po +17 -18
- data/po/et/rails.po +55 -20
- data/po/fr/rails.po +56 -21
- data/po/fr/rgettext.po +3 -3
- data/po/hr/rails.po +55 -20
- data/po/hr/rgettext.po +3 -3
- data/po/hu/rails.po +54 -26
- data/po/hu/rgettext.po +18 -17
- data/po/it/rails.po +55 -20
- data/po/it/rgettext.po +3 -3
- data/po/ja/rails.po +54 -26
- data/po/ja/rgettext.po +17 -18
- data/po/ko/rails.po +56 -21
- data/po/ko/rgettext.po +3 -3
- data/po/lv/rails.po +155 -0
- data/po/lv/rgettext.po +137 -0
- data/po/nb/rails.po +61 -34
- data/po/nb/rgettext.po +22 -19
- data/po/nl/rails.po +56 -21
- data/po/nl/rgettext.po +3 -3
- data/po/pt_BR/rails.po +53 -26
- data/po/pt_BR/rgettext.po +19 -19
- data/po/rails.pot +44 -16
- data/po/rgettext.pot +3 -3
- data/po/ru/rails.po +62 -36
- data/po/ru/rgettext.po +19 -19
- data/po/sr/rails.po +87 -58
- data/po/sr/rgettext.po +38 -33
- data/po/sv/rgettext.po +3 -3
- data/po/ua/rails.po +62 -32
- data/po/ua/rgettext.po +19 -17
- data/po/vi/rails.po +56 -28
- data/po/vi/rgettext.po +35 -34
- data/po/zh/rails.po +52 -24
- data/po/zh/rgettext.po +22 -24
- data/po/zh_TW/rails.po +51 -23
- data/po/zh_TW/rgettext.po +16 -18
- data/samples/cgi/cookie.cgi +0 -0
- data/samples/cgi/helloerb1.cgi +0 -0
- data/samples/cgi/helloerb2.cgi +0 -0
- data/samples/cgi/http.rb +0 -0
- data/samples/cgi/index.cgi +0 -0
- data/samples/cgi/po/lv/helloerb1.po +65 -0
- data/samples/cgi/po/lv/helloerb2.po +52 -0
- data/samples/cgi/po/lv/hellolib.po +24 -0
- data/samples/cgi/po/lv/main.po +77 -0
- data/samples/cgi/po/nb/helloerb1.po +16 -14
- data/samples/cgi/po/nb/helloerb2.po +14 -12
- data/samples/cgi/po/nb/hellolib.po +9 -7
- data/samples/cgi/po/nb/main.po +20 -18
- data/samples/cgi/po/sr/helloerb1.po +8 -8
- data/samples/cgi/po/sr/helloerb2.po +6 -6
- data/samples/cgi/po/sr/hellolib.po +2 -2
- data/samples/cgi/po/sr/main.po +15 -15
- data/samples/cgi/po/ua/helloerb1.po +2 -2
- data/samples/cgi/po/ua/main.po +3 -3
- data/samples/hello_plural.rb +0 -0
- data/samples/makemo.rb +0 -0
- data/samples/po/lv/hello.po +24 -0
- data/samples/po/lv/hello2.po +32 -0
- data/samples/po/lv/hello_noop.po +28 -0
- data/samples/po/lv/hello_plural.po +26 -0
- data/samples/po/lv/helloglade2.po +38 -0
- data/samples/po/lv/hellogtk.po +24 -0
- data/samples/po/lv/hellotk.po +24 -0
- data/samples/po/nb/hello.po +9 -8
- data/samples/po/nb/hello2.po +9 -9
- data/samples/po/nb/hello_noop.po +10 -9
- data/samples/po/nb/hello_plural.po +10 -8
- data/samples/po/nb/helloglade2.po +10 -8
- data/samples/po/nb/hellogtk.po +9 -8
- data/samples/po/nb/hellotk.po +9 -7
- data/samples/po/sr/hello.po +2 -2
- data/samples/po/sr/hello2.po +4 -4
- data/samples/po/sr/hello_noop.po +3 -3
- data/samples/po/sr/hello_plural.po +3 -3
- data/samples/po/sr/helloglade2.po +4 -4
- data/samples/po/sr/hellogtk.po +2 -2
- data/samples/po/sr/hellotk.po +2 -2
- data/samples/po/ua/hello2.po +2 -2
- data/samples/po/ua/hello_plural.po +2 -2
- data/samples/rails/config/boot.rb +3 -2
- data/samples/rails/config/environment.rb +2 -3
- data/samples/rails/db/schema.rb +0 -0
- data/samples/rails/po/lv/blog.po +110 -0
- data/samples/rails/po/nb/blog.po +19 -15
- data/samples/rails/po/sr/blog.po +23 -23
- data/samples/rails/po/ua/blog.po +3 -3
- data/samples/rails/public/dispatch.cgi +0 -0
- data/samples/rails/public/dispatch.fcgi +0 -0
- data/samples/rails/public/dispatch.rb +0 -0
- data/samples/rails/public/javascripts/controls.js +1 -1
- data/samples/rails/public/javascripts/dragdrop.js +1 -1
- data/samples/rails/public/javascripts/effects.js +1 -1
- data/samples/rails/script/about +0 -0
- data/samples/rails/script/breakpointer +0 -0
- data/samples/rails/script/console +0 -0
- data/samples/rails/script/destroy +0 -0
- data/samples/rails/script/generate +0 -0
- data/samples/rails/script/performance/benchmarker +0 -0
- data/samples/rails/script/performance/profiler +0 -0
- data/samples/rails/script/plugin +0 -0
- data/samples/rails/script/process/reaper +0 -0
- data/samples/rails/script/process/spawner +0 -0
- data/samples/rails/script/process/spinner +0 -0
- data/samples/rails/script/runner +0 -0
- data/samples/rails/script/server +0 -0
- data/samples/rails/vendor/plugins/gettext/po/lv/gettext_plugin.po +28 -0
- data/samples/rails/vendor/plugins/gettext/po/nb/gettext_plugin.po +11 -8
- data/samples/rails/vendor/plugins/gettext/po/sr/gettext_plugin.po +5 -5
- data/src/poparser.ry +27 -6
- data/test/benchmark.rb +1 -1
- data/test/db/mysql.drop.sql +1 -0
- data/test/db/mysql.sql +13 -0
- data/test/fixtures/inept_wizard.rb +3 -0
- data/test/fixtures/people.yml +6 -0
- data/test/fixtures/topic.rb +30 -0
- data/test/fixtures/wizard.rb +5 -0
- data/test/po/active_record.pot +151 -66
- data/test/po/ja/active_record.po +177 -92
- data/test/po/ja/test_pgettext.po +41 -0
- data/test/rails/app/controllers/users_controller.rb +1 -0
- data/test/rails/app/views/articles/_form_fr.html.erb +1 -0
- data/test/rails/config/boot.rb +96 -32
- data/test/rails/config/environment.rb +3 -2
- data/test/rails/db/schema.rb +4 -4
- data/test/rails/public/dispatch.cgi +0 -0
- data/test/rails/public/dispatch.fcgi +0 -0
- data/test/rails/public/dispatch.rb +0 -0
- data/test/rails/public/javascripts/controls.js +484 -354
- data/test/rails/public/javascripts/dragdrop.js +88 -58
- data/test/rails/public/javascripts/effects.js +396 -364
- data/test/rails/public/javascripts/prototype.js +2817 -1107
- data/test/rails/script/about +0 -0
- data/test/rails/script/breakpointer +0 -0
- data/test/rails/script/console +0 -0
- data/test/rails/script/destroy +0 -0
- data/test/rails/script/generate +0 -0
- data/test/rails/script/performance/benchmarker +0 -0
- data/test/rails/script/performance/profiler +0 -0
- data/test/rails/script/plugin +0 -0
- data/test/rails/script/process/inspector +0 -0
- data/test/rails/script/process/reaper +0 -0
- data/test/rails/script/process/spawner +0 -0
- data/test/rails/script/runner +0 -0
- data/test/rails/script/server +0 -0
- data/test/rails/test/functional/articles_controller_test.rb +5 -0
- data/test/rails/test/result/en/create_error.html +3 -3
- data/test/rails/test/result/en/custom_error_message.html +3 -3
- data/test/rails/test/result/en/custom_error_message_with_plural.html +60 -60
- data/test/rails/test/result/en/multi_error_messages_for.html +6 -6
- data/test/rails/test/result/en/new.html +3 -3
- data/test/rails/test/result/fr/custom_error_message.html +3 -3
- data/test/rails/test/result/fr/custom_error_message_with_plural.html +60 -60
- data/test/rails/test/result/fr/new.html +23 -0
- data/test/rails/test/result/ja/create_error.html +3 -3
- data/test/rails/test/result/ja/custom_error_message.html +3 -3
- data/test/rails/test/result/ja/custom_error_message_with_plural.html +60 -60
- data/test/rails/test/result/ja/multi_error_messages_for.html +6 -6
- data/test/rails/test/result/ja/new.html +3 -3
- data/test/test.sh +2 -2
- data/test/test_active_record.rb +824 -20
- data/test/test_gettext.rb +34 -4
- data/test/test_java.sh +0 -0
- data/test/test_locale.rb +2 -2
- data/test/test_parser.rb +13 -2
- data/test/test_rails_caching.rb +11 -4
- data/test/testlib/pgettext.rb +33 -0
- metadata +32 -4
data/samples/po/nb/hello_noop.po
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
# Hello World noop -- sample for ruby-gettext-package
|
|
2
2
|
# Copyright (C) 2002-2006 Masao Mutoh
|
|
3
3
|
# This file is distributed under the same license as the Ruby-GetText-Package.
|
|
4
|
-
#
|
|
5
|
-
#
|
|
4
|
+
# Runar Ingebrigtsen <runar@mopo.no>, 2008.
|
|
5
|
+
# , fuzzy
|
|
6
|
+
#
|
|
6
7
|
#
|
|
7
8
|
msgid ""
|
|
8
9
|
msgstr ""
|
|
9
10
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
11
|
+
"Report-Msgid-Bugs-To: \n"
|
|
10
12
|
"POT-Creation-Date: 2002-02-21 23:23:08+0900\n"
|
|
11
|
-
"PO-Revision-Date:
|
|
12
|
-
"Last-Translator:
|
|
13
|
-
"Language-Team: Norwegian
|
|
13
|
+
"PO-Revision-Date: 2008-07-14 16:30+0200\n"
|
|
14
|
+
"Last-Translator: Runar Ingebrigtsen <runar@mopo.no>\n"
|
|
15
|
+
"Language-Team: Norwegian/Bokmaal <i18n-nb@lister.ping.uio.no>\n"
|
|
14
16
|
"MIME-Version: 1.0\n"
|
|
15
17
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
16
|
-
"Content-Transfer-Encoding: 8bit
|
|
17
|
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Transfer-Encoding: 8bit"
|
|
18
19
|
|
|
19
20
|
#: hello_noop.rb:8
|
|
20
21
|
msgid "Hello World"
|
|
21
|
-
msgstr "
|
|
22
|
+
msgstr "Smil til verden"
|
|
22
23
|
|
|
23
24
|
#: hello_noop.rb:8
|
|
24
25
|
msgid "Hello World2"
|
|
25
|
-
msgstr "
|
|
26
|
+
msgstr "Smil til verden 2"
|
|
26
27
|
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
# hello_plural.po - sample for plural messages
|
|
2
2
|
# Copyright (C) 2002-2006 Masao Mutoh
|
|
3
3
|
# This file is distributed under the same license as the Ruby-GetText-Package.
|
|
4
|
-
#
|
|
5
|
-
#
|
|
4
|
+
# Runar Ingebrigtsen <runar@mopo.no>, 2008.
|
|
5
|
+
# , fuzzy
|
|
6
|
+
#
|
|
6
7
|
#
|
|
7
8
|
msgid ""
|
|
8
9
|
msgstr ""
|
|
9
10
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
11
|
+
"Report-Msgid-Bugs-To: \n"
|
|
10
12
|
"POT-Creation-Date: 2002-10-21 15:32:15+0900\n"
|
|
11
|
-
"PO-Revision-Date:
|
|
12
|
-
"Last-Translator:
|
|
13
|
-
"Language-Team: Norwegian
|
|
13
|
+
"PO-Revision-Date: 2008-07-14 16:31+0200\n"
|
|
14
|
+
"Last-Translator: Runar Ingebrigtsen <runar@mopo.no>\n"
|
|
15
|
+
"Language-Team: Norwegian/Bokmaal <i18n-nb@lister.ping.uio.no>\n"
|
|
14
16
|
"MIME-Version: 1.0\n"
|
|
15
17
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
16
18
|
"Content-Transfer-Encoding: 8bit\n"
|
|
17
|
-
"Plural-Forms: nplurals=2; plural=
|
|
19
|
+
"Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;"
|
|
18
20
|
|
|
19
21
|
#: hello_plural.rb:11
|
|
20
22
|
msgid "There is an apple.\n"
|
|
21
23
|
msgid_plural "There are %{num} apples.\n"
|
|
22
|
-
msgstr[0] "
|
|
23
|
-
msgstr[1] "
|
|
24
|
+
msgstr[0] "Der er et eple.\n"
|
|
25
|
+
msgstr[1] "Der er %{num} epler.\n"
|
|
24
26
|
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
# helloglade2.po - sample for Ruby/Libglade2
|
|
2
2
|
# Copyright (C) 2005,2006 Masao Mutoh
|
|
3
3
|
# This file is distributed under the same license as the Ruby-GetText-Package.
|
|
4
|
-
#
|
|
5
|
-
#
|
|
4
|
+
# Runar Ingebrigtsen <runar@mopo.no>, 2008.
|
|
5
|
+
# , fuzzy
|
|
6
|
+
#
|
|
6
7
|
#
|
|
7
8
|
msgid ""
|
|
8
9
|
msgstr ""
|
|
9
10
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
11
|
+
"Report-Msgid-Bugs-To: \n"
|
|
10
12
|
"POT-Creation-Date: 2004-07-03 23:38+0900\n"
|
|
11
|
-
"PO-Revision-Date:
|
|
12
|
-
"Last-Translator:
|
|
13
|
-
"Language-Team: Norwegian
|
|
13
|
+
"PO-Revision-Date: 2008-07-14 16:29+0200\n"
|
|
14
|
+
"Last-Translator: Runar Ingebrigtsen <runar@mopo.no>\n"
|
|
15
|
+
"Language-Team: Norwegian/Bokmaal <i18n-nb@lister.ping.uio.no>\n"
|
|
14
16
|
"MIME-Version: 1.0\n"
|
|
15
17
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
16
18
|
"Content-Transfer-Encoding: 8bit\n"
|
|
17
|
-
"Plural-Forms: nplurals=
|
|
19
|
+
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;"
|
|
18
20
|
|
|
19
21
|
#: helloglade2.glade:8
|
|
20
22
|
msgid "window1"
|
|
@@ -22,9 +24,9 @@ msgstr "vindu1"
|
|
|
22
24
|
|
|
23
25
|
#: helloglade2.glade:29
|
|
24
26
|
msgid "first line\nsecond line\nthird line"
|
|
25
|
-
msgstr "første linje\
|
|
27
|
+
msgstr "første linje\nandrelinje\ntredje linje"
|
|
26
28
|
|
|
27
29
|
#: helloglade2.glade:53
|
|
28
30
|
msgid "<Hello world>"
|
|
29
|
-
msgstr "<
|
|
31
|
+
msgstr "<Smil til verden>"
|
|
30
32
|
|
data/samples/po/nb/hellogtk.po
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
# Hello World for Ruby/GTK -- sample for ruby-gettext-package
|
|
2
2
|
# Copyright (C) 2001-2006 Masao Mutoh
|
|
3
3
|
# This file is distributed under the same license as the Ruby-GetText-Package.
|
|
4
|
-
#
|
|
5
|
-
#
|
|
4
|
+
# Runar Ingebrigtsen <runar@mopo.no>, 2008.
|
|
5
|
+
# , fuzzy
|
|
6
|
+
#
|
|
6
7
|
#
|
|
7
8
|
msgid ""
|
|
8
9
|
msgstr ""
|
|
9
10
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
11
|
+
"Report-Msgid-Bugs-To: \n"
|
|
10
12
|
"POT-Creation-Date: 2001-12-24 01:52:10+0900\n"
|
|
11
|
-
"PO-Revision-Date:
|
|
12
|
-
"Last-Translator:
|
|
13
|
-
"Language-Team: Norwegian
|
|
13
|
+
"PO-Revision-Date: 2008-07-14 16:29+0200\n"
|
|
14
|
+
"Last-Translator: Runar Ingebrigtsen <runar@mopo.no>\n"
|
|
15
|
+
"Language-Team: Norwegian/Bokmaal <i18n-nb@lister.ping.uio.no>\n"
|
|
14
16
|
"MIME-Version: 1.0\n"
|
|
15
17
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
16
|
-
"Content-Transfer-Encoding: 8bit
|
|
17
|
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Transfer-Encoding: 8bit"
|
|
18
19
|
|
|
19
20
|
#: ../hellogtk.rb:14
|
|
20
21
|
msgid "hello, gtk world"
|
|
21
|
-
msgstr "
|
|
22
|
+
msgstr "smil til gtk-verden"
|
|
22
23
|
|
data/samples/po/nb/hellotk.po
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
# hellotk.po - sample for Ruby/TK
|
|
2
2
|
# Copyright (C) 2004 Masao Mutoh
|
|
3
3
|
# This file is distributed under the same license as the Ruby-GetText-Package.
|
|
4
|
-
#
|
|
5
|
-
#
|
|
4
|
+
# Runar Ingebrigtsen <runar@mopo.no>, 2008.
|
|
5
|
+
# , fuzzy
|
|
6
|
+
#
|
|
6
7
|
#
|
|
7
8
|
msgid ""
|
|
8
9
|
msgstr ""
|
|
9
10
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
11
|
+
"Report-Msgid-Bugs-To: \n"
|
|
10
12
|
"POT-Creation-Date: 2004-11-05 21:38+0900\n"
|
|
11
|
-
"PO-Revision-Date:
|
|
12
|
-
"Last-Translator:
|
|
13
|
-
"Language-Team: Norwegian
|
|
13
|
+
"PO-Revision-Date: 2008-07-14 16:31+0200\n"
|
|
14
|
+
"Last-Translator: Runar Ingebrigtsen <runar@mopo.no>\n"
|
|
15
|
+
"Language-Team: Norwegian/Bokmaal <i18n-nb@lister.ping.uio.no>\n"
|
|
14
16
|
"MIME-Version: 1.0\n"
|
|
15
17
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
16
18
|
"Content-Transfer-Encoding: 8bit\n"
|
|
17
|
-
"Plural-Forms: nplurals=
|
|
19
|
+
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;"
|
|
18
20
|
|
|
19
21
|
#: hellotk.rb:10
|
|
20
22
|
msgid "hello, tk world"
|
|
21
|
-
msgstr "
|
|
23
|
+
msgstr "smil til tk-verden"
|
|
22
24
|
|
data/samples/po/sr/hello.po
CHANGED
|
@@ -10,7 +10,7 @@ msgid ""
|
|
|
10
10
|
msgstr ""
|
|
11
11
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
12
12
|
"POT-Creation-Date: 2001-12-24 01:30:54+0900\n"
|
|
13
|
-
"PO-Revision-Date: 2008-05
|
|
13
|
+
"PO-Revision-Date: 2008-06-05 23:09+0200\n"
|
|
14
14
|
"Last-Translator: Slobodan Paunović <slobodan.paunovic at gmail.com>\n"
|
|
15
15
|
"Language-Team: Serbian\n"
|
|
16
16
|
"MIME-Version: 1.0\n"
|
|
@@ -19,4 +19,4 @@ msgstr ""
|
|
|
19
19
|
|
|
20
20
|
#: ../hello.rb:7
|
|
21
21
|
msgid "Hello World\n"
|
|
22
|
-
msgstr "
|
|
22
|
+
msgstr "Здраво свете\n"
|
data/samples/po/sr/hello2.po
CHANGED
|
@@ -10,7 +10,7 @@ msgid ""
|
|
|
10
10
|
msgstr ""
|
|
11
11
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
12
12
|
"POT-Creation-Date: 2002-01-01 03:05:08+0900\n"
|
|
13
|
-
"PO-Revision-Date: 2008-05
|
|
13
|
+
"PO-Revision-Date: 2008-06-05 23:04+0200\n"
|
|
14
14
|
"Last-Translator: Slobodan Paunović <slobodan.paunovic at gmail.com>\n"
|
|
15
15
|
"Language-Team: Serbian\n"
|
|
16
16
|
"MIME-Version: 1.0\n"
|
|
@@ -19,12 +19,12 @@ msgstr ""
|
|
|
19
19
|
|
|
20
20
|
#: hello2.rb:9
|
|
21
21
|
msgid "World"
|
|
22
|
-
msgstr "
|
|
22
|
+
msgstr "свет"
|
|
23
23
|
|
|
24
24
|
#: hello2.rb:8
|
|
25
25
|
msgid "One is %{num}\n"
|
|
26
|
-
msgstr "
|
|
26
|
+
msgstr "Један је %{num}\n"
|
|
27
27
|
|
|
28
28
|
#: hello2.rb:9
|
|
29
29
|
msgid "Hello %{world}\n"
|
|
30
|
-
msgstr "
|
|
30
|
+
msgstr "Здраво %{world}\n"
|
data/samples/po/sr/hello_noop.po
CHANGED
|
@@ -10,7 +10,7 @@ msgid ""
|
|
|
10
10
|
msgstr ""
|
|
11
11
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
12
12
|
"POT-Creation-Date: 2002-02-21 23:23:08+0900\n"
|
|
13
|
-
"PO-Revision-Date: 2008-05
|
|
13
|
+
"PO-Revision-Date: 2008-06-05 23:08+0200\n"
|
|
14
14
|
"Last-Translator: Slobodan Paunović <slobodan.paunovic at gmail.com>\n"
|
|
15
15
|
"Language-Team: Serbian\n"
|
|
16
16
|
"MIME-Version: 1.0\n"
|
|
@@ -19,8 +19,8 @@ msgstr ""
|
|
|
19
19
|
|
|
20
20
|
#: hello_noop.rb:8
|
|
21
21
|
msgid "Hello World"
|
|
22
|
-
msgstr "
|
|
22
|
+
msgstr "Здраво свете"
|
|
23
23
|
|
|
24
24
|
#: hello_noop.rb:8
|
|
25
25
|
msgid "Hello World2"
|
|
26
|
-
msgstr "
|
|
26
|
+
msgstr "Здраво свете2"
|
|
@@ -10,7 +10,7 @@ msgid ""
|
|
|
10
10
|
msgstr ""
|
|
11
11
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
12
12
|
"POT-Creation-Date: 2002-10-21 15:32:15+0900\n"
|
|
13
|
-
"PO-Revision-Date: 2008-05
|
|
13
|
+
"PO-Revision-Date: 2008-06-05 23:09+0200\n"
|
|
14
14
|
"Last-Translator: Slobodan Paunović <slobodan.paunovic at gmail.com>\n"
|
|
15
15
|
"Language-Team: Serbian\n"
|
|
16
16
|
"MIME-Version: 1.0\n"
|
|
@@ -22,5 +22,5 @@ msgstr ""
|
|
|
22
22
|
#: hello_plural.rb:11
|
|
23
23
|
msgid "There is an apple.\n"
|
|
24
24
|
msgid_plural "There are %{num} apples.\n"
|
|
25
|
-
msgstr[0] "
|
|
26
|
-
msgstr[1] "
|
|
25
|
+
msgstr[0] "Има једна јабука.\n"
|
|
26
|
+
msgstr[1] "Има %{num} јабука.\n"
|
|
@@ -10,7 +10,7 @@ msgid ""
|
|
|
10
10
|
msgstr ""
|
|
11
11
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
12
12
|
"POT-Creation-Date: 2004-07-03 23:38+0900\n"
|
|
13
|
-
"PO-Revision-Date: 2008-05
|
|
13
|
+
"PO-Revision-Date: 2008-06-05 23:07+0200\n"
|
|
14
14
|
"Last-Translator: Slobodan Paunović <slobodan.paunovic at gmail.com>\n"
|
|
15
15
|
"Language-Team: Serbian\n"
|
|
16
16
|
"MIME-Version: 1.0\n"
|
|
@@ -21,12 +21,12 @@ msgstr ""
|
|
|
21
21
|
|
|
22
22
|
#: helloglade2.glade:8
|
|
23
23
|
msgid "window1"
|
|
24
|
-
msgstr "
|
|
24
|
+
msgstr "прозор1"
|
|
25
25
|
|
|
26
26
|
#: helloglade2.glade:29
|
|
27
27
|
msgid "first line\nsecond line\nthird line"
|
|
28
|
-
msgstr "
|
|
28
|
+
msgstr "прва линија\nдруга линија\nтрећа линија"
|
|
29
29
|
|
|
30
30
|
#: helloglade2.glade:53
|
|
31
31
|
msgid "<Hello world>"
|
|
32
|
-
msgstr "
|
|
32
|
+
msgstr "<Здраво свете>"
|
data/samples/po/sr/hellogtk.po
CHANGED
|
@@ -10,7 +10,7 @@ msgid ""
|
|
|
10
10
|
msgstr ""
|
|
11
11
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
12
12
|
"POT-Creation-Date: 2001-12-24 01:52:10+0900\n"
|
|
13
|
-
"PO-Revision-Date: 2008-05
|
|
13
|
+
"PO-Revision-Date: 2008-06-05 23:08+0200\n"
|
|
14
14
|
"Last-Translator: Slobodan Paunović <slobodan.paunovic at gmail.com>\n"
|
|
15
15
|
"Language-Team: Serbian\n"
|
|
16
16
|
"MIME-Version: 1.0\n"
|
|
@@ -19,4 +19,4 @@ msgstr ""
|
|
|
19
19
|
|
|
20
20
|
#: ../hellogtk.rb:14
|
|
21
21
|
msgid "hello, gtk world"
|
|
22
|
-
msgstr "
|
|
22
|
+
msgstr "здраво, gtk свете"
|
data/samples/po/sr/hellotk.po
CHANGED
|
@@ -10,7 +10,7 @@ msgid ""
|
|
|
10
10
|
msgstr ""
|
|
11
11
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
12
12
|
"POT-Creation-Date: 2004-11-05 21:38+0900\n"
|
|
13
|
-
"PO-Revision-Date: 2008-05
|
|
13
|
+
"PO-Revision-Date: 2008-06-05 23:09+0200\n"
|
|
14
14
|
"Last-Translator: Slobodan Paunović <slobodan.paunovic at gmail.com>\n"
|
|
15
15
|
"Language-Team: Serbian\n"
|
|
16
16
|
"MIME-Version: 1.0\n"
|
|
@@ -21,4 +21,4 @@ msgstr ""
|
|
|
21
21
|
|
|
22
22
|
#: hellotk.rb:10
|
|
23
23
|
msgid "hello, tk world"
|
|
24
|
-
msgstr "
|
|
24
|
+
msgstr "здраво, tk свете"
|
data/samples/po/ua/hello2.po
CHANGED
|
@@ -10,7 +10,7 @@ msgid ""
|
|
|
10
10
|
msgstr ""
|
|
11
11
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
12
12
|
"POT-Creation-Date: 2002-01-01 03:05:08+0900\n"
|
|
13
|
-
"PO-Revision-Date:
|
|
13
|
+
"PO-Revision-Date: 2008-02-04 08:22+0020\n"
|
|
14
14
|
"Last-Translator: Alex Rootoff <rootoff at pisem.net>\n"
|
|
15
15
|
"Language-Team: Ukrainian\n"
|
|
16
16
|
"MIME-Version: 1.0\n"
|
|
@@ -23,7 +23,7 @@ msgstr "Світ"
|
|
|
23
23
|
|
|
24
24
|
#: hello2.rb:8
|
|
25
25
|
msgid "One is %{num}\n"
|
|
26
|
-
msgstr "
|
|
26
|
+
msgstr "Є %{num}\n"
|
|
27
27
|
|
|
28
28
|
#: hello2.rb:9
|
|
29
29
|
msgid "Hello %{world}\n"
|
|
@@ -10,7 +10,7 @@ msgid ""
|
|
|
10
10
|
msgstr ""
|
|
11
11
|
"Project-Id-Version: ruby-gettext 1.1.1\n"
|
|
12
12
|
"POT-Creation-Date: 2002-10-21 15:32:15+0900\n"
|
|
13
|
-
"PO-Revision-Date:
|
|
13
|
+
"PO-Revision-Date: 2008-02-04 08:24+0020\n"
|
|
14
14
|
"Last-Translator: Alex Rootoff <rootoff at pisem.net>\n"
|
|
15
15
|
"Language-Team: Ukrainian\n"
|
|
16
16
|
"MIME-Version: 1.0\n"
|
|
@@ -24,6 +24,6 @@ msgstr ""
|
|
|
24
24
|
#: hello_plural.rb:11
|
|
25
25
|
msgid "There is an apple.\n"
|
|
26
26
|
msgid_plural "There are %{num} apples.\n"
|
|
27
|
-
msgstr[0] "Є
|
|
27
|
+
msgstr[0] "Є %{num} яблуко"
|
|
28
28
|
msgstr[1] "Є %{num} яблука"
|
|
29
29
|
msgstr[2] "Є %{num} яблук"
|
|
@@ -25,7 +25,7 @@ module Rails
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def preinitialize
|
|
28
|
-
load(preinitializer_path) if File.
|
|
28
|
+
load(preinitializer_path) if File.exist?(preinitializer_path)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def preinitializer_path
|
|
@@ -43,6 +43,7 @@ module Rails
|
|
|
43
43
|
class VendorBoot < Boot
|
|
44
44
|
def load_initializer
|
|
45
45
|
require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
|
|
46
|
+
Rails::Initializer.run(:install_gem_spec_stubs)
|
|
46
47
|
end
|
|
47
48
|
end
|
|
48
49
|
|
|
@@ -93,7 +94,7 @@ module Rails
|
|
|
93
94
|
end
|
|
94
95
|
|
|
95
96
|
def parse_gem_version(text)
|
|
96
|
-
$1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*'([!~<>=]*\s*[\d.]+)'/
|
|
97
|
+
$1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
|
|
97
98
|
end
|
|
98
99
|
|
|
99
100
|
private
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# ENV['RAILS_ENV'] ||= 'production'
|
|
6
6
|
|
|
7
7
|
# Specifies gem version of Rails to use when vendor/rails is not present
|
|
8
|
-
RAILS_GEM_VERSION = '2.0
|
|
8
|
+
RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION
|
|
9
9
|
|
|
10
10
|
# Bootstrap the Rails environment, frameworks, and default configuration
|
|
11
11
|
require File.join(File.dirname(__FILE__), 'boot')
|
|
@@ -56,6 +56,5 @@ Rails::Initializer.run do |config|
|
|
|
56
56
|
|
|
57
57
|
# Make Active Record use UTC-base instead of local time
|
|
58
58
|
# config.active_record.default_timezone = :utc
|
|
59
|
+
config.gem "gettext", :lib => "gettext/rails"
|
|
59
60
|
end
|
|
60
|
-
|
|
61
|
-
require 'gettext/rails'
|
data/samples/rails/db/schema.rb
CHANGED
|
File without changes
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# GetText Sample Blog on RoR.
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2005-2008 Masao Mutoh
|
|
4
|
+
#
|
|
5
|
+
# This file is distributed under the same license as the Ruby-GetText-Package.
|
|
6
|
+
#
|
|
7
|
+
# Aivars Akots, 2008.
|
|
8
|
+
#
|
|
9
|
+
msgid ""
|
|
10
|
+
msgstr ""
|
|
11
|
+
"Project-Id-Version: blog 1.2.0\n"
|
|
12
|
+
"POT-Creation-Date: 2007-08-01 23:20+0900\n"
|
|
13
|
+
"PO-Revision-Date: 2008-07-22 09:17+0200\n"
|
|
14
|
+
"Last-Translator: Aivars Akots <aivars.akots@gmail.com>\n"
|
|
15
|
+
"Language-Team: Latvian\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=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n"
|
|
20
|
+
|
|
21
|
+
#: app/helpers/blog_helper.rb:43
|
|
22
|
+
msgid "Ruby Links"
|
|
23
|
+
msgstr "Ruby saites"
|
|
24
|
+
|
|
25
|
+
#: app/helpers/blog_helper.rb:51
|
|
26
|
+
msgid "Old articles"
|
|
27
|
+
msgstr "Vecie raksti"
|
|
28
|
+
|
|
29
|
+
#: app/models/article.rb:-
|
|
30
|
+
msgid "article"
|
|
31
|
+
msgstr "raksts"
|
|
32
|
+
|
|
33
|
+
#: app/models/article.rb:-
|
|
34
|
+
msgid "Article|Title"
|
|
35
|
+
msgstr "Virsraksts"
|
|
36
|
+
|
|
37
|
+
#: app/models/article.rb:-
|
|
38
|
+
msgid "Article|Description"
|
|
39
|
+
msgstr "Apraksts"
|
|
40
|
+
|
|
41
|
+
#: app/models/article.rb:-
|
|
42
|
+
msgid "Article|Lastupdate"
|
|
43
|
+
msgstr "labošanas datums"
|
|
44
|
+
|
|
45
|
+
#: app/controllers/blog_controller.rb:33
|
|
46
|
+
msgid "Article was successfully created."
|
|
47
|
+
msgstr "Raksts tika veiksmīgi izveidots."
|
|
48
|
+
|
|
49
|
+
#: app/controllers/blog_controller.rb:47
|
|
50
|
+
msgid "Article was successfully updated."
|
|
51
|
+
msgstr "Raksts tika veiksmīgi izlabots."
|
|
52
|
+
|
|
53
|
+
#: app/views/blog/show.rhtml:13
|
|
54
|
+
#: app/views/blog/list.rhtml:13
|
|
55
|
+
#: app/views/layouts/blog.rhtml:14
|
|
56
|
+
msgid "GetText Sample Blog on RoR"
|
|
57
|
+
msgstr "GetText piemēra Emuārs izmantojot RoR"
|
|
58
|
+
|
|
59
|
+
#: app/views/blog/show.rhtml:16
|
|
60
|
+
#: app/views/blog/edit.rhtml:16
|
|
61
|
+
msgid "Edit"
|
|
62
|
+
msgstr "Labot"
|
|
63
|
+
|
|
64
|
+
#: app/views/blog/show.rhtml:17
|
|
65
|
+
#: app/views/blog/new.rhtml:20
|
|
66
|
+
#: app/views/blog/edit.rhtml:21
|
|
67
|
+
msgid "Back"
|
|
68
|
+
msgstr "Atgriezties"
|
|
69
|
+
|
|
70
|
+
#: app/views/blog/new.rhtml:13
|
|
71
|
+
#: app/views/blog/list.rhtml:15
|
|
72
|
+
msgid "New article"
|
|
73
|
+
msgstr "Jauns raksts"
|
|
74
|
+
|
|
75
|
+
#: app/views/blog/new.rhtml:17
|
|
76
|
+
msgid "Create"
|
|
77
|
+
msgstr "Izveidot"
|
|
78
|
+
|
|
79
|
+
#: app/views/blog/list.rhtml:18
|
|
80
|
+
msgid "No articles were found."
|
|
81
|
+
msgstr "Neviens raksts netika atrasts"
|
|
82
|
+
|
|
83
|
+
#: app/views/blog/edit.rhtml:12
|
|
84
|
+
msgid "Editing article"
|
|
85
|
+
msgstr "Labo rakstu"
|
|
86
|
+
|
|
87
|
+
#: app/views/blog/edit.rhtml:19
|
|
88
|
+
msgid "Show"
|
|
89
|
+
msgstr "Apskatīt"
|
|
90
|
+
|
|
91
|
+
#: app/views/blog/edit.rhtml:20
|
|
92
|
+
msgid "Destroy"
|
|
93
|
+
msgstr "Iznīcināt"
|
|
94
|
+
|
|
95
|
+
#: app/views/blog/edit.rhtml:20
|
|
96
|
+
msgid "Are you sure?"
|
|
97
|
+
msgstr "Vai Tu esi drošs?"
|
|
98
|
+
|
|
99
|
+
#: app/views/blog/_form.rhtml:16
|
|
100
|
+
msgid "Lastupdate"
|
|
101
|
+
msgstr "Labošanas datums"
|
|
102
|
+
|
|
103
|
+
#: app/views/blog/_form.rhtml:18
|
|
104
|
+
msgid "Title: Required."
|
|
105
|
+
msgstr "Virsraksts: Obligāts."
|
|
106
|
+
|
|
107
|
+
#: app/views/blog/_form.rhtml:21
|
|
108
|
+
msgid "Description: More than 10 characters."
|
|
109
|
+
msgstr "Apraksts: Vairāk kā 10 simboli."
|
|
110
|
+
|