gettext 1.0.0-mswin32 → 1.1.0-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +193 -0
- data/NEWS +51 -1
- data/README +29 -11
- data/Rakefile +70 -56
- data/bin/rgettext +2 -0
- data/bin/rmsgfmt +2 -0
- data/bin/rmsgmerge +24 -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/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/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/sv/LC_MESSAGES/rgettext.mo +0 -0
- data/ext/gettext/gettext/_locale.BAK +86 -0
- data/ext/gettext/gettext/_locale.c +1 -1
- data/ext/gettext/gettext/_locale.exp +0 -0
- data/ext/gettext/gettext/_locale.lib +0 -0
- data/ext/gettext/gettext/_locale.obj +0 -0
- data/ext/gettext/gettext/_locale.pdb +0 -0
- data/ext/gettext/gettext/_locale.so +0 -0
- data/ext/gettext/gettext/mkmf.log +4 -4
- data/ext/gettext/gettext/vc70.pdb +0 -0
- data/lib/_locale.so +0 -0
- data/lib/gettext.rb +17 -4
- data/lib/gettext/cgi.rb +34 -19
- data/lib/gettext/locale.rb +3 -13
- data/lib/gettext/locale_default.rb +2 -2
- data/lib/gettext/locale_win32.rb +27 -7
- data/lib/gettext/mo.rb +6 -1
- data/lib/gettext/parser/activerecord.rb +115 -0
- data/lib/gettext/parser/glade.rb +3 -1
- data/lib/gettext/parser/ruby.rb +56 -57
- data/lib/gettext/poparser.rb +297 -0
- data/lib/gettext/rails.rb +161 -3
- data/lib/gettext/rgettext.rb +19 -9
- data/lib/gettext/rmsgfmt.rb +95 -363
- data/lib/gettext/rmsgmerge.rb +381 -0
- data/lib/gettext/string.rb +26 -0
- data/lib/gettext/textdomain.rb +21 -18
- data/lib/gettext/utils.rb +55 -0
- data/lib/gettext/version.rb +1 -1
- data/po/cs/rails.po +83 -0
- data/po/cs/rgettext.po +104 -0
- data/po/de/rails.po +79 -0
- data/po/de/rgettext.po +72 -21
- data/po/es/rails.po +80 -0
- data/po/es/rgettext.po +75 -19
- data/po/fr/rails.po +81 -0
- data/po/fr/rgettext.po +75 -19
- data/po/it/rgettext.po +68 -17
- data/po/ja/rails.po +78 -0
- data/po/ja/rgettext.po +71 -20
- data/po/ko/rails.po +77 -0
- data/po/ko/rgettext.po +74 -22
- data/po/nl/rails.po +80 -0
- data/po/nl/rgettext.po +102 -0
- data/po/pt_BR/rails.po +79 -0
- data/po/pt_BR/rgettext.po +77 -24
- data/po/rails.pot +80 -0
- data/po/rgettext.pot +63 -13
- data/po/sv/rgettext.po +63 -15
- data/samples/cgi/cookie.cgi +5 -0
- data/samples/cgi/helloerb1.cgi +4 -0
- data/samples/cgi/helloerb2.cgi +5 -0
- data/samples/cgi/index.cgi +5 -0
- data/samples/cgi/locale/cs/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/cs/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/cs/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/cs/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/fr/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/ko/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/ko/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/ko/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/ko/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/nl/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/nl/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/nl/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/nl/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/pt_BR/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/pt_BR/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/po/cs/helloerb1.po +66 -0
- data/samples/cgi/po/cs/helloerb2.po +52 -0
- data/samples/cgi/po/cs/hellolib.po +25 -0
- data/samples/cgi/po/cs/main.po +78 -0
- data/samples/cgi/po/fr/main.po +8 -8
- data/samples/cgi/po/ko/helloerb1.po +2 -3
- data/samples/cgi/po/ko/helloerb2.po +1 -2
- data/samples/cgi/po/ko/hellolib.po +1 -2
- data/samples/cgi/po/ko/main.po +2 -3
- data/samples/cgi/po/nl/helloerb1.po +60 -0
- data/samples/cgi/po/nl/helloerb2.po +52 -0
- data/samples/cgi/po/nl/hellolib.po +24 -0
- data/samples/cgi/po/nl/main.po +76 -0
- data/samples/cgi/po/pt_BR/helloerb1.po +59 -0
- data/samples/cgi/po/pt_BR/helloerb2.po +51 -0
- data/samples/cgi/po/pt_BR/hellolib.po +22 -0
- data/samples/cgi/po/pt_BR/main.po +75 -0
- data/samples/locale/cs/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/cs/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/cs/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/cs/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/cs/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/cs/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/cs/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/fr/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/ko/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/ko/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/ko/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/ko/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/ko/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/ko/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/ko/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/nl/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/nl/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/nl/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/nl/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/nl/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/nl/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/nl/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/pt_BR/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/pt_BR/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/pt_BR/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/pt_BR/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/pt_BR/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/pt_BR/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/pt_BR/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/po/cs/hello.po +23 -0
- data/samples/po/cs/hello2.po +31 -0
- data/samples/po/cs/hello_noop.po +27 -0
- data/samples/po/cs/hello_plural.po +26 -0
- data/samples/po/cs/helloglade2.po +37 -0
- data/samples/po/cs/hellogtk.po +23 -0
- data/samples/po/cs/hellotk.po +23 -0
- data/samples/po/fr/helloglade2.po +2 -2
- data/samples/po/hello.pot +1 -0
- data/samples/po/hello2.pot +1 -0
- data/samples/po/hello_noop.pot +2 -1
- data/samples/po/hello_plural.pot +6 -2
- data/samples/po/helloglade2.pot +8 -3
- data/samples/po/hellotk.pot +4 -0
- data/samples/po/ko/hello.po +1 -2
- data/samples/po/ko/hello2.po +1 -2
- data/samples/po/ko/hello_noop.po +1 -2
- data/samples/po/ko/hello_plural.po +1 -2
- data/samples/po/ko/helloglade2.po +2 -2
- data/samples/po/ko/hellogtk.po +1 -2
- data/samples/po/ko/hellotk.po +1 -2
- data/samples/po/nl/hello.po +24 -0
- data/samples/po/nl/hello2.po +32 -0
- data/samples/po/nl/hello_noop.po +28 -0
- data/samples/po/nl/hello_plural.po +26 -0
- data/samples/po/nl/helloglade2.po +31 -0
- data/samples/po/nl/hellogtk.po +24 -0
- data/samples/po/nl/hellotk.po +24 -0
- data/samples/po/pt_BR/hello.po +6 -5
- data/samples/po/pt_BR/hello2.po +6 -5
- data/samples/po/pt_BR/hello_noop.po +6 -5
- data/samples/po/pt_BR/hello_plural.po +6 -6
- data/samples/po/pt_BR/helloglade2.po +6 -5
- data/samples/po/pt_BR/hellogtk.po +6 -5
- data/samples/po/pt_BR/hellotk.po +6 -5
- data/samples/rails/README +21 -15
- data/samples/rails/Rakefile +10 -1
- data/samples/rails/app/controllers/application.rb +10 -18
- data/samples/rails/app/controllers/blog_controller.rb +1 -5
- data/samples/rails/app/helpers/blog_helper.rb +1 -1
- data/samples/rails/app/models/article.rb +15 -0
- data/samples/rails/app/views/blog/_form.rhtml +2 -2
- data/samples/rails/config/boot.rb +17 -0
- data/samples/rails/config/database.yml +6 -4
- data/samples/rails/config/environment.rb +40 -75
- data/samples/rails/config/environments/development.rb +12 -7
- data/samples/rails/config/environments/production.rb +17 -6
- data/samples/rails/config/environments/test.rb +8 -6
- data/samples/rails/locale/cs/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/cs/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/de/LC_MESSAGES/gettext_plugin.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/es/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/fr/LC_MESSAGES/{lang_helper.mo → gettext_plugin.mo} +0 -0
- data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ja/LC_MESSAGES/{lang_helper.mo → gettext_plugin.mo} +0 -0
- data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/ko/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/nl/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/nl/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/po/blog.pot +57 -37
- data/samples/rails/po/cs/blog.po +116 -0
- data/samples/rails/po/cs/gettext_plugin.po +29 -0
- data/samples/rails/po/de/blog.po +70 -51
- data/samples/rails/po/de/{lang_helper.po → gettext_plugin.po} +4 -5
- data/samples/rails/po/en/blog.po +111 -0
- data/samples/rails/po/es/blog.po +67 -47
- data/samples/rails/po/es/{lang_helper.po → gettext_plugin.po} +5 -5
- data/samples/rails/po/fr/blog.po +65 -45
- data/samples/rails/po/fr/{lang_helper.po → gettext_plugin.po} +4 -4
- data/samples/rails/po/{lang_helper.pot → gettext_plugin.pot} +4 -4
- data/samples/rails/po/ja/blog.po +64 -44
- data/samples/rails/po/ja/{lang_helper.po → gettext_plugin.po} +4 -4
- data/samples/rails/po/ko/blog.po +65 -46
- data/samples/rails/po/ko/{lang_helper.po → gettext_plugin.po} +5 -6
- data/samples/rails/po/nl/blog.po +115 -0
- data/samples/rails/po/nl/gettext_plugin.po +28 -0
- data/samples/rails/po/pt_BR/blog.po +109 -0
- data/samples/rails/po/pt_BR/gettext_plugin.po +27 -0
- data/samples/rails/public/images/rails.png +0 -0
- data/samples/rails/public/index.html +272 -71
- data/samples/rails/public/javascripts/controls.js +441 -166
- data/samples/rails/public/javascripts/dragdrop.js +261 -279
- data/samples/rails/public/javascripts/effects.js +657 -277
- data/samples/rails/public/javascripts/prototype.js +911 -223
- data/samples/rails/public/robots.txt +1 -0
- data/samples/rails/public/stylesheets/scaffold.css +1 -1
- data/samples/rails/script/about +3 -0
- data/samples/rails/script/breakpointer +3 -4
- data/samples/rails/script/console +3 -23
- data/samples/rails/script/destroy +3 -7
- data/samples/rails/script/generate +3 -7
- data/samples/rails/script/performance/benchmarker +3 -0
- data/samples/rails/script/performance/profiler +3 -0
- data/samples/rails/script/plugin +3 -0
- data/samples/rails/script/process/reaper +3 -0
- data/samples/rails/script/process/spawner +3 -0
- data/samples/rails/script/process/spinner +3 -0
- data/samples/rails/script/runner +3 -29
- data/samples/rails/script/server +3 -49
- data/samples/rails/vendor/plugins/gettext/init.rb +19 -0
- data/samples/rails/vendor/{lang_helper.rb → plugins/gettext/lib/gettext_plugin.rb} +15 -11
- data/src/poparser.ry +171 -0
- data/test/gettext_runner.rb +3 -1
- data/test/gettext_test.rb +56 -31
- data/test/gettext_test_cgi.rb +12 -0
- data/test/gettext_test_parser.rb +3 -0
- data/test/gettext_test_string.rb +14 -0
- data/test/locale/cr/LC_MESSAGES/plural.mo +0 -0
- data/test/locale/da/LC_MESSAGES/plural.mo +0 -0
- data/test/locale/da/LC_MESSAGES/plural_error.mo +0 -0
- data/test/locale/fr/LC_MESSAGES/plural.mo +0 -0
- data/test/locale/fr/LC_MESSAGES/plural_error.mo +0 -0
- data/test/locale/ir/LC_MESSAGES/plural.mo +0 -0
- data/test/locale/la/LC_MESSAGES/plural.mo +0 -0
- data/test/locale/li/LC_MESSAGES/plural.mo +0 -0
- data/test/locale/po/LC_MESSAGES/plural.mo +0 -0
- data/test/locale/sl/LC_MESSAGES/plural.mo +0 -0
- data/test/po/cr/plural.po +3 -3
- data/test/po/da/plural.po +2 -2
- data/test/po/da/plural_error.po +2 -1
- data/test/po/fr/plural.po +2 -2
- data/test/po/fr/plural_error.po +2 -1
- data/test/po/ir/plural.po +3 -3
- data/test/po/la/plural.po +3 -3
- data/test/po/li/plural.po +3 -3
- data/test/po/po/plural.po +3 -3
- data/test/po/sl/plural.po +4 -4
- data/test/test.sh +1 -0
- data/test/test_rubyparser.rb +20 -0
- data/test/{test_rubyparser_n.rb → test_rubyparser_N.rb} +0 -0
- metadata +163 -43
- data/README.ja +0 -115
- data/data/locale/de/LC_MESSAGES/rmsgfmt.mo +0 -0
- data/data/locale/es/LC_MESSAGES/rmsgfmt.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/rmsgfmt.mo +0 -0
- data/data/locale/it/LC_MESSAGES/rmsgfmt.mo +0 -0
- data/data/locale/ja/LC_MESSAGES/rmsgfmt.mo +0 -0
- data/data/locale/ko/LC_MESSAGES/rmsgfmt.mo +0 -0
- data/data/locale/pt_BR/LC_MESSAGES/rmsgfmt.mo +0 -0
- data/data/locale/sv/LC_MESSAGES/rmsgfmt.mo +0 -0
- data/gettext-1.0.0-mswin32.gem +0 -0
- data/po/de/rmsgfmt.po +0 -45
- data/po/es/rmsgfmt.po +0 -43
- data/po/fr/rmsgfmt.po +0 -43
- data/po/it/rmsgfmt.po +0 -44
- data/po/ja/rmsgfmt.po +0 -43
- data/po/ko/rmsgfmt.po +0 -40
- data/po/pt_BR/rmsgfmt.po +0 -42
- data/po/rmsgfmt.pot +0 -40
- data/po/sv/rmsgfmt.po +0 -43
- data/samples/rails/locale/de/LC_MESSAGES/lang_helper.mo +0 -0
- data/samples/rails/locale/es/LC_MESSAGES/lang_helper.mo +0 -0
- data/samples/rails/locale/ko/LC_MESSAGES/lang_helper.mo +0 -0
- data/samples/rails/log/development.log +0 -378
- data/src/rmsgfmt.ry +0 -233
data/test/gettext_runner.rb
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
require 'test/unit/testsuite'
|
2
2
|
require 'gettext_test'
|
3
3
|
require 'gettext_test_parser'
|
4
|
+
require 'gettext_test_string'
|
4
5
|
|
5
6
|
class GetTextTest
|
6
7
|
def suite
|
7
8
|
s = Test::Unit::TestSuite.new
|
8
9
|
s << TestGetText.suite
|
9
10
|
s << TestGetTextParser.suite
|
11
|
+
s << TestGetTextString.suite
|
10
12
|
s
|
11
13
|
end
|
12
14
|
end
|
13
15
|
|
14
|
-
if RUBY_VERSION >= '1.
|
16
|
+
if RUBY_VERSION >= '1.8.4'
|
15
17
|
Test::Unit::AutoRunner.run
|
16
18
|
else
|
17
19
|
Test::Unit::AutoRunner.run(GetTextTest)
|
data/test/gettext_test.rb
CHANGED
@@ -13,11 +13,14 @@ class TestGetText < Test::Unit::TestCase
|
|
13
13
|
include GetText
|
14
14
|
|
15
15
|
def test_bindtextdomain
|
16
|
+
GetText.locale = nil
|
16
17
|
return if /linux/ !~ RUBY_PLATFORM
|
17
18
|
GetText.bindtextdomain("libc")
|
18
19
|
GetText.locale = "ja_JP.eucJP"
|
19
20
|
GetText.charset = "euc-jp"
|
20
21
|
assert_equal("��λ���ޤ���", GetText._("Terminated"))
|
22
|
+
|
23
|
+
GetText.locale = nil
|
21
24
|
GetText.bindtextdomain("test1", "locale")
|
22
25
|
assert_equal("japanese", GetText._("language"))
|
23
26
|
|
@@ -37,21 +40,25 @@ class TestGetText < Test::Unit::TestCase
|
|
37
40
|
GetText.locale = "fr"
|
38
41
|
assert_equal("french", GetText._("language"))
|
39
42
|
|
43
|
+
GetText.locale = nil
|
40
44
|
GetText.bindtextdomain("test1", "locale", "ja")
|
41
45
|
assert_equal("japanese", GetText._("language"))
|
42
46
|
end
|
43
47
|
|
44
48
|
def test_bindtextdomain_include_module
|
49
|
+
GetText.locale = nil
|
45
50
|
bindtextdomain("test1", "locale")
|
46
51
|
assert_equal("japanese", _("language"))
|
47
52
|
end
|
48
53
|
|
49
54
|
def test_gettext
|
55
|
+
GetText.locale = nil
|
50
56
|
bindtextdomain("test1", "locale")
|
51
57
|
assert_equal("japanese", gettext("language"))
|
52
58
|
end
|
53
59
|
|
54
60
|
def test_class
|
61
|
+
GetText.locale = nil
|
55
62
|
bindtextdomain("test2", "locale")
|
56
63
|
|
57
64
|
testlib1 = TestLib1.new
|
@@ -64,22 +71,26 @@ class TestGetText < Test::Unit::TestCase
|
|
64
71
|
end
|
65
72
|
|
66
73
|
def test_subclass
|
74
|
+
GetText.locale = nil
|
67
75
|
testlib2 = TestLib2.new
|
68
76
|
assert_equal("JAPANESE", testlib2.test2)
|
69
77
|
assert_equal("japanese", testlib2.test)
|
70
78
|
end
|
71
79
|
|
72
80
|
def test_nested_module
|
81
|
+
GetText.locale = nil
|
73
82
|
testlib3 = TestLib3::Test3.new
|
74
83
|
assert_equal("JAPANESE", testlib3.test3)
|
75
84
|
end
|
76
85
|
|
77
86
|
def test_no_msgstr
|
87
|
+
GetText.locale = nil
|
78
88
|
bindtextdomain("test1", "locale", "ja")
|
79
89
|
assert_equal("nomsgstr", _("nomsgstr"))
|
80
90
|
end
|
81
91
|
|
82
92
|
def test_complex
|
93
|
+
GetText.locale = nil
|
83
94
|
testlib4 = TestRubyParser.new
|
84
95
|
assert_equal("AAA", testlib4.test_1)
|
85
96
|
assert_equal("AAA\n", testlib4.test_2)
|
@@ -94,10 +105,12 @@ DDD
|
|
94
105
|
end
|
95
106
|
|
96
107
|
def test_noop
|
108
|
+
GetText.locale = nil
|
97
109
|
assert_equal("test", N_("test"))
|
98
110
|
end
|
99
111
|
|
100
112
|
def test_sgettext
|
113
|
+
GetText.locale = nil
|
101
114
|
testlib5 = TestSGetText.new
|
102
115
|
assert_equal("MATCHED", testlib5.test_1)
|
103
116
|
assert_equal("MATCHED", testlib5.test_2)
|
@@ -111,64 +124,74 @@ DDD
|
|
111
124
|
end
|
112
125
|
|
113
126
|
def test_plural
|
127
|
+
GetText.locale = nil
|
114
128
|
bindtextdomain("plural", "locale", "ja")
|
115
129
|
assert_equal("all", n_("one", "two", 0))
|
116
130
|
assert_equal("all", n_("one", "two", 1))
|
117
131
|
assert_equal("all", n_("one", "two", 2))
|
118
132
|
|
119
133
|
setlocale("da")
|
120
|
-
assert_equal("
|
121
|
-
assert_equal("
|
122
|
-
assert_equal("
|
134
|
+
assert_equal("da_plural", n_("one", "two", 0))
|
135
|
+
assert_equal("da_one", n_("one", "two", 1))
|
136
|
+
assert_equal("da_plural", n_("one", "two", 2))
|
123
137
|
|
124
138
|
setlocale("fr")
|
125
|
-
assert_equal("
|
126
|
-
assert_equal("
|
127
|
-
assert_equal("
|
139
|
+
assert_equal("fr_one", ngettext("one", "two", 0))
|
140
|
+
assert_equal("fr_one", ngettext("one", "two", 1))
|
141
|
+
assert_equal("fr_plural", ngettext("one", "two", 2))
|
128
142
|
|
129
143
|
setlocale("la")
|
130
|
-
assert_equal("
|
131
|
-
assert_equal("
|
132
|
-
assert_equal("
|
133
|
-
assert_equal("
|
144
|
+
assert_equal("la_one", ngettext("one", "two", 21))
|
145
|
+
assert_equal("la_one", ngettext("one", "two", 1))
|
146
|
+
assert_equal("la_plural", ngettext("one", "two", 2))
|
147
|
+
assert_equal("la_zero", ngettext("one", "two", 0))
|
134
148
|
|
135
149
|
setlocale("ir")
|
136
|
-
assert_equal("
|
137
|
-
assert_equal("
|
138
|
-
assert_equal("
|
139
|
-
assert_equal("
|
150
|
+
assert_equal("ir_one", ngettext("one", "two", 1))
|
151
|
+
assert_equal("ir_two", ngettext("one", "two", 2))
|
152
|
+
assert_equal("ir_plural", ngettext("one", "two", 3))
|
153
|
+
assert_equal("ir_plural", ngettext("one", "two", 0))
|
140
154
|
|
141
155
|
setlocale("li")
|
142
|
-
assert_equal("
|
143
|
-
assert_equal("
|
144
|
-
assert_equal("
|
156
|
+
assert_equal("li_one", ngettext("one", "two", 1))
|
157
|
+
assert_equal("li_two", ngettext("one", "two", 22))
|
158
|
+
assert_equal("li_three", ngettext("one", "two", 11))
|
145
159
|
|
146
160
|
setlocale("cr")
|
147
|
-
assert_equal("
|
148
|
-
assert_equal("
|
149
|
-
assert_equal("
|
161
|
+
assert_equal("cr_one", ngettext("one", "two", 1))
|
162
|
+
assert_equal("cr_two", ngettext("one", "two", 2))
|
163
|
+
assert_equal("cr_three", ngettext("one", "two", 5))
|
150
164
|
|
151
165
|
setlocale("po")
|
152
|
-
assert_equal("
|
153
|
-
assert_equal("
|
154
|
-
assert_equal("
|
166
|
+
assert_equal("po_one", ngettext("one", "two", 1))
|
167
|
+
assert_equal("po_two", ngettext("one", "two", 2))
|
168
|
+
assert_equal("po_three", ngettext("one", "two", 5))
|
155
169
|
|
156
170
|
setlocale("sl")
|
157
|
-
assert_equal("
|
158
|
-
assert_equal("
|
159
|
-
assert_equal("
|
160
|
-
assert_equal("
|
161
|
-
assert_equal("
|
171
|
+
assert_equal("sl_one", ngettext("one", "two", 1))
|
172
|
+
assert_equal("sl_two", ngettext("one", "two", 2))
|
173
|
+
assert_equal("sl_three", ngettext("one", "two", 3))
|
174
|
+
assert_equal("sl_three", ngettext("one", "two", 4))
|
175
|
+
assert_equal("sl_four", ngettext("one", "two", 5))
|
176
|
+
end
|
162
177
|
|
178
|
+
def test_plural_format_invalid
|
179
|
+
setlocale(nil)
|
163
180
|
bindtextdomain("plural_error", "locale", "ja")
|
164
|
-
assert_equal("a", n_("one", "two", 0))
|
181
|
+
assert_equal("a", n_("one", "two", 0))
|
182
|
+
# Use default(plural = 0)
|
165
183
|
setlocale("fr")
|
166
|
-
assert_equal("
|
184
|
+
assert_equal("fr_one", n_("one", "two", 0))
|
185
|
+
assert_equal("fr_one", n_("one", "two", 1))
|
186
|
+
assert_equal("fr_one", n_("one", "two", 2))
|
167
187
|
setlocale("da")
|
168
|
-
assert_equal("
|
188
|
+
assert_equal("da_one", n_("one", "two", 0))
|
189
|
+
assert_equal("da_one", n_("one", "two", 1))
|
190
|
+
assert_equal("da_one", n_("one", "two", 2))
|
169
191
|
end
|
170
192
|
|
171
193
|
def test_setlocale
|
194
|
+
GetText.locale = nil
|
172
195
|
bindtextdomain("test1", "locale")
|
173
196
|
assert_equal("japanese", _("language"))
|
174
197
|
setlocale("en")
|
@@ -178,6 +201,7 @@ DDD
|
|
178
201
|
end
|
179
202
|
|
180
203
|
def test_locale
|
204
|
+
GetText.locale = nil
|
181
205
|
loc = Locale.set(Locale::CTYPE, "ja_JP.eucJP")
|
182
206
|
assert_equal("ja_JP.eucJP", loc)
|
183
207
|
assert_equal("ja_JP.eucJP", Locale.get)
|
@@ -192,6 +216,7 @@ DDD
|
|
192
216
|
end
|
193
217
|
|
194
218
|
def test_textdomain
|
219
|
+
GetText.locale = nil
|
195
220
|
Locale.setlocale(Locale::CTYPE, "ja_JP.eucJP")
|
196
221
|
testlib = TestLib4.new
|
197
222
|
assert_equal("japanese", testlib.test)
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'gettext/cgi'
|
3
|
+
|
4
|
+
class TestGetTextCGI < Test::Unit::TestCase
|
5
|
+
def test_locale_normalize
|
6
|
+
assert_equal("ja_JP", Locale.normalize("ja_JP"))
|
7
|
+
assert_equal("ja", Locale.normalize("ja,en-us;q=0.7,en;q=0.3"))
|
8
|
+
assert_equal("en_US", Locale.normalize("en-us,ja;q=0.7,en;q=0.3"))
|
9
|
+
assert_equal("ja_JP", Locale.normalize("ja-jp"))
|
10
|
+
assert_equal("ja", Locale.normalize("ja"))
|
11
|
+
end
|
12
|
+
end
|
data/test/gettext_test_parser.rb
CHANGED
@@ -21,6 +21,9 @@ class TestGetTextParser < Test::Unit::TestCase
|
|
21
21
|
assert_equal(['lllmmm', 'test_rubyparser.rb:54'], ary[11])
|
22
22
|
assert_equal(['nnn\nooo', 'test_rubyparser.rb:62'], ary[12])
|
23
23
|
assert_equal(["\#", 'test_rubyparser.rb:66', 'test_rubyparser.rb:70'], ary[13])
|
24
|
+
assert_equal(["\\taaa", 'test_rubyparser.rb:74'], ary[14])
|
25
|
+
assert_equal(["Here document1\\nHere document2\\n", 'test_rubyparser.rb:78'], ary[15])
|
26
|
+
assert_equal(["Here document1\\nHere document2\\n", 'test_rubyparser.rb:92'], ary[16])
|
24
27
|
end
|
25
28
|
|
26
29
|
def test_ruby_N
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'gettext'
|
3
|
+
|
4
|
+
class TestGetTextString < Test::Unit::TestCase
|
5
|
+
def test_string_sprintf
|
6
|
+
assert_equal("foo is a number", "%{msg} is a number" % {:msg => "foo"})
|
7
|
+
assert_equal("bar is a number", "%s is a number" % ["bar"])
|
8
|
+
assert_equal("bar is a number", "%s is a number" % "bar")
|
9
|
+
assert_equal("1, test", "%{num}, %{record}" % {:num => 1, :record => "test"})
|
10
|
+
assert_equal("test, 1", "%{record}, %{num}" % {:num => 1, :record => "test"})
|
11
|
+
assert_equal("1, test", "%d, %s" % [1, "test"])
|
12
|
+
assert_equal("test, 1", "%2$s, %1$d" % [1, "test"])
|
13
|
+
end
|
14
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/po/cr/plural.po
CHANGED
data/test/po/da/plural.po
CHANGED
data/test/po/da/plural_error.po
CHANGED
data/test/po/fr/plural.po
CHANGED
data/test/po/fr/plural_error.po
CHANGED
data/test/po/ir/plural.po
CHANGED
data/test/po/la/plural.po
CHANGED
data/test/po/li/plural.po
CHANGED
data/test/po/po/plural.po
CHANGED
data/test/po/sl/plural.po
CHANGED
data/test/test.sh
CHANGED
data/test/test_rubyparser.rb
CHANGED
@@ -73,5 +73,25 @@ ddd
|
|
73
73
|
def test_16
|
74
74
|
_('\taaa')
|
75
75
|
end
|
76
|
+
|
77
|
+
def test_17
|
78
|
+
ret = _(<<EOF
|
79
|
+
Here document1
|
80
|
+
Here document2
|
81
|
+
EOF
|
82
|
+
)
|
83
|
+
end
|
84
|
+
|
85
|
+
|
76
86
|
end
|
77
87
|
|
88
|
+
def test_17
|
89
|
+
a = []
|
90
|
+
a << 1
|
91
|
+
a << "2"
|
92
|
+
ret = _(<<EOF
|
93
|
+
Here document1
|
94
|
+
Here document2
|
95
|
+
EOF
|
96
|
+
)
|
97
|
+
end
|
File without changes
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.10
|
3
3
|
specification_version: 1
|
4
4
|
name: gettext
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.
|
7
|
-
date: 2005-
|
6
|
+
version: 1.1.0
|
7
|
+
date: 2005-12-29
|
8
8
|
summary: Ruby-GetText-Package is Native Language Support Library and Tools which modeled after GNU gettext package.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -24,8 +24,6 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
24
24
|
version: 0.0.0
|
25
25
|
version:
|
26
26
|
platform: mswin32
|
27
|
-
signing_key:
|
28
|
-
cert_chain:
|
29
27
|
authors:
|
30
28
|
- Masao Mutoh
|
31
29
|
files:
|
@@ -35,7 +33,6 @@ files:
|
|
35
33
|
- COPYING.ja
|
36
34
|
- data
|
37
35
|
- ext
|
38
|
-
- gettext-1.0.0-mswin32.gem
|
39
36
|
- lib
|
40
37
|
- NEWS
|
41
38
|
- po
|
@@ -43,46 +40,52 @@ files:
|
|
43
40
|
- pre-setup.rb
|
44
41
|
- Rakefile
|
45
42
|
- README
|
46
|
-
- README.ja
|
47
43
|
- samples
|
48
44
|
- setup.rb
|
49
45
|
- src
|
50
46
|
- test
|
51
47
|
- bin/rgettext
|
52
48
|
- bin/rmsgfmt
|
49
|
+
- bin/rmsgmerge
|
53
50
|
- data/locale
|
51
|
+
- data/locale/cs
|
54
52
|
- data/locale/de
|
55
53
|
- data/locale/es
|
56
54
|
- data/locale/fr
|
57
55
|
- data/locale/it
|
58
56
|
- data/locale/ja
|
59
57
|
- data/locale/ko
|
58
|
+
- data/locale/nl
|
60
59
|
- data/locale/pt_BR
|
61
60
|
- data/locale/sv
|
61
|
+
- data/locale/cs/LC_MESSAGES
|
62
|
+
- data/locale/cs/LC_MESSAGES/rails.mo
|
63
|
+
- data/locale/cs/LC_MESSAGES/rgettext.mo
|
62
64
|
- data/locale/de/LC_MESSAGES
|
65
|
+
- data/locale/de/LC_MESSAGES/rails.mo
|
63
66
|
- data/locale/de/LC_MESSAGES/rgettext.mo
|
64
|
-
- data/locale/de/LC_MESSAGES/rmsgfmt.mo
|
65
67
|
- data/locale/es/LC_MESSAGES
|
68
|
+
- data/locale/es/LC_MESSAGES/rails.mo
|
66
69
|
- data/locale/es/LC_MESSAGES/rgettext.mo
|
67
|
-
- data/locale/es/LC_MESSAGES/rmsgfmt.mo
|
68
70
|
- data/locale/fr/LC_MESSAGES
|
71
|
+
- data/locale/fr/LC_MESSAGES/rails.mo
|
69
72
|
- data/locale/fr/LC_MESSAGES/rgettext.mo
|
70
|
-
- data/locale/fr/LC_MESSAGES/rmsgfmt.mo
|
71
73
|
- data/locale/it/LC_MESSAGES
|
72
74
|
- data/locale/it/LC_MESSAGES/rgettext.mo
|
73
|
-
- data/locale/it/LC_MESSAGES/rmsgfmt.mo
|
74
75
|
- data/locale/ja/LC_MESSAGES
|
76
|
+
- data/locale/ja/LC_MESSAGES/rails.mo
|
75
77
|
- data/locale/ja/LC_MESSAGES/rgettext.mo
|
76
|
-
- data/locale/ja/LC_MESSAGES/rmsgfmt.mo
|
77
78
|
- data/locale/ko/LC_MESSAGES
|
79
|
+
- data/locale/ko/LC_MESSAGES/rails.mo
|
78
80
|
- data/locale/ko/LC_MESSAGES/rgettext.mo
|
79
|
-
- data/locale/
|
81
|
+
- data/locale/nl/LC_MESSAGES
|
82
|
+
- data/locale/nl/LC_MESSAGES/rails.mo
|
83
|
+
- data/locale/nl/LC_MESSAGES/rgettext.mo
|
80
84
|
- data/locale/pt_BR/LC_MESSAGES
|
85
|
+
- data/locale/pt_BR/LC_MESSAGES/rails.mo
|
81
86
|
- data/locale/pt_BR/LC_MESSAGES/rgettext.mo
|
82
|
-
- data/locale/pt_BR/LC_MESSAGES/rmsgfmt.mo
|
83
87
|
- data/locale/sv/LC_MESSAGES
|
84
88
|
- data/locale/sv/LC_MESSAGES/rgettext.mo
|
85
|
-
- data/locale/sv/LC_MESSAGES/rmsgfmt.mo
|
86
89
|
- ext/gettext
|
87
90
|
- ext/gettext/gettext
|
88
91
|
- ext/gettext/gettext/extconf.rb
|
@@ -91,6 +94,7 @@ files:
|
|
91
94
|
- ext/gettext/gettext/mkmf.log
|
92
95
|
- ext/gettext/gettext/vc70.pdb
|
93
96
|
- ext/gettext/gettext/_locale-i386-mswin32.def
|
97
|
+
- ext/gettext/gettext/_locale.BAK
|
94
98
|
- ext/gettext/gettext/_locale.c
|
95
99
|
- ext/gettext/gettext/_locale.exp
|
96
100
|
- ext/gettext/gettext/_locale.lib
|
@@ -110,40 +114,49 @@ files:
|
|
110
114
|
- lib/gettext/locale_win32.rb
|
111
115
|
- lib/gettext/mo.rb
|
112
116
|
- lib/gettext/parser
|
117
|
+
- lib/gettext/poparser.rb
|
113
118
|
- lib/gettext/rails.rb
|
114
119
|
- lib/gettext/rgettext.rb
|
115
120
|
- lib/gettext/rmsgfmt.rb
|
121
|
+
- lib/gettext/rmsgmerge.rb
|
122
|
+
- lib/gettext/string.rb
|
116
123
|
- lib/gettext/textdomain.rb
|
124
|
+
- lib/gettext/utils.rb
|
117
125
|
- lib/gettext/version.rb
|
126
|
+
- lib/gettext/parser/activerecord.rb
|
118
127
|
- lib/gettext/parser/erb.rb
|
119
128
|
- lib/gettext/parser/glade.rb
|
120
129
|
- lib/gettext/parser/ruby.rb
|
130
|
+
- po/cs
|
121
131
|
- po/de
|
122
132
|
- po/es
|
123
133
|
- po/fr
|
124
134
|
- po/it
|
125
135
|
- po/ja
|
126
136
|
- po/ko
|
137
|
+
- po/nl
|
127
138
|
- po/pt_BR
|
139
|
+
- po/rails.pot
|
128
140
|
- po/rgettext.pot
|
129
|
-
- po/rmsgfmt.pot
|
130
141
|
- po/sv
|
142
|
+
- po/cs/rails.po
|
143
|
+
- po/cs/rgettext.po
|
144
|
+
- po/de/rails.po
|
131
145
|
- po/de/rgettext.po
|
132
|
-
- po/
|
146
|
+
- po/es/rails.po
|
133
147
|
- po/es/rgettext.po
|
134
|
-
- po/
|
148
|
+
- po/fr/rails.po
|
135
149
|
- po/fr/rgettext.po
|
136
|
-
- po/fr/rmsgfmt.po
|
137
150
|
- po/it/rgettext.po
|
138
|
-
- po/
|
151
|
+
- po/ja/rails.po
|
139
152
|
- po/ja/rgettext.po
|
140
|
-
- po/
|
153
|
+
- po/ko/rails.po
|
141
154
|
- po/ko/rgettext.po
|
142
|
-
- po/
|
155
|
+
- po/nl/rails.po
|
156
|
+
- po/nl/rgettext.po
|
157
|
+
- po/pt_BR/rails.po
|
143
158
|
- po/pt_BR/rgettext.po
|
144
|
-
- po/pt_BR/rmsgfmt.po
|
145
159
|
- po/sv/rgettext.po
|
146
|
-
- po/sv/rmsgfmt.po
|
147
160
|
- samples/cgi
|
148
161
|
- samples/hello.rb
|
149
162
|
- samples/hello2.rb
|
@@ -174,12 +187,20 @@ files:
|
|
174
187
|
- samples/cgi/Rakefile
|
175
188
|
- samples/cgi/README
|
176
189
|
- samples/cgi/ruby.bat
|
190
|
+
- samples/cgi/locale/cs
|
177
191
|
- samples/cgi/locale/de
|
178
192
|
- samples/cgi/locale/es
|
179
193
|
- samples/cgi/locale/fr
|
180
194
|
- samples/cgi/locale/it
|
181
195
|
- samples/cgi/locale/ja
|
182
196
|
- samples/cgi/locale/ko
|
197
|
+
- samples/cgi/locale/nl
|
198
|
+
- samples/cgi/locale/pt_BR
|
199
|
+
- samples/cgi/locale/cs/LC_MESSAGES
|
200
|
+
- samples/cgi/locale/cs/LC_MESSAGES/helloerb1.mo
|
201
|
+
- samples/cgi/locale/cs/LC_MESSAGES/helloerb2.mo
|
202
|
+
- samples/cgi/locale/cs/LC_MESSAGES/hellolib.mo
|
203
|
+
- samples/cgi/locale/cs/LC_MESSAGES/main.mo
|
183
204
|
- samples/cgi/locale/de/LC_MESSAGES
|
184
205
|
- samples/cgi/locale/de/LC_MESSAGES/helloerb1.mo
|
185
206
|
- samples/cgi/locale/de/LC_MESSAGES/helloerb2.mo
|
@@ -210,6 +231,17 @@ files:
|
|
210
231
|
- samples/cgi/locale/ko/LC_MESSAGES/helloerb2.mo
|
211
232
|
- samples/cgi/locale/ko/LC_MESSAGES/hellolib.mo
|
212
233
|
- samples/cgi/locale/ko/LC_MESSAGES/main.mo
|
234
|
+
- samples/cgi/locale/nl/LC_MESSAGES
|
235
|
+
- samples/cgi/locale/nl/LC_MESSAGES/helloerb1.mo
|
236
|
+
- samples/cgi/locale/nl/LC_MESSAGES/helloerb2.mo
|
237
|
+
- samples/cgi/locale/nl/LC_MESSAGES/hellolib.mo
|
238
|
+
- samples/cgi/locale/nl/LC_MESSAGES/main.mo
|
239
|
+
- samples/cgi/locale/pt_BR/LC_MESSAGES
|
240
|
+
- samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb1.mo
|
241
|
+
- samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb2.mo
|
242
|
+
- samples/cgi/locale/pt_BR/LC_MESSAGES/hellolib.mo
|
243
|
+
- samples/cgi/locale/pt_BR/LC_MESSAGES/main.mo
|
244
|
+
- samples/cgi/po/cs
|
213
245
|
- samples/cgi/po/de
|
214
246
|
- samples/cgi/po/es
|
215
247
|
- samples/cgi/po/fr
|
@@ -220,6 +252,12 @@ files:
|
|
220
252
|
- samples/cgi/po/ja
|
221
253
|
- samples/cgi/po/ko
|
222
254
|
- samples/cgi/po/main.pot
|
255
|
+
- samples/cgi/po/nl
|
256
|
+
- samples/cgi/po/pt_BR
|
257
|
+
- samples/cgi/po/cs/helloerb1.po
|
258
|
+
- samples/cgi/po/cs/helloerb2.po
|
259
|
+
- samples/cgi/po/cs/hellolib.po
|
260
|
+
- samples/cgi/po/cs/main.po
|
223
261
|
- samples/cgi/po/de/helloerb1.po
|
224
262
|
- samples/cgi/po/de/helloerb2.po
|
225
263
|
- samples/cgi/po/de/hellolib.po
|
@@ -244,14 +282,32 @@ files:
|
|
244
282
|
- samples/cgi/po/ko/helloerb2.po
|
245
283
|
- samples/cgi/po/ko/hellolib.po
|
246
284
|
- samples/cgi/po/ko/main.po
|
285
|
+
- samples/cgi/po/nl/helloerb1.po
|
286
|
+
- samples/cgi/po/nl/helloerb2.po
|
287
|
+
- samples/cgi/po/nl/hellolib.po
|
288
|
+
- samples/cgi/po/nl/main.po
|
289
|
+
- samples/cgi/po/pt_BR/helloerb1.po
|
290
|
+
- samples/cgi/po/pt_BR/helloerb2.po
|
291
|
+
- samples/cgi/po/pt_BR/hellolib.po
|
292
|
+
- samples/cgi/po/pt_BR/main.po
|
293
|
+
- samples/locale/cs
|
247
294
|
- samples/locale/de
|
248
295
|
- samples/locale/es
|
249
296
|
- samples/locale/fr
|
250
297
|
- samples/locale/it
|
251
298
|
- samples/locale/ja
|
252
299
|
- samples/locale/ko
|
300
|
+
- samples/locale/nl
|
253
301
|
- samples/locale/pt_BR
|
254
302
|
- samples/locale/sv
|
303
|
+
- samples/locale/cs/LC_MESSAGES
|
304
|
+
- samples/locale/cs/LC_MESSAGES/hello.mo
|
305
|
+
- samples/locale/cs/LC_MESSAGES/hello2.mo
|
306
|
+
- samples/locale/cs/LC_MESSAGES/helloglade2.mo
|
307
|
+
- samples/locale/cs/LC_MESSAGES/hellogtk.mo
|
308
|
+
- samples/locale/cs/LC_MESSAGES/hellotk.mo
|
309
|
+
- samples/locale/cs/LC_MESSAGES/hello_noop.mo
|
310
|
+
- samples/locale/cs/LC_MESSAGES/hello_plural.mo
|
255
311
|
- samples/locale/de/LC_MESSAGES
|
256
312
|
- samples/locale/de/LC_MESSAGES/hello.mo
|
257
313
|
- samples/locale/de/LC_MESSAGES/hello2.mo
|
@@ -300,6 +356,14 @@ files:
|
|
300
356
|
- samples/locale/ko/LC_MESSAGES/hellotk.mo
|
301
357
|
- samples/locale/ko/LC_MESSAGES/hello_noop.mo
|
302
358
|
- samples/locale/ko/LC_MESSAGES/hello_plural.mo
|
359
|
+
- samples/locale/nl/LC_MESSAGES
|
360
|
+
- samples/locale/nl/LC_MESSAGES/hello.mo
|
361
|
+
- samples/locale/nl/LC_MESSAGES/hello2.mo
|
362
|
+
- samples/locale/nl/LC_MESSAGES/helloglade2.mo
|
363
|
+
- samples/locale/nl/LC_MESSAGES/hellogtk.mo
|
364
|
+
- samples/locale/nl/LC_MESSAGES/hellotk.mo
|
365
|
+
- samples/locale/nl/LC_MESSAGES/hello_noop.mo
|
366
|
+
- samples/locale/nl/LC_MESSAGES/hello_plural.mo
|
303
367
|
- samples/locale/pt_BR/LC_MESSAGES
|
304
368
|
- samples/locale/pt_BR/LC_MESSAGES/hello.mo
|
305
369
|
- samples/locale/pt_BR/LC_MESSAGES/hello2.mo
|
@@ -316,6 +380,7 @@ files:
|
|
316
380
|
- samples/locale/sv/LC_MESSAGES/hellotk.mo
|
317
381
|
- samples/locale/sv/LC_MESSAGES/hello_noop.mo
|
318
382
|
- samples/locale/sv/LC_MESSAGES/hello_plural.mo
|
383
|
+
- samples/po/cs
|
319
384
|
- samples/po/de
|
320
385
|
- samples/po/es
|
321
386
|
- samples/po/fr
|
@@ -329,8 +394,16 @@ files:
|
|
329
394
|
- samples/po/it
|
330
395
|
- samples/po/ja
|
331
396
|
- samples/po/ko
|
397
|
+
- samples/po/nl
|
332
398
|
- samples/po/pt_BR
|
333
399
|
- samples/po/sv
|
400
|
+
- samples/po/cs/hello.po
|
401
|
+
- samples/po/cs/hello2.po
|
402
|
+
- samples/po/cs/helloglade2.po
|
403
|
+
- samples/po/cs/hellogtk.po
|
404
|
+
- samples/po/cs/hellotk.po
|
405
|
+
- samples/po/cs/hello_noop.po
|
406
|
+
- samples/po/cs/hello_plural.po
|
334
407
|
- samples/po/de/hello.po
|
335
408
|
- samples/po/de/hello2.po
|
336
409
|
- samples/po/de/helloglade2.po
|
@@ -373,6 +446,13 @@ files:
|
|
373
446
|
- samples/po/ko/hellotk.po
|
374
447
|
- samples/po/ko/hello_noop.po
|
375
448
|
- samples/po/ko/hello_plural.po
|
449
|
+
- samples/po/nl/hello.po
|
450
|
+
- samples/po/nl/hello2.po
|
451
|
+
- samples/po/nl/helloglade2.po
|
452
|
+
- samples/po/nl/hellogtk.po
|
453
|
+
- samples/po/nl/hellotk.po
|
454
|
+
- samples/po/nl/hello_noop.po
|
455
|
+
- samples/po/nl/hello_plural.po
|
376
456
|
- samples/po/pt_BR/hello.po
|
377
457
|
- samples/po/pt_BR/hello2.po
|
378
458
|
- samples/po/pt_BR/helloglade2.po
|
@@ -391,7 +471,6 @@ files:
|
|
391
471
|
- samples/rails/config
|
392
472
|
- samples/rails/db
|
393
473
|
- samples/rails/locale
|
394
|
-
- samples/rails/log
|
395
474
|
- samples/rails/po
|
396
475
|
- samples/rails/public
|
397
476
|
- samples/rails/Rakefile
|
@@ -416,6 +495,7 @@ files:
|
|
416
495
|
- samples/rails/app/views/blog/show.rhtml
|
417
496
|
- samples/rails/app/views/blog/_form.rhtml
|
418
497
|
- samples/rails/app/views/layouts/blog.rhtml
|
498
|
+
- samples/rails/config/boot.rb
|
419
499
|
- samples/rails/config/database.yml
|
420
500
|
- samples/rails/config/environment.rb
|
421
501
|
- samples/rails/config/environments
|
@@ -425,44 +505,69 @@ files:
|
|
425
505
|
- samples/rails/config/environments/test.rb
|
426
506
|
- samples/rails/db/mysql.sql
|
427
507
|
- samples/rails/db/postgresql.sql
|
508
|
+
- samples/rails/locale/cs
|
428
509
|
- samples/rails/locale/de
|
510
|
+
- samples/rails/locale/en
|
429
511
|
- samples/rails/locale/es
|
430
512
|
- samples/rails/locale/fr
|
431
513
|
- samples/rails/locale/ja
|
432
514
|
- samples/rails/locale/ko
|
515
|
+
- samples/rails/locale/nl
|
516
|
+
- samples/rails/locale/pt_BR
|
517
|
+
- samples/rails/locale/cs/LC_MESSAGES
|
518
|
+
- samples/rails/locale/cs/LC_MESSAGES/blog.mo
|
519
|
+
- samples/rails/locale/cs/LC_MESSAGES/gettext_plugin.mo
|
433
520
|
- samples/rails/locale/de/LC_MESSAGES
|
434
521
|
- samples/rails/locale/de/LC_MESSAGES/blog.mo
|
435
|
-
- samples/rails/locale/de/LC_MESSAGES/
|
522
|
+
- samples/rails/locale/de/LC_MESSAGES/gettext_plugin.mo
|
523
|
+
- samples/rails/locale/en/LC_MESSAGES
|
524
|
+
- samples/rails/locale/en/LC_MESSAGES/blog.mo
|
436
525
|
- samples/rails/locale/es/LC_MESSAGES
|
437
526
|
- samples/rails/locale/es/LC_MESSAGES/blog.mo
|
438
|
-
- samples/rails/locale/es/LC_MESSAGES/
|
527
|
+
- samples/rails/locale/es/LC_MESSAGES/gettext_plugin.mo
|
439
528
|
- samples/rails/locale/fr/LC_MESSAGES
|
440
529
|
- samples/rails/locale/fr/LC_MESSAGES/blog.mo
|
441
|
-
- samples/rails/locale/fr/LC_MESSAGES/
|
530
|
+
- samples/rails/locale/fr/LC_MESSAGES/gettext_plugin.mo
|
442
531
|
- samples/rails/locale/ja/LC_MESSAGES
|
443
532
|
- samples/rails/locale/ja/LC_MESSAGES/blog.mo
|
444
|
-
- samples/rails/locale/ja/LC_MESSAGES/
|
533
|
+
- samples/rails/locale/ja/LC_MESSAGES/gettext_plugin.mo
|
445
534
|
- samples/rails/locale/ko/LC_MESSAGES
|
446
535
|
- samples/rails/locale/ko/LC_MESSAGES/blog.mo
|
447
|
-
- samples/rails/locale/ko/LC_MESSAGES/
|
448
|
-
- samples/rails/
|
536
|
+
- samples/rails/locale/ko/LC_MESSAGES/gettext_plugin.mo
|
537
|
+
- samples/rails/locale/nl/LC_MESSAGES
|
538
|
+
- samples/rails/locale/nl/LC_MESSAGES/blog.mo
|
539
|
+
- samples/rails/locale/nl/LC_MESSAGES/gettext_plugin.mo
|
540
|
+
- samples/rails/locale/pt_BR/LC_MESSAGES
|
541
|
+
- samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo
|
542
|
+
- samples/rails/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo
|
449
543
|
- samples/rails/po/blog.pot
|
544
|
+
- samples/rails/po/cs
|
450
545
|
- samples/rails/po/de
|
546
|
+
- samples/rails/po/en
|
451
547
|
- samples/rails/po/es
|
452
548
|
- samples/rails/po/fr
|
549
|
+
- samples/rails/po/gettext_plugin.pot
|
453
550
|
- samples/rails/po/ja
|
454
551
|
- samples/rails/po/ko
|
455
|
-
- samples/rails/po/
|
552
|
+
- samples/rails/po/nl
|
553
|
+
- samples/rails/po/pt_BR
|
554
|
+
- samples/rails/po/cs/blog.po
|
555
|
+
- samples/rails/po/cs/gettext_plugin.po
|
456
556
|
- samples/rails/po/de/blog.po
|
457
|
-
- samples/rails/po/de/
|
557
|
+
- samples/rails/po/de/gettext_plugin.po
|
558
|
+
- samples/rails/po/en/blog.po
|
458
559
|
- samples/rails/po/es/blog.po
|
459
|
-
- samples/rails/po/es/
|
560
|
+
- samples/rails/po/es/gettext_plugin.po
|
460
561
|
- samples/rails/po/fr/blog.po
|
461
|
-
- samples/rails/po/fr/
|
562
|
+
- samples/rails/po/fr/gettext_plugin.po
|
462
563
|
- samples/rails/po/ja/blog.po
|
463
|
-
- samples/rails/po/ja/
|
564
|
+
- samples/rails/po/ja/gettext_plugin.po
|
464
565
|
- samples/rails/po/ko/blog.po
|
465
|
-
- samples/rails/po/ko/
|
566
|
+
- samples/rails/po/ko/gettext_plugin.po
|
567
|
+
- samples/rails/po/nl/blog.po
|
568
|
+
- samples/rails/po/nl/gettext_plugin.po
|
569
|
+
- samples/rails/po/pt_BR/blog.po
|
570
|
+
- samples/rails/po/pt_BR/gettext_plugin.po
|
466
571
|
- samples/rails/public/404.html
|
467
572
|
- samples/rails/public/500.html
|
468
573
|
- samples/rails/public/dispatch.cgi
|
@@ -472,36 +577,50 @@ files:
|
|
472
577
|
- samples/rails/public/images
|
473
578
|
- samples/rails/public/index.html
|
474
579
|
- samples/rails/public/javascripts
|
580
|
+
- samples/rails/public/robots.txt
|
475
581
|
- samples/rails/public/stylesheets
|
582
|
+
- samples/rails/public/images/rails.png
|
476
583
|
- samples/rails/public/javascripts/controls.js
|
477
584
|
- samples/rails/public/javascripts/dragdrop.js
|
478
585
|
- samples/rails/public/javascripts/effects.js
|
479
586
|
- samples/rails/public/javascripts/prototype.js
|
480
587
|
- samples/rails/public/stylesheets/blog.css
|
481
588
|
- samples/rails/public/stylesheets/scaffold.css
|
589
|
+
- samples/rails/script/about
|
482
590
|
- samples/rails/script/benchmarker
|
483
591
|
- samples/rails/script/breakpointer
|
484
592
|
- samples/rails/script/console
|
485
593
|
- samples/rails/script/destroy
|
486
594
|
- samples/rails/script/generate
|
595
|
+
- samples/rails/script/performance
|
596
|
+
- samples/rails/script/plugin
|
597
|
+
- samples/rails/script/process
|
487
598
|
- samples/rails/script/profiler
|
488
599
|
- samples/rails/script/runner
|
489
600
|
- samples/rails/script/server
|
601
|
+
- samples/rails/script/performance/benchmarker
|
602
|
+
- samples/rails/script/performance/profiler
|
603
|
+
- samples/rails/script/process/reaper
|
604
|
+
- samples/rails/script/process/spawner
|
605
|
+
- samples/rails/script/process/spinner
|
490
606
|
- samples/rails/test/fixtures
|
491
607
|
- samples/rails/test/functional
|
492
|
-
- samples/rails/test/mocks
|
493
608
|
- samples/rails/test/test_helper.rb
|
494
609
|
- samples/rails/test/unit
|
495
610
|
- samples/rails/test/fixtures/articles.yml
|
496
611
|
- samples/rails/test/functional/blog_controller_test.rb
|
497
|
-
- samples/rails/test/mocks/development
|
498
|
-
- samples/rails/test/mocks/test
|
499
612
|
- samples/rails/test/unit/article_test.rb
|
500
|
-
- samples/rails/vendor/
|
501
|
-
-
|
613
|
+
- samples/rails/vendor/plugins
|
614
|
+
- samples/rails/vendor/plugins/gettext
|
615
|
+
- samples/rails/vendor/plugins/gettext/init.rb
|
616
|
+
- samples/rails/vendor/plugins/gettext/lib
|
617
|
+
- samples/rails/vendor/plugins/gettext/lib/gettext_plugin.rb
|
618
|
+
- src/poparser.ry
|
502
619
|
- test/gettext_runner.rb
|
503
620
|
- test/gettext_test.rb
|
621
|
+
- test/gettext_test_cgi.rb
|
504
622
|
- test/gettext_test_parser.rb
|
623
|
+
- test/gettext_test_string.rb
|
505
624
|
- test/locale
|
506
625
|
- test/po
|
507
626
|
- test/README
|
@@ -513,7 +632,7 @@ files:
|
|
513
632
|
- test/test_erb.rhtml
|
514
633
|
- test/test_gladeparser.glade
|
515
634
|
- test/test_rubyparser.rb
|
516
|
-
- test/
|
635
|
+
- test/test_rubyparser_N.rb
|
517
636
|
- test/test_sgettext.rb
|
518
637
|
- test/locale/cr
|
519
638
|
- test/locale/da
|
@@ -584,6 +703,7 @@ extra_rdoc_files: []
|
|
584
703
|
executables:
|
585
704
|
- rgettext
|
586
705
|
- rmsgfmt
|
706
|
+
- rmsgmerge
|
587
707
|
extensions: []
|
588
708
|
requirements: []
|
589
709
|
dependencies: []
|