gettext 1.0.0-mswin32 → 1.1.0-mswin32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +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/ChangeLog
CHANGED
@@ -1,8 +1,201 @@
|
|
1
|
+
2005-12-29 Masao Mutoh <mutoh@highway.ne.jp>
|
2
|
+
|
3
|
+
* po/de/rgettext.po: Fixed a compilingproblem.
|
4
|
+
* README, NEWS: Updated.
|
5
|
+
* lib/gettext/rails.rb: Fix a problem when
|
6
|
+
http://localhost:3000/rails_info/properties is called.
|
7
|
+
Pointed out by Kazuhiro NISHIYAMA.
|
8
|
+
* po/de/rails.po: Added by Sasa Ebach.
|
9
|
+
* po/de/rgettext.po, samples/rails/po/de/*.po:
|
10
|
+
Updated by Sasa Ebach.
|
11
|
+
|
12
|
+
2005-12-28 Masao Mutoh <mutoh@highway.ne.jp>
|
13
|
+
|
14
|
+
* NEWS: Updated.
|
15
|
+
* README: Updated.
|
16
|
+
* po/es/rails.po: Added by David Espada.
|
17
|
+
* po/es/rgettext.po, samples/rails/po/es/*.po:
|
18
|
+
Updated by David Espada.
|
19
|
+
|
20
|
+
2005-12-27 Masao Mutoh <mutoh@highway.ne.jp>
|
21
|
+
|
22
|
+
* test/gettext_test_string.rb: Add a test.
|
23
|
+
|
24
|
+
2005-12-26 Masao Mutoh <mutoh@highway.ne.jp>
|
25
|
+
|
26
|
+
* samples/rails/app/controllers/blog_controller.rb: Updated.
|
27
|
+
|
28
|
+
2005-12-25 Masao Mutoh <mutoh@highway.ne.jp>
|
29
|
+
|
30
|
+
* NEWS: Updated.
|
31
|
+
* README: Updated.
|
32
|
+
* lib/gettext/parser/activerecord.rb: Don't show the messages
|
33
|
+
when ActiveRecord and its subclasses are not found.
|
34
|
+
* po/ja/rgettext.po: Updated.
|
35
|
+
|
36
|
+
2005-12-24 Masao Mutoh <mutoh@highway.ne.jp>
|
37
|
+
|
38
|
+
* samples/po/nl/*.po, samples/cgi/po/nl/*.po,
|
39
|
+
samples/rails/po/nl/*.po, po/nl/rgettext.po,
|
40
|
+
rails.po: Added Dutch locale by Menno Jonkers.
|
41
|
+
|
42
|
+
2005-12-23 Masao Mutoh <mutoh@highway.ne.jp>
|
43
|
+
|
44
|
+
* README: Updated.
|
45
|
+
* README.ja: Removed.
|
46
|
+
* po/ko/rails.po: Added by Gyoung-Yoon Noh.
|
47
|
+
* po/ko/rgettext.po, samples/po/ko/*.po, samples/cgi/po/ko/*.po,
|
48
|
+
samples/rails/po/ko/*.po: Updated by Gyoung-Yoon Noh.
|
49
|
+
* lib/gettext/textdomain.rb: Fixed a bug when mo-files are not found.
|
50
|
+
* samples/rails/po/en/blog.po: Added for English.
|
51
|
+
You can change the table names, field names of ActiveRecord even you use English.
|
52
|
+
* lib/gettext/textdomain.rb: Code cleanup.
|
53
|
+
* samples/rails/vendor/plugins/gettext/lib/gettext_plugin.rb: begin a new line
|
54
|
+
each 6 language.
|
55
|
+
* samples/rails/vendor/plugins/gettext/po/*: Update version info.
|
56
|
+
|
57
|
+
2005-12-21 Masao Mutoh <mutoh@highway.ne.jp>
|
58
|
+
|
59
|
+
* samples/rails/README: Updated.
|
60
|
+
* lib/gettext/utils.rb: Added. GetText.update_pofiles.
|
61
|
+
* Rakefile, samples/rails/Rakefile: Use GetText.update_pofiles.
|
62
|
+
|
63
|
+
2005-12-20 Masao Mutoh <mutoh@highway.ne.jp>
|
64
|
+
|
65
|
+
* lib/gettext/utils.rb: Added. Implement GetText.updatepo.
|
66
|
+
* Rakefile:
|
67
|
+
|
68
|
+
2005-12-19 Masao Mutoh <mutoh@highway.ne.jp>
|
69
|
+
|
70
|
+
* samples/po/cs/*.po, samples/cgi/po/cs/*.po,
|
71
|
+
samples/rails/po/cs/*.po, po/cs/rgettext.po,
|
72
|
+
rails.po: Added Czech locale by Karel Miarka.
|
73
|
+
|
74
|
+
2005-12-18 Masao Mutoh <mutoh@highway.ne.jp>
|
75
|
+
|
76
|
+
* po/fr/rgettext.po, samples/cgi/po/fr/main.po:
|
77
|
+
Updated by Laurent Sansonetti.
|
78
|
+
* po/fr/rails.po: Added by Laurent Sansonetti.
|
79
|
+
* po/pt_BR/rails.po, samples/cgi/po/pt_BR/*.po,
|
80
|
+
samples/rails/po/pt_BR/*.po:
|
81
|
+
Added by Joao Pedrosa.
|
82
|
+
* po/pt_BR/rgettext.po, samples/po/pt_BR/*.po:
|
83
|
+
Updated by Joao Pedrosa.
|
84
|
+
|
85
|
+
2005-12-17 Masao Mutoh <mutoh@highway.ne.jp>
|
86
|
+
|
87
|
+
* po/rails.pot, po/ja/rails.po: Added.
|
88
|
+
* test/gettext_test_string.rb: Added.
|
89
|
+
|
90
|
+
2005-12-12 Masao Mutoh <mutoh@highway.ne.jp>
|
91
|
+
|
92
|
+
* samples/rails/Rakefile: Added "updatepo" task.
|
93
|
+
* lib/gettext/parser/activerecord.rb: Added a parser for
|
94
|
+
ActiveRecord.
|
95
|
+
|
96
|
+
2005-12-10 Masao Mutoh <mutoh@highway.ne.jp>
|
97
|
+
|
98
|
+
* lib/gettext/rails.rb: Added GetText information to
|
99
|
+
Rails::Info.
|
100
|
+
|
101
|
+
2005-12-08 Masao Mutoh <mutoh@highway.ne.jp>
|
102
|
+
|
103
|
+
* test/gettext_test_cgi.rb: Added tests for Locale.normalize.
|
104
|
+
* lib/gettext/cgi.rb: Fix a problem of Locale.normalize.
|
105
|
+
|
106
|
+
2005-12-07 Masao Mutoh <mutoh@highway.ne.jp>
|
107
|
+
|
108
|
+
* lib/gettext/cgi.rb: Separate Locale.normalize.
|
109
|
+
|
110
|
+
2005-12-06 Masao Mutoh <mutoh@highway.ne.jp>
|
111
|
+
|
112
|
+
* test/gettext_test.rb, test/po/{da,fr}/plural_error.po:
|
113
|
+
Fix test_plural_format_invalid.
|
114
|
+
|
115
|
+
2005-12-05 Masao Mutoh <mutoh@highway.ne.jp>
|
116
|
+
|
117
|
+
* test/gettext_test.rb, test/po/*/plural.po: Fix test case.
|
118
|
+
|
119
|
+
2005-12-04 Masao Mutoh <mutoh@highway.ne.jp>
|
120
|
+
|
121
|
+
* samples/rails/vendor/plugins/gettext/lib/gettext_plugin.rb: Revised comments.
|
122
|
+
|
123
|
+
2005-12-01 Masao Mutoh <mutoh@highway.ne.jp>
|
124
|
+
|
125
|
+
* lib/gettext/rails.rb: Improved to support L10n for ActiveRecord::Errors.
|
126
|
+
Improve ActionController::Base.init_gettext(_main).
|
127
|
+
* samples/rails/app/controller/application.rb: Improved comments.
|
128
|
+
* samples/rails/app/views/blog/_form.rhtml: Add information to validate.
|
129
|
+
|
130
|
+
2005-11-27 Masao Mutoh <mutoh@highway.ne.jp>
|
131
|
+
|
132
|
+
* lib/gettext/string.rb: Added. New syntax ":{foo} is bar." % {:foo => "foo"}
|
133
|
+
is supported.
|
134
|
+
* lib/gettext/rmsgmerge.rb: Added.
|
135
|
+
* lib/gettext.rb, lib/gettext/textdomain.rb: Fix a bug of GetText.ngettext.
|
136
|
+
|
137
|
+
2005-11-25 Masao Mutoh <mutoh@highway.ne.jp>
|
138
|
+
|
139
|
+
* samples/rails/app/*: Rewrite for RoR 0.14.x.
|
140
|
+
* lib/gettext/rails.rb: Added ActionController::Base.init_gettext.
|
141
|
+
* samples/rails/app/controllers/application.rb: ditto.
|
142
|
+
|
143
|
+
2005-11-23 Masao Mutoh <mutoh@highway.ne.jp>
|
144
|
+
|
145
|
+
* samples/rails/app/controllers/application.rb: Use
|
146
|
+
GetText.output_charset to set the Content-Type.
|
147
|
+
* lib/gettext/rails.rb: Call bindtextdomain in models(ActiveRecord)
|
148
|
+
when bindtextdomain is called in before_filter of ActionController.
|
149
|
+
Inspired from Simon Santoro.
|
150
|
+
* samples/rails/app/models/article.rb: Added to validate description
|
151
|
+
with localized message.
|
152
|
+
|
153
|
+
2005-10-22 Masao Mutoh <mutoh@highway.ne.jp>
|
154
|
+
|
155
|
+
* po/*: Merge rmsgfmt to rgettext.
|
156
|
+
* po/**/rmsgfmt.po[t]: Removed(merge to rgettext.po[t]).
|
157
|
+
* lib/gettext/rmsgmerge.rb: Added by speakillof.
|
158
|
+
* bin/rmsgmerge: Added.
|
159
|
+
* src/poparser.ry: Renamed rmsgfmt.ry to poparser.ry.
|
160
|
+
* lib/gettext/rmsgfmt.rb: Added. Separate code from rmsgfmt.ry.
|
161
|
+
* Rakefile: Check racc is existed or not.
|
162
|
+
* lib/gettext/mo.rb: Follow poparser.ry changes.
|
163
|
+
|
164
|
+
2005-09-16 Masao Mutoh <mutoh@highway.ne.jp>
|
165
|
+
|
166
|
+
* lib/gettext/rgettext.rb: Fixed a header of time strings.
|
167
|
+
Reported by Karel Miarka.
|
168
|
+
|
169
|
+
2005-09-12 speakillof <speakillof@yahoo.co.jp>
|
170
|
+
|
171
|
+
* lib/gettext/parser/ruby.rb: Added "here document" support.
|
172
|
+
|
173
|
+
2005-09-05 Masao Mutoh <mutoh@highway.ne.jp>
|
174
|
+
|
175
|
+
* lib/gettext.rb: Added GetText.locale. Both of GetText.locale= and
|
176
|
+
GetText.locale behaves "global". If you set this once, follow bindtextdomain(s)
|
177
|
+
use this value.
|
178
|
+
* lib/gettext/cgi.rb: Added Locale.set.
|
179
|
+
* lib/gettext/locale_win32.rb: ENV value is prior to native locale.
|
180
|
+
Added Locale.set.
|
181
|
+
* test/gettext_test.rb: Follow above changes.
|
182
|
+
|
183
|
+
2005-09-04 Masao Mutoh <mutoh@highway.ne.jp>
|
184
|
+
|
185
|
+
* Rakefile: move test task to testunit task.
|
186
|
+
* samples/cgi/*.cgi: Support rubygems.
|
187
|
+
* lib/gettext/rails.rb: The default of "charset" parameter becomes nil
|
188
|
+
instead of "UTF-8". You need to call GetText.output_charset=() first.
|
189
|
+
* samples/rails/app/controllers/application.rb:
|
190
|
+
Call GetText.output_charset = "UTF-8" first.
|
191
|
+
|
1
192
|
2005-09-03 Masao Mutoh <mutoh@highway.ne.jp>
|
2
193
|
|
194
|
+
* src/rmsgfmt.ry: Fixed VERSION info.
|
3
195
|
* Rakefile: Update to make package correctly. Call create_mofiles
|
4
196
|
for test/po/
|
5
197
|
Add test task.
|
198
|
+
Create win32 package correctly on Win32.
|
6
199
|
* test/makemo.rb: Removed. Use rake makemo instead.
|
7
200
|
* NEWS: Added.
|
8
201
|
* 1.0.0 released.
|
data/NEWS
CHANGED
@@ -1,9 +1,59 @@
|
|
1
|
+
= Ruby-GetText-Package-1.1.0 (2005-12-29)
|
2
|
+
|
3
|
+
* Added some functions which managed po/mo files easily.
|
4
|
+
* GetText.update_pofiles creates/updates pot/po files.
|
5
|
+
The idea is from Sascha Ebach.
|
6
|
+
|
7
|
+
* String% is extended to accept named argument.
|
8
|
+
"%{file} is selected." % {:file => "foo.rb"}
|
9
|
+
Proposed by Sascha Ebach and Kazuhiro NISHIYAMA.
|
10
|
+
|
11
|
+
* Enhanced Ruby on Rails support.
|
12
|
+
* ActiveRecord support. Inspired from Simon Santoro(rgtrans).
|
13
|
+
* the error messages are localized.
|
14
|
+
Also, you can add your own messages with _("").
|
15
|
+
* You can use gettext methods in the models unless
|
16
|
+
preparing anything.
|
17
|
+
|
18
|
+
* rgettext extracts the table names/field names
|
19
|
+
of the subclass of ActiveRecord::Base as the msgid.
|
20
|
+
|
21
|
+
Even for the English developers who don't need
|
22
|
+
to localize their application, this function is
|
23
|
+
useful because the developer can rename
|
24
|
+
the table/field names using "en" locale.
|
25
|
+
|
26
|
+
* More simple to set up ApplicationController.
|
27
|
+
Now, you need to call just init_gettext only.
|
28
|
+
|
29
|
+
class ApplicationController < ActionController::Base
|
30
|
+
init_gettext "myapp" #Easy!
|
31
|
+
end
|
32
|
+
|
33
|
+
This "myapp" domain affects all of the controllers/views/models.
|
34
|
+
|
35
|
+
* Sample "blog" application with rails.
|
36
|
+
Improved the sample application on RoR. See: samples/rails/*.
|
37
|
+
|
38
|
+
* New/Updated translations:
|
39
|
+
Czech - Karel Miarka (NEW)
|
40
|
+
Dutch - Menno Jonkers (NEW)
|
41
|
+
French - Laurent Sansonetti
|
42
|
+
German - Sasa Ebach
|
43
|
+
Japanese - Masao Mutoh
|
44
|
+
Korean - Gyoung-Yoon Noh
|
45
|
+
Portuguese(Brazil) - Joao Pedrosa
|
46
|
+
Spanish - David Espada
|
47
|
+
|
48
|
+
* bugfixes.
|
49
|
+
|
1
50
|
= Ruby-GetText-Package-1.0.0 (2005-09-03)
|
2
51
|
|
3
52
|
* Ruby on Rails is supported.
|
4
53
|
Includes sample in samples/rails/
|
5
54
|
* gem is supported. ($ gem install gettext)
|
6
55
|
* rake is supported.
|
56
|
+
* Not required racc anymore on installing time.
|
7
57
|
* New/Updated translations:
|
8
58
|
French - Laurent Sansonetti
|
9
59
|
German - Sven Herzberg
|
@@ -13,7 +63,7 @@
|
|
13
63
|
* bugfixes.
|
14
64
|
|
15
65
|
* Moved to http://rubyforge.org/projects/gettext/
|
16
|
-
*
|
66
|
+
* Mailinglists started.
|
17
67
|
|
18
68
|
|
19
69
|
= Ruby-GetText-Package-0.9.0 (2005-05-01)
|
data/README
CHANGED
@@ -38,8 +38,9 @@ Requirements
|
|
38
38
|
(for Development only)
|
39
39
|
* Racc-1.4.3 or later
|
40
40
|
<http://www.ruby-lang.org/raa/list.rhtml?name=racc>
|
41
|
-
(for
|
42
|
-
|
41
|
+
(for compiling src/rmsgfmt.ry only)
|
42
|
+
* Ruby on Rails 1.0.0 or later (if you use this package with Ruby on Rails)
|
43
|
+
<http://www.rubyonrails.org/>
|
43
44
|
|
44
45
|
Install
|
45
46
|
-------
|
@@ -98,15 +99,32 @@ License
|
|
98
99
|
|
99
100
|
Translators
|
100
101
|
-----------
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
102
|
+
Czech - Karel Miarka <kajism at yahoo.com>
|
103
|
+
Dutch - Menno Jonkers <ruby-gettext at jonkers.com>
|
104
|
+
French - Laurent Sansonetti <laurent.sansonetti at gmail.com>
|
105
|
+
German - Detlef Reichl <detlef.reichl at gmx.org>
|
106
|
+
Sven Herzberg <herzi at abi02.de>
|
107
|
+
Sascha Ebach <se at digitale-wertschoepfung.de>
|
108
|
+
Italian - Gabriele Renzi <surrender_it at yahoo.it>
|
109
|
+
Japanese - Masao Mutoh <mutoh at highway.ne.jp>
|
110
|
+
Korean - Gyoung-Yoon Noh <nohmad at gmail.com>
|
111
|
+
Portuguese(Brazil) - Joao Pedrosa <joaopedrosa at gmail.com>
|
112
|
+
Spanish - David Espada <davinci at escomposlinux.org> (current)
|
113
|
+
David Moreno Garza <damog at damog.net>
|
114
|
+
Swedish - Nikolai Weibull <mailing-lists.ruby-talk at rawuncut.elitemail.org>
|
115
|
+
|
116
|
+
Status of translations
|
117
|
+
----------------------
|
118
|
+
cs - 1.1.0
|
119
|
+
fr - 1.1.0
|
120
|
+
de - 1.1.0
|
121
|
+
es - 1.1.0
|
122
|
+
it - 1.0.0
|
123
|
+
ja - 1.1.0
|
124
|
+
ko - 1.1.0
|
125
|
+
nl - 1.1.0
|
126
|
+
pt_BR - 1.1.0
|
127
|
+
sv - 0.8.0
|
110
128
|
|
111
129
|
Maintainer
|
112
130
|
----------
|
data/Rakefile
CHANGED
@@ -16,102 +16,116 @@ require 'rubygems'
|
|
16
16
|
require 'rake'
|
17
17
|
require 'rake/packagetask'
|
18
18
|
require 'rake/gempackagetask'
|
19
|
+
require 'gettext/version'
|
19
20
|
|
20
21
|
RUBYBIN = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) + " "
|
21
22
|
|
23
|
+
PKG_VERSION = GetText::VERSION
|
24
|
+
|
22
25
|
task :default => [:makemo]
|
23
26
|
|
24
27
|
############################################################
|
25
28
|
# GetText tasks
|
26
29
|
############################################################
|
27
|
-
desc "Create lib/gettext/
|
28
|
-
task :
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
30
|
+
desc "Create lib/gettext/poparser.rb"
|
31
|
+
task :poparser do
|
32
|
+
poparser_path = "lib/gettext/poparser.rb"
|
33
|
+
racc = File.join(Config::CONFIG['bindir'], "racc")
|
34
|
+
if ! FileTest.exist?(racc)
|
35
|
+
puts "racc was not found: #{racc}"
|
36
|
+
exit 1
|
37
|
+
else FileTest.exist?(racc)
|
38
|
+
cmd = "#{RUBYBIN} #{racc} -g src/poparser.ry -o src/poparser.tmp.rb"
|
39
|
+
system(cmd)
|
40
|
+
$stderr.puts cmd
|
41
|
+
|
42
|
+
file = open(poparser_path, "w")
|
43
|
+
|
44
|
+
file.print "=begin\n"
|
45
|
+
file.print <<-EOS
|
46
|
+
poparser.rb - Generate a .mo
|
40
47
|
|
41
48
|
Copyright (C) 2003-2005 Masao Mutoh <mutoh@highway.ne.jp>
|
42
49
|
|
43
50
|
You may redistribute it and/or modify it under the same
|
44
51
|
license terms as Ruby.
|
45
52
|
EOS
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
+
file.print "=end\n\n"
|
54
|
+
|
55
|
+
tmpfile = open("src/poparser.tmp.rb")
|
56
|
+
file.print tmpfile.read
|
57
|
+
file.close
|
58
|
+
tmpfile.close
|
59
|
+
File.delete("src/poparser.tmp.rb")
|
60
|
+
$stderr.puts "Create #{poparser_path}."
|
61
|
+
end
|
53
62
|
end
|
54
63
|
|
64
|
+
############################################################
|
65
|
+
# Manage po/mo files
|
66
|
+
############################################################
|
67
|
+
require 'gettext/utils'
|
68
|
+
|
55
69
|
task :makemo_test do
|
56
|
-
require 'gettext/rmsgfmt'
|
57
70
|
$stderr.puts "Create test mo files."
|
58
|
-
GetText.create_mofiles(
|
71
|
+
GetText.create_mofiles(false, "test/po", "test/locale")
|
59
72
|
end
|
60
73
|
|
61
74
|
desc "Create *.mo from *.po"
|
62
|
-
task :makemo => [:
|
63
|
-
require 'gettext/rmsgfmt'
|
64
|
-
|
75
|
+
task :makemo => [:poparser, :makemo_test] do
|
65
76
|
$stderr.puts "Create rgettext/rmsgfmt mo files."
|
66
77
|
GetText.create_mofiles(true)
|
67
78
|
|
68
79
|
$stderr.puts "Create samples mo files."
|
69
|
-
GetText.create_mofiles(
|
80
|
+
GetText.create_mofiles(false, "samples/po", "samples/locale")
|
70
81
|
|
71
82
|
$stderr.puts "Create samples/cgi mo files."
|
72
|
-
GetText.create_mofiles(
|
83
|
+
GetText.create_mofiles(false, "samples/cgi/po", "samples/cgi/locale")
|
73
84
|
|
74
85
|
$stderr.puts "Create samples/rails mo files."
|
75
|
-
GetText.create_mofiles(
|
86
|
+
GetText.create_mofiles(false, "samples/rails/po", "samples/rails/locale")
|
76
87
|
|
77
88
|
end
|
78
89
|
|
79
|
-
|
80
|
-
system("msgmerge #{po_root}/#{name}.pot #{tmp_file} -o #{po_root}/#{name}.pot")
|
81
|
-
|
82
|
-
Dir.glob("#{po_root}/*/#{name}.po"){ |f|
|
83
|
-
lang = /#{po_root}\/(.*)\//.match(f).to_a[1]
|
84
|
-
system("msgmerge #{po_root}/#{lang}/#{name}.po #{tmp_file} -o #{po_root}/#{lang}/#{name}.po")
|
85
|
-
cont =IO.read(f)
|
86
|
-
cont.sub!(/(Project-Id-Version\:.*)(\d\.\d\.\d)/, "\\1#{GetText::VERSION}")
|
87
|
-
File.open(f, "w") do |out|
|
88
|
-
out.write(cont)
|
89
|
-
end
|
90
|
-
}
|
91
|
-
end
|
92
|
-
|
93
|
-
desc "Update *po files to match new version.(for me)"
|
90
|
+
desc "Update pot/po files to match new version."
|
94
91
|
task :updatepo do
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
#
|
101
|
-
GetText.
|
102
|
-
|
103
|
-
File.delete("tmp.pot")
|
92
|
+
#lib/gettext/*.rb -> rgettext.po
|
93
|
+
GetText.update_pofiles("rgettext",
|
94
|
+
Dir.glob("lib/**/*.rb") - ["lib/gettext/rails.rb"],
|
95
|
+
"ruby-gettext #{GetText::VERSION}")
|
96
|
+
|
97
|
+
#lib/gettext/rails.rb -> rails.po
|
98
|
+
GetText.update_pofiles("rails", ["lib/gettext/rails.rb"],
|
99
|
+
"ruby-gettext #{GetText::VERSION}")
|
104
100
|
end
|
105
101
|
|
106
102
|
desc "Setup Ruby-GetText-Package. (for setup.rb)"
|
107
103
|
task :setup => [:makemo]
|
108
104
|
|
105
|
+
desc "Gather the newest po files. (for me)"
|
106
|
+
task :gatherpo => [:updatepo] do
|
107
|
+
mkdir_p "pofiles/original" unless FileTest.exist? "pofiles/original"
|
108
|
+
Dir.glob("**/*.pot").each do |f|
|
109
|
+
unless /^(pofiles|test)/ =~ f
|
110
|
+
copy f, "pofiles/original/"
|
111
|
+
end
|
112
|
+
end
|
113
|
+
Dir.glob("**/*.po").each do |f|
|
114
|
+
unless /^(pofiles|test)/ =~ f
|
115
|
+
lang = /po\/([^\/]*)\/(.*.po)/.match(f).to_a[1]
|
116
|
+
mkdir_p "pofiles/#{lang}" unless FileTest.exist? "pofiles/#{lang}"
|
117
|
+
copy f, "pofiles/#{lang}/"
|
118
|
+
Dir.glob("pofiles/original/*.pot").each do |f|
|
119
|
+
newpo = "pofiles/#{lang}/#{File.basename(f, ".pot")}.po"
|
120
|
+
copy f, newpo unless FileTest.exist? newpo
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
109
126
|
############################################################
|
110
127
|
# Package tasks
|
111
128
|
############################################################
|
112
|
-
require 'gettext/version'
|
113
|
-
|
114
|
-
PKG_VERSION = GetText::VERSION
|
115
129
|
desc "Create gem and tar.gz"
|
116
130
|
spec = Gem::Specification.new do |s|
|
117
131
|
s.name = 'gettext'
|
@@ -162,7 +176,7 @@ end
|
|
162
176
|
# Misc tasks
|
163
177
|
############################################################
|
164
178
|
desc "Test task (for shell environment only)"
|
165
|
-
task :
|
179
|
+
task :testunit => [:makemo_test] do
|
166
180
|
unless /mswin32/ =~ RUBY_PLATFORM
|
167
181
|
sh 'cd test; sh test.sh'
|
168
182
|
end
|