gettext 1.5.0-mswin32 → 1.6.0-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +113 -0
- data/NEWS +17 -1
- data/README +56 -46
- data/Rakefile +7 -3
- 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/es/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/es/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/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/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/sv/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/ext/gettext/locale_system.c +3 -3
- data/lib/gettext.rb +149 -98
- data/lib/gettext/container.rb +3 -23
- data/lib/gettext/erb.rb +2 -2
- data/lib/gettext/locale_posix.rb +37 -5
- data/lib/gettext/locale_win32.rb +2 -1
- data/lib/gettext/mo.rb +6 -4
- data/lib/gettext/parser/activerecord.rb +7 -3
- data/lib/gettext/poparser.rb +298 -298
- data/lib/gettext/rails.rb +131 -112
- data/lib/gettext/rgettext.rb +3 -1
- data/lib/gettext/rmsgfmt.rb +3 -1
- data/lib/gettext/rmsgmerge.rb +3 -1
- data/lib/gettext/textdomain.rb +14 -8
- data/lib/gettext/textdomainmanager.rb +103 -0
- data/lib/gettext/version.rb +1 -1
- data/po/cs/rails.po +16 -16
- data/po/cs/rgettext.po +7 -3
- data/po/de/rails.po +16 -16
- data/po/de/rgettext.po +7 -3
- data/po/el/rails.po +16 -16
- data/po/el/rgettext.po +7 -3
- data/po/es/rails.po +16 -16
- data/po/es/rgettext.po +7 -3
- data/po/fr/rails.po +16 -16
- data/po/fr/rgettext.po +7 -3
- data/po/it/rails.po +79 -0
- data/po/it/rgettext.po +42 -32
- data/po/ja/rails.po +20 -18
- data/po/ja/rgettext.po +7 -3
- data/po/ko/rails.po +16 -16
- data/po/ko/rgettext.po +7 -3
- data/po/nl/rails.po +16 -16
- data/po/nl/rgettext.po +7 -3
- data/po/pt_BR/rails.po +16 -16
- data/po/pt_BR/rgettext.po +7 -3
- data/po/rails.pot +16 -16
- data/po/rgettext.pot +7 -3
- data/po/ru/rails.po +18 -18
- data/po/ru/rgettext.po +13 -9
- data/po/sv/rgettext.po +7 -3
- data/po/zh/rails.po +78 -0
- data/po/zh/rgettext.po +104 -0
- data/pre-setup.rb +1 -4
- data/samples/cgi/helloerb.rhtml +1 -0
- data/samples/cgi/locale/zh/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/zh/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/zh/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/zh/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/po/zh/helloerb1.po +60 -0
- data/samples/cgi/po/zh/helloerb2.po +52 -0
- data/samples/cgi/po/zh/hellolib.po +24 -0
- data/samples/cgi/po/zh/main.po +80 -0
- data/samples/hello.rb +28 -5
- data/samples/hello2.rb +13 -6
- data/samples/hello_noop.rb +20 -8
- data/samples/hello_plural.rb +16 -6
- data/samples/hello_textdomain.rb +13 -4
- data/samples/hellogtk.rb +5 -4
- data/samples/hellogtk2.rb +5 -6
- data/samples/locale/cs/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/cs/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/de/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/de/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/el/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/el/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/es/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/es/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/fr/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/fr/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/it/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/it/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/ja/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/ja/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/ko/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/ko/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/nl/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/nl/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/pt_BR/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/pt_BR/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/ru/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/ru/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/sv/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/sv/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/zh/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/po/cs/hello2.po +4 -4
- data/samples/po/cs/hello_plural.po +5 -5
- data/samples/po/de/hello2.po +4 -4
- data/samples/po/de/hello_plural.po +9 -6
- data/samples/po/el/hello2.po +4 -4
- data/samples/po/el/hello_plural.po +3 -3
- data/samples/po/es/hello2.po +4 -4
- data/samples/po/es/hello_plural.po +6 -6
- data/samples/po/fr/hello2.po +4 -4
- data/samples/po/fr/hello_plural.po +3 -3
- data/samples/po/hello2.pot +2 -2
- data/samples/po/hello_plural.pot +1 -1
- data/samples/po/it/hello2.po +4 -4
- data/samples/po/it/hello_plural.po +4 -5
- data/samples/po/ja/hello2.po +4 -4
- data/samples/po/ja/hello_plural.po +4 -5
- data/samples/po/ko/hello2.po +4 -4
- data/samples/po/ko/hello_plural.po +10 -7
- data/samples/po/nl/hello2.po +4 -4
- data/samples/po/nl/hello_plural.po +6 -7
- data/samples/po/pt_BR/hello2.po +4 -4
- data/samples/po/pt_BR/hello_plural.po +6 -6
- data/samples/po/ru/hello2.po +4 -4
- data/samples/po/ru/hello_plural.po +10 -7
- data/samples/po/sv/hello2.po +4 -4
- data/samples/po/sv/hello_plural.po +4 -4
- data/samples/po/zh/hello.po +23 -0
- data/samples/po/zh/hello2.po +31 -0
- data/samples/po/zh/hello_noop.po +27 -0
- data/samples/po/zh/hello_plural.po +25 -0
- data/samples/po/zh/helloglade2.po +31 -0
- data/samples/po/zh/hellogtk.po +23 -0
- data/samples/po/zh/hellotk.po +23 -0
- data/samples/rails/README +2 -2
- data/samples/rails/lib/tasks/gettext.rake +0 -3
- 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/es/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/fr/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/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/zh/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/po/blog.pot +1 -1
- data/samples/rails/po/cs/blog.po +1 -1
- data/samples/rails/po/de/blog.po +1 -1
- data/samples/rails/po/el/blog.po +1 -1
- data/samples/rails/po/en/blog.po +3 -3
- data/samples/rails/po/es/blog.po +1 -1
- data/samples/rails/po/fr/blog.po +1 -1
- data/samples/rails/po/it/blog.po +109 -0
- data/samples/rails/po/ja/blog.po +1 -14
- data/samples/rails/po/ko/blog.po +2 -2
- data/samples/rails/po/nl/blog.po +1 -1
- data/samples/rails/po/pt_BR/blog.po +1 -1
- data/samples/rails/po/ru/blog.po +1 -2
- data/samples/rails/po/zh/blog.po +109 -0
- data/samples/rails/vendor/plugins/gettext/README +17 -0
- data/samples/rails/vendor/plugins/gettext/Rakefile +17 -0
- data/samples/rails/vendor/plugins/gettext/lib/gettext_plugin.rb +16 -35
- data/samples/rails/{locale → vendor/plugins/gettext/locale}/cs/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/{locale → vendor/plugins/gettext/locale}/de/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/{locale → vendor/plugins/gettext/locale}/el/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/{locale → vendor/plugins/gettext/locale}/es/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/{locale → vendor/plugins/gettext/locale}/fr/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/{locale → vendor/plugins/gettext/locale}/ja/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/{locale → vendor/plugins/gettext/locale}/ko/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/{locale → vendor/plugins/gettext/locale}/nl/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/{locale → vendor/plugins/gettext/locale}/pt_BR/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/{locale → vendor/plugins/gettext/locale}/ru/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/{po → vendor/plugins/gettext/po}/cs/gettext_plugin.po +4 -4
- data/samples/rails/{po → vendor/plugins/gettext/po}/de/gettext_plugin.po +4 -4
- data/samples/rails/{po → vendor/plugins/gettext/po}/el/gettext_plugin.po +4 -4
- data/samples/rails/{po → vendor/plugins/gettext/po}/es/gettext_plugin.po +4 -4
- data/samples/rails/{po → vendor/plugins/gettext/po}/fr/gettext_plugin.po +4 -4
- data/samples/rails/{po → vendor/plugins/gettext/po}/gettext_plugin.pot +4 -4
- data/samples/rails/vendor/plugins/gettext/po/it/gettext_plugin.po +27 -0
- data/samples/rails/{po → vendor/plugins/gettext/po}/ja/gettext_plugin.po +4 -4
- data/samples/rails/{po → vendor/plugins/gettext/po}/ko/gettext_plugin.po +4 -4
- data/samples/rails/{po → vendor/plugins/gettext/po}/nl/gettext_plugin.po +4 -4
- data/samples/rails/{po → vendor/plugins/gettext/po}/pt_BR/gettext_plugin.po +4 -4
- data/samples/rails/{po → vendor/plugins/gettext/po}/ru/gettext_plugin.po +4 -5
- data/samples/rails/vendor/plugins/gettext/po/zh/gettext_plugin.po +27 -0
- data/test/gettext_test.rb +18 -14
- data/test/gettext_test_multi_textdomain.rb +49 -0
- data/test/locale/fr/LC_MESSAGES/test6.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/test6.mo +0 -0
- data/test/po/fr/test6.po +23 -0
- data/test/po/ja/test6.po +23 -0
- data/test/test.sh +3 -1
- data/test/testlib1.rb +0 -5
- data/test/testlib5.rb +70 -0
- data/test/testlib6.rb +19 -0
- metadata +128 -33
- data/COPYING.ja +0 -51
- data/ext/gettext/Makefile +0 -178
- data/ext/gettext/locale_system-i386-mswin32.def +0 -2
- data/ext/gettext/locale_system.exp +0 -0
- data/ext/gettext/locale_system.lib +0 -0
- data/ext/gettext/locale_system.obj +0 -0
- data/ext/gettext/locale_system.pdb +0 -0
- data/ext/gettext/locale_system.so +0 -0
- data/ext/gettext/mkmf.log +0 -16
- data/ext/gettext/vc70.pdb +0 -0
data/samples/rails/po/el/blog.po
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
msgid ""
|
10
10
|
msgstr ""
|
11
11
|
"Project-Id-Version: blog 1.1.0\n"
|
12
|
-
"POT-Creation-Date: 2006-
|
12
|
+
"POT-Creation-Date: 2006-06-04 22:51+0900\n"
|
13
13
|
"PO-Revision-Date: 2006-01-06 19:50+0100\n"
|
14
14
|
"Last-Translator: damphyr <damphyr@gmx.net>\n"
|
15
15
|
"Language-Team: Greek\n"
|
data/samples/rails/po/en/blog.po
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
msgid ""
|
12
12
|
msgstr ""
|
13
13
|
"Project-Id-Version: blog 1.1.0\n"
|
14
|
-
"POT-Creation-Date: 2006-
|
14
|
+
"POT-Creation-Date: 2006-06-04 22:51+0900\n"
|
15
15
|
"PO-Revision-Date: 2005-12-23 01:28+0900\n"
|
16
16
|
"Last-Translator: Masao Mutoh <mutoh@highway.ne.jp>\n"
|
17
17
|
"Language-Team: English\n"
|
@@ -34,11 +34,11 @@ msgstr ""
|
|
34
34
|
|
35
35
|
#: app/models/article.rb:-
|
36
36
|
msgid "Article|Id"
|
37
|
-
msgstr ""
|
37
|
+
msgstr "Date"
|
38
38
|
|
39
39
|
#: app/models/article.rb:-
|
40
40
|
msgid "Article|Title"
|
41
|
-
msgstr ""
|
41
|
+
msgstr "Date"
|
42
42
|
|
43
43
|
#: app/models/article.rb:-
|
44
44
|
msgid "Article|Description"
|
data/samples/rails/po/es/blog.po
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
12
|
"Project-Id-Version: blog 1.1.0\n"
|
13
|
-
"POT-Creation-Date: 2006-
|
13
|
+
"POT-Creation-Date: 2006-06-04 22:51+0900\n"
|
14
14
|
"PO-Revision-Date: 2005-12-27 23:14+0100\n"
|
15
15
|
"Last-Translator: David Espada <davinci@escomposlinux.org>\n"
|
16
16
|
"Language-Team: Spanish\n"
|
data/samples/rails/po/fr/blog.po
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
msgid ""
|
10
10
|
msgstr ""
|
11
11
|
"Project-Id-Version: blog 1.1.0\n"
|
12
|
-
"POT-Creation-Date: 2006-
|
12
|
+
"POT-Creation-Date: 2006-06-04 22:51+0900\n"
|
13
13
|
"PO-Revision-Date: 2005-08-28 09:22+0100\n"
|
14
14
|
"Last-Translator: Laurent Sansonetti\n"
|
15
15
|
"Language-Team: French\n"
|
@@ -0,0 +1,109 @@
|
|
1
|
+
# GetText Sample Blog on RoR.
|
2
|
+
#
|
3
|
+
# Copyright (C) 2006 Masao Mutoh
|
4
|
+
#
|
5
|
+
# This file is distributed under the same license as the Ruby-GetText-Package.
|
6
|
+
#
|
7
|
+
# Marco Lazzeri <marco.lazzeri at gmail.com>, 2006.
|
8
|
+
#
|
9
|
+
msgid ""
|
10
|
+
msgstr ""
|
11
|
+
"Project-Id-Version: blog 1.1.0\n"
|
12
|
+
"POT-Creation-Date: 2006-06-04 22:51+0900\n"
|
13
|
+
"PO-Revision-Date: 2005-12-17 14:33+0900\n"
|
14
|
+
"Last-Translator: Marco Lazzeri <marco.lazzeri at gmail.com>\n"
|
15
|
+
"Language-Team: Italian\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
|
+
#: app/helpers/blog_helper.rb:43
|
22
|
+
msgid "Ruby Links"
|
23
|
+
msgstr "Ruby Link"
|
24
|
+
|
25
|
+
#: app/helpers/blog_helper.rb:51
|
26
|
+
msgid "Old articles"
|
27
|
+
msgstr "Vecchi articoli"
|
28
|
+
|
29
|
+
#: app/models/article.rb:-
|
30
|
+
msgid "article"
|
31
|
+
msgstr "articolo"
|
32
|
+
|
33
|
+
#: app/models/article.rb:-
|
34
|
+
msgid "Article|Id"
|
35
|
+
msgstr "Id"
|
36
|
+
|
37
|
+
#: app/models/article.rb:-
|
38
|
+
msgid "Article|Title"
|
39
|
+
msgstr "Titolo"
|
40
|
+
|
41
|
+
#: app/models/article.rb:-
|
42
|
+
msgid "Article|Description"
|
43
|
+
msgstr "Descrizione"
|
44
|
+
|
45
|
+
#: app/models/article.rb:-
|
46
|
+
msgid "Article|Lastupdate"
|
47
|
+
msgstr "Ultimo aggiornamento"
|
48
|
+
|
49
|
+
#: app/controllers/blog_controller.rb:33
|
50
|
+
msgid "Article was successfully created."
|
51
|
+
msgstr "L'articolo è stato creato con successo"
|
52
|
+
|
53
|
+
#: app/controllers/blog_controller.rb:47
|
54
|
+
msgid "Article was successfully updated."
|
55
|
+
msgstr "L'articolo è stato aggiornato con successo"
|
56
|
+
|
57
|
+
#: app/views/blog/new.rhtml:13 app/views/blog/list.rhtml:15
|
58
|
+
msgid "New article"
|
59
|
+
msgstr "Nuovo articolo"
|
60
|
+
|
61
|
+
#: app/views/blog/new.rhtml:17
|
62
|
+
msgid "Create"
|
63
|
+
msgstr "Crea"
|
64
|
+
|
65
|
+
#: app/views/blog/new.rhtml:20 app/views/blog/edit.rhtml:21
|
66
|
+
#: app/views/blog/show.rhtml:17
|
67
|
+
msgid "Back"
|
68
|
+
msgstr "Indietro"
|
69
|
+
|
70
|
+
#: app/views/blog/_form.rhtml:16
|
71
|
+
msgid "Lastupdate"
|
72
|
+
msgstr "Ultimoaggiornamento"
|
73
|
+
|
74
|
+
#: app/views/blog/_form.rhtml:18
|
75
|
+
msgid "Title: Required."
|
76
|
+
msgstr "Titolo: obbligatorio"
|
77
|
+
|
78
|
+
#: app/views/blog/_form.rhtml:21
|
79
|
+
msgid "Description: More than 10 characters."
|
80
|
+
msgstr "Descrizione: più lunga di 10 caratteri"
|
81
|
+
|
82
|
+
#: app/views/blog/list.rhtml:13 app/views/blog/show.rhtml:13
|
83
|
+
#: app/views/layouts/blog.rhtml:14
|
84
|
+
msgid "GetText Sample Blog on RoR"
|
85
|
+
msgstr "Esempio di Blog RoR con GetText"
|
86
|
+
|
87
|
+
#: app/views/blog/list.rhtml:18
|
88
|
+
msgid "No articles were found."
|
89
|
+
msgstr "Nessun articolo trovato."
|
90
|
+
|
91
|
+
#: app/views/blog/edit.rhtml:12
|
92
|
+
msgid "Editing article"
|
93
|
+
msgstr "Modifica articolo"
|
94
|
+
|
95
|
+
#: app/views/blog/edit.rhtml:16 app/views/blog/show.rhtml:16
|
96
|
+
msgid "Edit"
|
97
|
+
msgstr "Modifica"
|
98
|
+
|
99
|
+
#: app/views/blog/edit.rhtml:19
|
100
|
+
msgid "Show"
|
101
|
+
msgstr "Mostra"
|
102
|
+
|
103
|
+
#: app/views/blog/edit.rhtml:20
|
104
|
+
msgid "Destroy"
|
105
|
+
msgstr "Distruggi"
|
106
|
+
|
107
|
+
#: app/views/blog/edit.rhtml:20
|
108
|
+
msgid "Are you sure?"
|
109
|
+
msgstr "Sei sicuro?"
|
data/samples/rails/po/ja/blog.po
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
msgid ""
|
10
10
|
msgstr ""
|
11
11
|
"Project-Id-Version: blog 1.1.0\n"
|
12
|
-
"POT-Creation-Date: 2006-
|
12
|
+
"POT-Creation-Date: 2006-06-04 22:51+0900\n"
|
13
13
|
"PO-Revision-Date: 2005-08-26 23:02+0900\n"
|
14
14
|
"Last-Translator: Masao Mutoh <mutoh@highway.ne.jp>\n"
|
15
15
|
"Language-Team: Japanese\n"
|
@@ -107,16 +107,3 @@ msgstr "削除"
|
|
107
107
|
#: app/views/blog/edit.rhtml:20
|
108
108
|
msgid "Are you sure?"
|
109
109
|
msgstr "よろしいですか?"
|
110
|
-
|
111
|
-
#: app/models/article.rb:30
|
112
|
-
msgid "An error is occured on %{record}"
|
113
|
-
msgstr "ukkikki!"
|
114
|
-
msgid "%{num} errors are occured on %{record}"
|
115
|
-
msgstr "ukki!"
|
116
|
-
|
117
|
-
#: app/models/article.rb:32
|
118
|
-
msgid "The error is:"
|
119
|
-
msgstr "foo:"
|
120
|
-
|
121
|
-
msgid "The errors are:"
|
122
|
-
msgstr "bar:"
|
data/samples/rails/po/ko/blog.po
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
msgid ""
|
10
10
|
msgstr ""
|
11
11
|
"Project-Id-Version: blog 1.1.0\n"
|
12
|
-
"POT-Creation-Date: 2006-
|
12
|
+
"POT-Creation-Date: 2006-06-04 22:51+0900\n"
|
13
13
|
"PO-Revision-Date: 2005-12-23 02:00+0900\n"
|
14
14
|
"Last-Translator: Gyoung-Yoon Noh <nohmad@gmail.com>\n"
|
15
15
|
"Language-Team: Korean\n"
|
@@ -32,7 +32,7 @@ msgstr "새 글"
|
|
32
32
|
|
33
33
|
#: app/models/article.rb:-
|
34
34
|
msgid "Article|Id"
|
35
|
-
msgstr ""
|
35
|
+
msgstr "새 글"
|
36
36
|
|
37
37
|
#: app/models/article.rb:-
|
38
38
|
msgid "Article|Title"
|
data/samples/rails/po/nl/blog.po
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
12
|
"Project-Id-Version: blog 1.1.0\n"
|
13
|
-
"POT-Creation-Date: 2006-
|
13
|
+
"POT-Creation-Date: 2006-06-04 22:51+0900\n"
|
14
14
|
"PO-Revision-Date: 2005-12-19 21:44+0100\n"
|
15
15
|
"Last-Translator: Menno Jonkers <ruby-gettext@jonkers.com>\n"
|
16
16
|
"Language-Team: Dutch <ruby_gettext@jonkers.com>\n"
|
@@ -9,7 +9,7 @@
|
|
9
9
|
msgid ""
|
10
10
|
msgstr ""
|
11
11
|
"Project-Id-Version: blog 1.1.0\n"
|
12
|
-
"POT-Creation-Date: 2006-
|
12
|
+
"POT-Creation-Date: 2006-06-04 22:51+0900\n"
|
13
13
|
"PO-Revision-Date: 2005-12-17 10:12-0300\n"
|
14
14
|
"Last-Translator: Joao Pedrosa <joaopedrosa@gmail.com>\n"
|
15
15
|
"Language-Team: Portuguese(Brazil)\n"
|
data/samples/rails/po/ru/blog.po
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
9
|
"Project-Id-Version: blog 1.1.0\n"
|
10
|
-
"POT-Creation-Date: 2006-
|
10
|
+
"POT-Creation-Date: 2006-06-04 22:51+0900\n"
|
11
11
|
"PO-Revision-Date: 2006-04-17 20:07+0300\n"
|
12
12
|
"Last-Translator: Yuri Kozlov <kozlov.y@gmail.com>\n"
|
13
13
|
"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
|
@@ -105,4 +105,3 @@ msgstr "Удалить"
|
|
105
105
|
#: app/views/blog/edit.rhtml:20
|
106
106
|
msgid "Are you sure?"
|
107
107
|
msgstr "Уверены?"
|
108
|
-
|
@@ -0,0 +1,109 @@
|
|
1
|
+
# GetText Sample Blog on RoR.
|
2
|
+
#
|
3
|
+
# Copyright (C) 2006 Masao Mutoh
|
4
|
+
#
|
5
|
+
# This file is distributed under the same license as the Ruby-GetText-Package.
|
6
|
+
#
|
7
|
+
# Yingfeng <blogyingfeng at gmail.com>, 2006.
|
8
|
+
#
|
9
|
+
msgid ""
|
10
|
+
msgstr ""
|
11
|
+
"Project-Id-Version: blog 1.1.0\n"
|
12
|
+
"POT-Creation-Date: 2006-06-04 22:51+0900\n"
|
13
|
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14
|
+
"Last-Translator: Yingfeng <blogyingfeng at gmail.com>\n"
|
15
|
+
"Language-Team: Simplified Chinese\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=1; plural=0;\n"
|
20
|
+
|
21
|
+
#: app/helpers/blog_helper.rb:43
|
22
|
+
msgid "Ruby Links"
|
23
|
+
msgstr "Ruby链接"
|
24
|
+
|
25
|
+
#: app/helpers/blog_helper.rb:51
|
26
|
+
msgid "Old articles"
|
27
|
+
msgstr "以前的文章"
|
28
|
+
|
29
|
+
#: app/models/article.rb:-
|
30
|
+
msgid "article"
|
31
|
+
msgstr "文章"
|
32
|
+
|
33
|
+
#: app/models/article.rb:-
|
34
|
+
msgid "Article|Id"
|
35
|
+
msgstr "Id"
|
36
|
+
|
37
|
+
#: app/models/article.rb:-
|
38
|
+
msgid "Article|Title"
|
39
|
+
msgstr "标题"
|
40
|
+
|
41
|
+
#: app/models/article.rb:-
|
42
|
+
msgid "Article|Description"
|
43
|
+
msgstr "描述"
|
44
|
+
|
45
|
+
#: app/models/article.rb:-
|
46
|
+
msgid "Article|Lastupdate"
|
47
|
+
msgstr "上次更新"
|
48
|
+
|
49
|
+
#: app/controllers/blog_controller.rb:33
|
50
|
+
msgid "Article was successfully created."
|
51
|
+
msgstr "文章创建成功"
|
52
|
+
|
53
|
+
#: app/controllers/blog_controller.rb:47
|
54
|
+
msgid "Article was successfully updated."
|
55
|
+
msgstr "文章更新成功"
|
56
|
+
|
57
|
+
#: app/views/blog/new.rhtml:13 app/views/blog/list.rhtml:15
|
58
|
+
msgid "New article"
|
59
|
+
msgstr "新文章"
|
60
|
+
|
61
|
+
#: app/views/blog/new.rhtml:17
|
62
|
+
msgid "Create"
|
63
|
+
msgstr "创建"
|
64
|
+
|
65
|
+
#: app/views/blog/new.rhtml:20 app/views/blog/edit.rhtml:21
|
66
|
+
#: app/views/blog/show.rhtml:17
|
67
|
+
msgid "Back"
|
68
|
+
msgstr "返回"
|
69
|
+
|
70
|
+
#: app/views/blog/_form.rhtml:16
|
71
|
+
msgid "Lastupdate"
|
72
|
+
msgstr "上次更新"
|
73
|
+
|
74
|
+
#: app/views/blog/_form.rhtml:18
|
75
|
+
msgid "Title: Required."
|
76
|
+
msgstr "标题:需要设置"
|
77
|
+
|
78
|
+
#: app/views/blog/_form.rhtml:21
|
79
|
+
msgid "Description: More than 10 characters."
|
80
|
+
msgstr "描述:需要超过10个字符"
|
81
|
+
|
82
|
+
#: app/views/blog/list.rhtml:13 app/views/blog/show.rhtml:13
|
83
|
+
#: app/views/layouts/blog.rhtml:14
|
84
|
+
msgid "GetText Sample Blog on RoR"
|
85
|
+
msgstr "GetText的RoR示例Blog"
|
86
|
+
|
87
|
+
#: app/views/blog/list.rhtml:18
|
88
|
+
msgid "No articles were found."
|
89
|
+
msgstr "没有文章"
|
90
|
+
|
91
|
+
#: app/views/blog/edit.rhtml:12
|
92
|
+
msgid "Editing article"
|
93
|
+
msgstr "编辑文章"
|
94
|
+
|
95
|
+
#: app/views/blog/edit.rhtml:16 app/views/blog/show.rhtml:16
|
96
|
+
msgid "Edit"
|
97
|
+
msgstr "编辑"
|
98
|
+
|
99
|
+
#: app/views/blog/edit.rhtml:19
|
100
|
+
msgid "Show"
|
101
|
+
msgstr "显示"
|
102
|
+
|
103
|
+
#: app/views/blog/edit.rhtml:20
|
104
|
+
msgid "Destroy"
|
105
|
+
msgstr "删除"
|
106
|
+
|
107
|
+
#: app/views/blog/edit.rhtml:20
|
108
|
+
msgid "Are you sure?"
|
109
|
+
msgstr "确认?"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Ruby-GetText Sample Rails Plugin.
|
2
|
+
|
3
|
+
Files
|
4
|
+
-----
|
5
|
+
* Rakefile: rake file for updatpo/makemo.
|
6
|
+
|
7
|
+
* init.rb:
|
8
|
+
- initialize this plugin.
|
9
|
+
|
10
|
+
* lib/gettext_plugin.rb:
|
11
|
+
- The main part of localized plugin.
|
12
|
+
|
13
|
+
* po/* (gettext_plugin.po[t])
|
14
|
+
- Catalog files which translators edit. They are convert to
|
15
|
+
mofiles by "rake makemo".
|
16
|
+
* locale/*
|
17
|
+
- mo-files for this plugin.
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
|
+
# for example lib/tasks/switchtower.rake, and they will automatically be available to Rake.
|
3
|
+
|
4
|
+
require 'rake'
|
5
|
+
|
6
|
+
require 'gettext/utils'
|
7
|
+
desc "Create mo-files for L10n"
|
8
|
+
task :makemo do
|
9
|
+
GetText.create_mofiles(true, "po", "locale")
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "Update pot/po files to match new version."
|
13
|
+
task :updatepo do
|
14
|
+
GetText.update_pofiles("gettext_plugin", Dir.glob("lib/*.{rb,rhtml}"),
|
15
|
+
"gettext_plugin 1.2.0")
|
16
|
+
end
|
17
|
+
|
@@ -1,52 +1,33 @@
|
|
1
1
|
# gettext_plugin.rb - a sample script for Ruby on Rails
|
2
2
|
#
|
3
|
-
# Copyright (C) 2005 Masao Mutoh
|
3
|
+
# Copyright (C) 2005,2006 Masao Mutoh
|
4
4
|
#
|
5
5
|
# This file is distributed under the same license as Ruby-GetText-Package.
|
6
6
|
|
7
7
|
require 'gettext/rails'
|
8
8
|
|
9
9
|
module LangHelper
|
10
|
-
|
11
|
-
# Separate the name space from ActionView::Base/ApplicationController.
|
12
|
-
class YetanotherTextDomain
|
13
|
-
include GetText::Rails
|
10
|
+
include GetText::Rails
|
14
11
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
langs.sort.each_with_index do |lang, i|
|
27
|
-
ret << actionview.link_to("[#{lang}]", :action => "cookie_locale", :lang => lang)
|
28
|
-
if ((i + 1) % 6 == 0)
|
29
|
-
ret << "<br/>"
|
30
|
-
end
|
12
|
+
bindtextdomain("gettext_plugin", :path => File.join(RAILS_ROOT, "vendor/plugins/gettext/locale"))
|
13
|
+
|
14
|
+
def show_language
|
15
|
+
langs = ["en"] + Dir.glob(File.join(RAILS_ROOT,"locale/*")).collect{|item| File.basename(item)}
|
16
|
+
langs.delete("CVS")
|
17
|
+
langs.uniq!
|
18
|
+
ret = "<h4>" + _("Select locale") + "</h4>"
|
19
|
+
langs.sort.each_with_index do |lang, i|
|
20
|
+
ret << link_to("[#{lang}]", :action => "cookie_locale", :lang => lang)
|
21
|
+
if ((i + 1) % 6 == 0)
|
22
|
+
ret << "<br/>"
|
31
23
|
end
|
32
|
-
ret
|
33
|
-
end
|
34
|
-
|
35
|
-
def cookie_locale(cookies, flash, params)
|
36
|
-
cookies["lang"] = params["lang"]
|
37
|
-
flash[:notice] = _('Cookie "lang" is set: %s') % params["lang"]
|
38
24
|
end
|
25
|
+
ret
|
39
26
|
end
|
40
27
|
|
41
|
-
# This function shows supported languages with link to set cookie
|
42
|
-
# action (cookie_locale).
|
43
|
-
def show_language
|
44
|
-
YetanotherTextDomain.new.show_language(self)
|
45
|
-
end
|
46
|
-
|
47
|
-
# This function is called when the language link is set.
|
48
28
|
def cookie_locale
|
49
|
-
|
29
|
+
cookies["lang"] = params["lang"]
|
30
|
+
flash[:notice] = _('Cookie "lang" is set: %s') % params["lang"]
|
50
31
|
redirect_to :action => 'list'
|
51
32
|
end
|
52
33
|
end
|