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/{locale → vendor/plugins/gettext/locale}/cs/LC_MESSAGES/gettext_plugin.mo
RENAMED
Binary file
|
data/samples/rails/{locale → vendor/plugins/gettext/locale}/de/LC_MESSAGES/gettext_plugin.mo
RENAMED
Binary file
|
data/samples/rails/{locale → vendor/plugins/gettext/locale}/el/LC_MESSAGES/gettext_plugin.mo
RENAMED
Binary file
|
data/samples/rails/{locale → vendor/plugins/gettext/locale}/es/LC_MESSAGES/gettext_plugin.mo
RENAMED
Binary file
|
data/samples/rails/{locale → vendor/plugins/gettext/locale}/fr/LC_MESSAGES/gettext_plugin.mo
RENAMED
Binary file
|
data/samples/rails/{locale → vendor/plugins/gettext/locale}/ja/LC_MESSAGES/gettext_plugin.mo
RENAMED
Binary file
|
data/samples/rails/{locale → vendor/plugins/gettext/locale}/ko/LC_MESSAGES/gettext_plugin.mo
RENAMED
Binary file
|
data/samples/rails/{locale → vendor/plugins/gettext/locale}/nl/LC_MESSAGES/gettext_plugin.mo
RENAMED
Binary file
|
data/samples/rails/{locale → vendor/plugins/gettext/locale}/pt_BR/LC_MESSAGES/gettext_plugin.mo
RENAMED
Binary file
|
data/samples/rails/{locale → vendor/plugins/gettext/locale}/ru/LC_MESSAGES/gettext_plugin.mo
RENAMED
Binary file
|
@@ -8,8 +8,8 @@
|
|
8
8
|
#
|
9
9
|
msgid ""
|
10
10
|
msgstr ""
|
11
|
-
"Project-Id-Version: gettext_plugin 1.
|
12
|
-
"POT-Creation-Date: 2006-
|
11
|
+
"Project-Id-Version: gettext_plugin 1.2.0\n"
|
12
|
+
"POT-Creation-Date: 2006-05-31 02:06+0900\n"
|
13
13
|
"PO-Revision-Date: 2005-12-17 21:02+0100\n"
|
14
14
|
"Last-Translator: Karel Miarka <kajism@yahoo.com>\n"
|
15
15
|
"Language-Team: Czech\n"
|
@@ -20,10 +20,10 @@ msgstr ""
|
|
20
20
|
"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
21
21
|
"X-Poedit-Language: Czech\n"
|
22
22
|
|
23
|
-
#:
|
23
|
+
#: lib/gettext_plugin.rb:18
|
24
24
|
msgid "Select locale"
|
25
25
|
msgstr "Vyberte jazyk"
|
26
26
|
|
27
|
-
#:
|
27
|
+
#: lib/gettext_plugin.rb:30
|
28
28
|
msgid "Cookie "lang" is set: %s"
|
29
29
|
msgstr "Cookie "lang" je nastavena: %s"
|
@@ -9,9 +9,9 @@
|
|
9
9
|
# , fuzzy
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
|
-
"Project-Id-Version: gettext_plugin 1.
|
12
|
+
"Project-Id-Version: gettext_plugin 1.2.0\n"
|
13
13
|
"Report-Msgid-Bugs-To: \n"
|
14
|
-
"POT-Creation-Date: 2006-
|
14
|
+
"POT-Creation-Date: 2006-05-31 02:06+0900\n"
|
15
15
|
"PO-Revision-Date: 2005-08-28 22:27+0200\n"
|
16
16
|
"Last-Translator: Sven Herzberg <herzi@abi02.de>\n"
|
17
17
|
"Language-Team: German <gnome-de@gnome.org>\n"
|
@@ -20,10 +20,10 @@ msgstr ""
|
|
20
20
|
"Content-Transfer-Encoding: 8bit\n"
|
21
21
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
22
22
|
|
23
|
-
#:
|
23
|
+
#: lib/gettext_plugin.rb:18
|
24
24
|
msgid "Select locale"
|
25
25
|
msgstr "Wählen Sie Ihre Sprache"
|
26
26
|
|
27
|
-
#:
|
27
|
+
#: lib/gettext_plugin.rb:30
|
28
28
|
msgid "Cookie "lang" is set: %s"
|
29
29
|
msgstr "Das Cookie »lang« ist gesetzt: %s"
|
@@ -8,8 +8,8 @@
|
|
8
8
|
#
|
9
9
|
msgid ""
|
10
10
|
msgstr ""
|
11
|
-
"Project-Id-Version: gettext_plugin 1.
|
12
|
-
"POT-Creation-Date: 2006-
|
11
|
+
"Project-Id-Version: gettext_plugin 1.2.0\n"
|
12
|
+
"POT-Creation-Date: 2006-05-31 02:06+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"
|
@@ -18,10 +18,10 @@ msgstr ""
|
|
18
18
|
"Content-Transfer-Encoding: 8bit\n"
|
19
19
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
20
20
|
|
21
|
-
#:
|
21
|
+
#: lib/gettext_plugin.rb:18
|
22
22
|
msgid "Select locale"
|
23
23
|
msgstr "Επιλογή locale"
|
24
24
|
|
25
|
-
#:
|
25
|
+
#: lib/gettext_plugin.rb:30
|
26
26
|
msgid "Cookie "lang" is set: %s"
|
27
27
|
msgstr "Το cookie "lang" έχει την τιμή: %s"
|
@@ -9,8 +9,8 @@
|
|
9
9
|
#, fuzzy
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
|
-
"Project-Id-Version: gettext_plugin 1.
|
13
|
-
"POT-Creation-Date: 2006-
|
12
|
+
"Project-Id-Version: gettext_plugin 1.2.0\n"
|
13
|
+
"POT-Creation-Date: 2006-05-31 02:06+0900\n"
|
14
14
|
"PO-Revision-Date: 2005-08-27 23:23+0900\n"
|
15
15
|
"Last-Translator: David Espada <davinci@escomposlinux.org>\n"
|
16
16
|
"Language-Team: Spanish\n"
|
@@ -19,10 +19,10 @@ msgstr ""
|
|
19
19
|
"Content-Transfer-Encoding: 8bit\n"
|
20
20
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
21
21
|
|
22
|
-
#:
|
22
|
+
#: lib/gettext_plugin.rb:18
|
23
23
|
msgid "Select locale"
|
24
24
|
msgstr "Seleccione local"
|
25
25
|
|
26
|
-
#:
|
26
|
+
#: lib/gettext_plugin.rb:30
|
27
27
|
msgid "Cookie "lang" is set: %s"
|
28
28
|
msgstr "Cookie "lang" establecida: %s"
|
@@ -8,8 +8,8 @@
|
|
8
8
|
#
|
9
9
|
msgid ""
|
10
10
|
msgstr ""
|
11
|
-
"Project-Id-Version: gettext_plugin 1.
|
12
|
-
"POT-Creation-Date: 2006-
|
11
|
+
"Project-Id-Version: gettext_plugin 1.2.0\n"
|
12
|
+
"POT-Creation-Date: 2006-05-31 02:06+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"
|
@@ -18,10 +18,10 @@ msgstr ""
|
|
18
18
|
"Content-Transfer-Encoding: 8bit\n"
|
19
19
|
"Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1;\n"
|
20
20
|
|
21
|
-
#:
|
21
|
+
#: lib/gettext_plugin.rb:18
|
22
22
|
msgid "Select locale"
|
23
23
|
msgstr "Sélectionnez une locale"
|
24
24
|
|
25
|
-
#:
|
25
|
+
#: lib/gettext_plugin.rb:30
|
26
26
|
msgid "Cookie "lang" is set: %s"
|
27
27
|
msgstr "Le cookie "lang" est actif: %s"
|
@@ -9,8 +9,8 @@
|
|
9
9
|
#, fuzzy
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
|
-
"Project-Id-Version: gettext_plugin 1.
|
13
|
-
"POT-Creation-Date: 2006-
|
12
|
+
"Project-Id-Version: gettext_plugin 1.2.0\n"
|
13
|
+
"POT-Creation-Date: 2006-05-31 02:06+0900\n"
|
14
14
|
"PO-Revision-Date: 2005-08-27 23:23+0900\n"
|
15
15
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
16
16
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
@@ -19,10 +19,10 @@ msgstr ""
|
|
19
19
|
"Content-Transfer-Encoding: 8bit\n"
|
20
20
|
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
21
21
|
|
22
|
-
#:
|
22
|
+
#: lib/gettext_plugin.rb:18
|
23
23
|
msgid "Select locale"
|
24
24
|
msgstr ""
|
25
25
|
|
26
|
-
#:
|
26
|
+
#: lib/gettext_plugin.rb:30
|
27
27
|
msgid "Cookie "lang" is set: %s"
|
28
28
|
msgstr ""
|
@@ -0,0 +1,27 @@
|
|
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: gettext_plugin 1.2.0\n"
|
12
|
+
"POT-Creation-Date: 2006-05-31 02:06+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
|
+
#: lib/gettext_plugin.rb:18
|
22
|
+
msgid "Select locale"
|
23
|
+
msgstr "Scegli la lingua"
|
24
|
+
|
25
|
+
#: lib/gettext_plugin.rb:30
|
26
|
+
msgid "Cookie "lang" is set: %s"
|
27
|
+
msgstr ""lang" cookie: %s"
|
@@ -9,8 +9,8 @@
|
|
9
9
|
#, fuzzy
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
|
-
"Project-Id-Version: gettext_plugin 1.
|
13
|
-
"POT-Creation-Date: 2006-
|
12
|
+
"Project-Id-Version: gettext_plugin 1.2.0\n"
|
13
|
+
"POT-Creation-Date: 2006-05-31 02:06+0900\n"
|
14
14
|
"PO-Revision-Date: 2005-08-27 23:23+0900\n"
|
15
15
|
"Last-Translator: Masao Mutoh <mutoh@highway.ne.jp>\n"
|
16
16
|
"Language-Team: Japanese\n"
|
@@ -19,10 +19,10 @@ msgstr ""
|
|
19
19
|
"Content-Transfer-Encoding: 8bit\n"
|
20
20
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
21
21
|
|
22
|
-
#:
|
22
|
+
#: lib/gettext_plugin.rb:18
|
23
23
|
msgid "Select locale"
|
24
24
|
msgstr "ロケールの選択"
|
25
25
|
|
26
|
-
#:
|
26
|
+
#: lib/gettext_plugin.rb:30
|
27
27
|
msgid "Cookie "lang" is set: %s"
|
28
28
|
msgstr "クッキーの"lang"に %s がセットされました。"
|
@@ -8,8 +8,8 @@
|
|
8
8
|
#
|
9
9
|
msgid ""
|
10
10
|
msgstr ""
|
11
|
-
"Project-Id-Version: gettext_plugin 1.
|
12
|
-
"POT-Creation-Date: 2006-
|
11
|
+
"Project-Id-Version: gettext_plugin 1.2.0\n"
|
12
|
+
"POT-Creation-Date: 2006-05-31 02:06+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 <LL@li.org>\n"
|
@@ -18,10 +18,10 @@ msgstr ""
|
|
18
18
|
"Content-Transfer-Encoding: 8bit\n"
|
19
19
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
20
20
|
|
21
|
-
#:
|
21
|
+
#: lib/gettext_plugin.rb:18
|
22
22
|
msgid "Select locale"
|
23
23
|
msgstr "로케일을 선택하세요"
|
24
24
|
|
25
|
-
#:
|
25
|
+
#: lib/gettext_plugin.rb:30
|
26
26
|
msgid "Cookie "lang" is set: %s"
|
27
27
|
msgstr "쿠키 언어가 %s로 설정되었습니다."
|
@@ -9,8 +9,8 @@
|
|
9
9
|
#, fuzzy
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
|
-
"Project-Id-Version: gettext_plugin 1.
|
13
|
-
"POT-Creation-Date: 2006-
|
12
|
+
"Project-Id-Version: gettext_plugin 1.2.0\n"
|
13
|
+
"POT-Creation-Date: 2006-05-31 02:06+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"
|
@@ -19,10 +19,10 @@ msgstr ""
|
|
19
19
|
"Content-Transfer-Encoding: 8bit\n"
|
20
20
|
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
21
21
|
|
22
|
-
#:
|
22
|
+
#: lib/gettext_plugin.rb:18
|
23
23
|
msgid "Select locale"
|
24
24
|
msgstr "Kies locale"
|
25
25
|
|
26
|
-
#:
|
26
|
+
#: lib/gettext_plugin.rb:30
|
27
27
|
msgid "Cookie "lang" is set: %s"
|
28
28
|
msgstr "Cookie "lang" is ingesteld: %s"
|
@@ -8,8 +8,8 @@
|
|
8
8
|
#
|
9
9
|
msgid ""
|
10
10
|
msgstr ""
|
11
|
-
"Project-Id-Version: gettext_plugin 1.
|
12
|
-
"POT-Creation-Date: 2006-
|
11
|
+
"Project-Id-Version: gettext_plugin 1.2.0\n"
|
12
|
+
"POT-Creation-Date: 2006-05-31 02:06+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"
|
@@ -18,10 +18,10 @@ msgstr ""
|
|
18
18
|
"Content-Transfer-Encoding: 8bit\n"
|
19
19
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
20
20
|
|
21
|
-
#:
|
21
|
+
#: lib/gettext_plugin.rb:18
|
22
22
|
msgid "Select locale"
|
23
23
|
msgstr "Selecione o 'locale'"
|
24
24
|
|
25
|
-
#:
|
25
|
+
#: lib/gettext_plugin.rb:30
|
26
26
|
msgid "Cookie "lang" is set: %s"
|
27
27
|
msgstr "Cookie "lang" está configurado: %s"
|
@@ -6,8 +6,8 @@
|
|
6
6
|
#
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: gettext_plugin 1.
|
10
|
-
"POT-Creation-Date: 2006-
|
9
|
+
"Project-Id-Version: gettext_plugin 1.2.0\n"
|
10
|
+
"POT-Creation-Date: 2006-05-31 02:06+0900\n"
|
11
11
|
"PO-Revision-Date: 2006-04-17 20:09+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"
|
@@ -16,11 +16,10 @@ msgstr ""
|
|
16
16
|
"Content-Transfer-Encoding: 8bit\n"
|
17
17
|
"X-Generator: KBabel 1.9.1\n"
|
18
18
|
|
19
|
-
#:
|
19
|
+
#: lib/gettext_plugin.rb:18
|
20
20
|
msgid "Select locale"
|
21
21
|
msgstr "Выбор локали"
|
22
22
|
|
23
|
-
#:
|
23
|
+
#: lib/gettext_plugin.rb:30
|
24
24
|
msgid "Cookie "lang" is set: %s"
|
25
25
|
msgstr "Для куки "lang" установлено значение: %s"
|
26
|
-
|
@@ -0,0 +1,27 @@
|
|
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: gettext_plugin 1.2.0\n"
|
12
|
+
"POT-Creation-Date: 2006-05-31 02:06+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
|
+
#: lib/gettext_plugin.rb:18
|
22
|
+
msgid "Select locale"
|
23
|
+
msgstr "选择国家"
|
24
|
+
|
25
|
+
#: lib/gettext_plugin.rb:30
|
26
|
+
msgid "Cookie "lang" is set: %s"
|
27
|
+
msgstr "Cookie ";语言";设置为:%s"
|
data/test/gettext_test.rb
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
require 'test/unit'
|
2
2
|
|
3
3
|
require 'gettext.rb'
|
4
|
+
|
4
5
|
require 'testlib1.rb'
|
5
6
|
require 'testlib2.rb'
|
6
7
|
require 'testlib3.rb'
|
7
8
|
require 'testlib4.rb'
|
9
|
+
require 'testlib6.rb'
|
8
10
|
require 'test_rubyparser.rb'
|
9
11
|
require 'test_sgettext.rb'
|
10
12
|
|
@@ -14,6 +16,7 @@ class TestGetText < Test::Unit::TestCase
|
|
14
16
|
def test_bindtextdomain
|
15
17
|
GetText.locale = nil
|
16
18
|
return if /linux/ !~ RUBY_PLATFORM
|
19
|
+
|
17
20
|
GetText.bindtextdomain("libc")
|
18
21
|
assert_equal("��λ���ޤ���", GetText._("Terminated"))
|
19
22
|
|
@@ -31,7 +34,6 @@ class TestGetText < Test::Unit::TestCase
|
|
31
34
|
assert_equal("��λ���ޤ���", GetText._("Terminated"))
|
32
35
|
|
33
36
|
GetText.locale = nil
|
34
|
-
GetText.charset = nil
|
35
37
|
GetText.bindtextdomain("libc", "/usr/share/locale", "de")
|
36
38
|
assert_equal("Beendet", GetText._("Terminated"))
|
37
39
|
|
@@ -43,6 +45,7 @@ class TestGetText < Test::Unit::TestCase
|
|
43
45
|
GetText.locale = nil
|
44
46
|
GetText.bindtextdomain("test1", "locale", "ja")
|
45
47
|
assert_equal("japanese", GetText._("language"))
|
48
|
+
|
46
49
|
end
|
47
50
|
|
48
51
|
def test_bindtextdomain_include_module
|
@@ -52,7 +55,7 @@ class TestGetText < Test::Unit::TestCase
|
|
52
55
|
end
|
53
56
|
|
54
57
|
def test_gettext
|
55
|
-
|
58
|
+
set_locale(nil)
|
56
59
|
bindtextdomain("test1", "locale")
|
57
60
|
assert_equal("japanese", gettext("language"))
|
58
61
|
assert_equal("", gettext(""))
|
@@ -60,16 +63,16 @@ class TestGetText < Test::Unit::TestCase
|
|
60
63
|
end
|
61
64
|
|
62
65
|
def test_class
|
63
|
-
GetText.locale =
|
66
|
+
GetText.locale = "ja_JP.eucJP"
|
64
67
|
bindtextdomain("test2", "locale")
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
assert_equal("japanese",
|
69
|
-
assert_equal("ONE IS 1.",
|
70
|
-
|
71
|
-
assert_equal("
|
72
|
-
assert_equal("
|
68
|
+
testlib6 = TestLib6.new
|
69
|
+
assert_equal("japanese", testlib6.test)
|
70
|
+
GetText.setlocale("fr")
|
71
|
+
assert_equal("japanese", testlib6.test) #no influence of previous line
|
72
|
+
assert_equal("ONE IS 1.", testlib6.test_formatted_string)
|
73
|
+
testlib6.setlocale("ja")
|
74
|
+
assert_equal("FRENCH", _("LANGUAGE")) #no influence of previous line
|
75
|
+
assert_equal("japanese", testlib6.test)
|
73
76
|
end
|
74
77
|
|
75
78
|
def test_subclass
|
@@ -221,10 +224,12 @@ DDD
|
|
221
224
|
assert_raises(GetText::NoboundTextDomainError) {
|
222
225
|
GetText.textdomain("nodomainisdefined")
|
223
226
|
}
|
227
|
+
prefix = TextDomain::CONFIG_PREFIX
|
224
228
|
default_locale_dirs = [
|
225
229
|
"#{Config::CONFIG['datadir']}/locale/%{locale}/LC_MESSAGES/%{name}.mo",
|
226
|
-
"#{Config::CONFIG['
|
227
|
-
"#{
|
230
|
+
"#{Config::CONFIG['datadir'].gsub(/\/local/, "")}/locale/%{locale}/LC_MESSAGES/%{name}.mo",
|
231
|
+
"#{prefix}/share/locale/%{locale}/LC_MESSAGES/%{name}.mo",
|
232
|
+
"#{prefix}/local/share/locale/%{locale}/LC_MESSAGES/%{name}.mo"
|
228
233
|
].uniq
|
229
234
|
assert_equal(default_locale_dirs, GetText::TextDomain::DEFAULT_LOCALE_PATHS)
|
230
235
|
new_path = "/foo/%{locale}/%{name}.mo"
|
@@ -254,5 +259,4 @@ DDD
|
|
254
259
|
assert_equal(loc, GetText.locale = loc)
|
255
260
|
assert_equal(Locale::Object, GetText.locale.class)
|
256
261
|
end
|
257
|
-
|
258
262
|
end
|