gettext 1.9.0-mswin32 → 1.10.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 +122 -1
- data/NEWS +21 -0
- data/README +30 -22
- data/data/locale/bs/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/bs/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ca/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ca/LC_MESSAGES/rgettext.mo +0 -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/el/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/eo/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/eo/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/et/LC_MESSAGES/rails.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/hr/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/hr/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/nb/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/nb/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/vi/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/vi/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/data/locale/zh_TW/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/zh_TW/LC_MESSAGES/rgettext.mo +0 -0
- data/ext/gettext/Makefile +2 -2
- data/ext/gettext/locale_system.o +0 -0
- data/ext/gettext/locale_system.so +0 -0
- data/lib/gettext/active_record.rb +51 -31
- data/lib/gettext/locale_win32.rb +2 -1
- data/lib/gettext/parser/active_record.rb +2 -2
- data/lib/gettext/parser/ruby.rb +2 -2
- data/lib/gettext/poparser.rb +303 -298
- data/lib/gettext/rails.rb +104 -50
- data/lib/gettext/rails_compat.rb +16 -0
- data/lib/gettext/rgettext.rb +37 -3
- data/lib/gettext/textdomain.rb +45 -6
- data/lib/gettext/utils.rb +7 -0
- data/lib/gettext/version.rb +1 -1
- data/lib/gettext.rb +119 -37
- data/lib/locale_system.so +0 -0
- data/po/bs/rails.po +148 -0
- data/po/bs/rgettext.po +131 -0
- data/po/ca/rails.po +45 -26
- data/po/ca/rgettext.po +21 -21
- data/po/cs/rails.po +46 -24
- data/po/cs/rgettext.po +21 -21
- data/po/de/rails.po +46 -27
- data/po/de/rgettext.po +21 -21
- data/po/el/rails.po +46 -25
- data/po/el/rgettext.po +22 -22
- data/po/eo/rails.po +49 -30
- data/po/eo/rgettext.po +21 -21
- data/po/es/rails.po +45 -24
- data/po/es/rgettext.po +21 -21
- data/po/et/rails.po +49 -30
- data/po/fr/rails.po +47 -28
- data/po/fr/rgettext.po +31 -29
- data/po/hr/rails.po +148 -0
- data/po/hr/rgettext.po +131 -0
- data/po/it/rails.po +42 -24
- data/po/it/rgettext.po +21 -21
- data/po/ja/rails.po +43 -25
- data/po/ja/rgettext.po +21 -21
- data/po/ko/rails.po +44 -24
- data/po/ko/rgettext.po +21 -21
- data/po/nb/rails.po +140 -0
- data/po/nb/rgettext.po +127 -0
- data/po/nl/rails.po +50 -30
- data/po/nl/rgettext.po +21 -21
- data/po/pt_BR/rails.po +48 -29
- data/po/pt_BR/rgettext.po +21 -21
- data/po/rails.pot +42 -24
- data/po/rgettext.pot +21 -21
- data/po/ru/rails.po +50 -31
- data/po/ru/rgettext.po +21 -21
- data/po/sv/rgettext.po +21 -21
- data/po/vi/rails.po +141 -0
- data/po/vi/rgettext.po +126 -0
- data/po/zh/rails.po +60 -43
- data/po/zh/rgettext.po +22 -22
- data/po/zh_TW/rails.po +61 -43
- data/po/zh_TW/rgettext.po +22 -22
- data/samples/cgi/locale/bs/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/bs/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/bs/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/bs/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/hr/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/hr/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/hr/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/hr/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/nb/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/nb/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/nb/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/nb/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/locale/vi/LC_MESSAGES/helloerb1.mo +0 -0
- data/samples/cgi/locale/vi/LC_MESSAGES/helloerb2.mo +0 -0
- data/samples/cgi/locale/vi/LC_MESSAGES/hellolib.mo +0 -0
- data/samples/cgi/locale/vi/LC_MESSAGES/main.mo +0 -0
- data/samples/cgi/po/bs/helloerb1.po +59 -0
- data/samples/cgi/po/bs/helloerb2.po +51 -0
- data/samples/cgi/po/bs/hellolib.po +23 -0
- data/samples/cgi/po/bs/main.po +83 -0
- data/samples/cgi/po/hr/helloerb1.po +59 -0
- data/samples/cgi/po/hr/helloerb2.po +51 -0
- data/samples/cgi/po/hr/hellolib.po +23 -0
- data/samples/cgi/po/hr/main.po +83 -0
- data/samples/cgi/po/nb/helloerb1.po +58 -0
- data/samples/cgi/po/nb/helloerb2.po +50 -0
- data/samples/cgi/po/nb/hellolib.po +22 -0
- data/samples/cgi/po/nb/main.po +82 -0
- data/samples/cgi/po/vi/helloerb1.po +65 -0
- data/samples/cgi/po/vi/helloerb2.po +52 -0
- data/samples/cgi/po/vi/hellolib.po +24 -0
- data/samples/cgi/po/vi/main.po +77 -0
- data/samples/locale/bs/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/bs/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/bs/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/bs/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/bs/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/bs/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/bs/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/hr/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/hr/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/hr/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/hr/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/hr/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/hr/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/hr/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/ja/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/nb/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/locale/vi/LC_MESSAGES/hello.mo +0 -0
- data/samples/locale/vi/LC_MESSAGES/hello2.mo +0 -0
- data/samples/locale/vi/LC_MESSAGES/hello_noop.mo +0 -0
- data/samples/locale/vi/LC_MESSAGES/hello_plural.mo +0 -0
- data/samples/locale/vi/LC_MESSAGES/helloglade2.mo +0 -0
- data/samples/locale/vi/LC_MESSAGES/hellogtk.mo +0 -0
- data/samples/locale/vi/LC_MESSAGES/hellotk.mo +0 -0
- data/samples/po/bs/hello.po +23 -0
- data/samples/po/bs/hello2.po +31 -0
- data/samples/po/bs/hello_noop.po +27 -0
- data/samples/po/bs/hello_plural.po +26 -0
- data/samples/po/bs/helloglade2.po +31 -0
- data/samples/po/bs/hellogtk.po +23 -0
- data/samples/po/bs/hellotk.po +23 -0
- data/samples/po/hr/hello.po +23 -0
- data/samples/po/hr/hello2.po +31 -0
- data/samples/po/hr/hello_noop.po +27 -0
- data/samples/po/hr/hello_plural.po +26 -0
- data/samples/po/hr/helloglade2.po +31 -0
- data/samples/po/hr/hellogtk.po +23 -0
- data/samples/po/hr/hellotk.po +23 -0
- data/samples/po/ja/hello_plural.po +1 -1
- data/samples/po/nb/hello.po +22 -0
- data/samples/po/nb/hello2.po +31 -0
- data/samples/po/nb/hello_noop.po +26 -0
- data/samples/po/nb/hello_plural.po +24 -0
- data/samples/po/nb/helloglade2.po +30 -0
- data/samples/po/nb/hellogtk.po +22 -0
- data/samples/po/nb/hellotk.po +22 -0
- data/samples/po/vi/hello.po +23 -0
- data/samples/po/vi/hello2.po +31 -0
- data/samples/po/vi/hello_noop.po +27 -0
- data/samples/po/vi/hello_plural.po +26 -0
- data/samples/po/vi/helloglade2.po +38 -0
- data/samples/po/vi/hellogtk.po +23 -0
- data/samples/po/vi/hellotk.po +24 -0
- data/samples/rails/locale/bs/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/hr/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/nb/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/locale/vi/LC_MESSAGES/blog.mo +0 -0
- data/samples/rails/po/bs/blog.po +106 -0
- data/samples/rails/po/hr/blog.po +106 -0
- data/samples/rails/po/nb/blog.po +104 -0
- data/samples/rails/po/vi/blog.po +110 -0
- data/samples/rails/vendor/plugins/gettext/locale/bs/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/hr/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/nb/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/locale/vi/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/vendor/plugins/gettext/po/bs/gettext_plugin.po +27 -0
- data/samples/rails/vendor/plugins/gettext/po/hr/gettext_plugin.po +27 -0
- data/samples/rails/vendor/plugins/gettext/po/nb/gettext_plugin.po +27 -0
- data/samples/rails/vendor/plugins/gettext/po/vi/gettext_plugin.po +28 -0
- data/src/poparser.ry +9 -4
- data/test/README +2 -0
- data/test/Rakefile +2 -0
- data/test/gettext_test.rb +51 -13
- data/test/gettext_test_active_record.rb +33 -0
- data/test/gettext_test_parser.rb +5 -0
- data/test/gettext_test_rails_caching.rb +211 -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/ja/LC_MESSAGES/plural.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/plural_error.mo +0 -0
- data/test/locale/ja/LC_MESSAGES/test_nsgettext.mo +0 -0
- data/test/locale/la/LC_MESSAGES/plural_error.mo +0 -0
- data/test/po/da/plural_error.po +3 -3
- data/test/po/fr/plural.po +6 -0
- data/test/po/fr/plural_error.po +3 -3
- data/test/po/ja/plural.po +6 -0
- data/test/po/ja/plural_error.po +2 -2
- data/test/po/ja/test_nsgettext.po +65 -0
- data/test/po/la/plural_error.po +3 -3
- data/test/rails/README +5 -0
- data/test/rails/Rakefile +35 -0
- data/test/rails/app/controllers/application.rb +8 -0
- data/test/rails/app/controllers/articles_controller.rb +61 -0
- data/test/rails/app/controllers/mailer_controller.rb +19 -0
- data/test/rails/app/helpers/application_helper.rb +3 -0
- data/test/rails/app/helpers/articles_helper.rb +2 -0
- data/test/rails/app/helpers/mailer_helper.rb +2 -0
- data/test/rails/app/models/article.rb +5 -0
- data/test/rails/app/models/mailer.rb +38 -0
- data/test/rails/app/models/user.rb +3 -0
- data/test/rails/app/views/articles/_form.rhtml +13 -0
- data/test/rails/app/views/articles/edit.rhtml +9 -0
- data/test/rails/app/views/articles/list.rhtml +30 -0
- data/test/rails/app/views/articles/list_fr.rhtml +1 -0
- data/test/rails/app/views/articles/multi_error_messages_for.rhtml +19 -0
- data/test/rails/app/views/articles/new.rhtml +8 -0
- data/test/rails/app/views/articles/show.rhtml +28 -0
- data/test/rails/app/views/layouts/application.rhtml +14 -0
- data/test/rails/app/views/layouts/mailer.rhtml +20 -0
- data/test/rails/app/views/mailer/coverpage.rhtml +6 -0
- data/test/rails/app/views/mailer/coverpage_fr.rhtml +6 -0
- data/test/rails/app/views/mailer/singlepart.rhtml +3 -0
- data/test/rails/app/views/mailer/singlepart_fr.rhtml +3 -0
- data/test/rails/config/boot.rb +45 -0
- data/test/rails/config/database.yml +36 -0
- data/test/rails/config/environment.rb +64 -0
- data/test/rails/config/environments/development.rb +21 -0
- data/test/rails/config/environments/production.rb +18 -0
- data/test/rails/config/environments/test.rb +19 -0
- data/test/rails/config/routes.rb +23 -0
- data/test/rails/db/schema.rb +27 -0
- data/test/rails/po/ja/rails_test.po +142 -0
- data/test/rails/po/rails_test.pot +147 -0
- data/test/rails/public/404.html +30 -0
- data/test/rails/public/500.html +30 -0
- data/test/rails/public/dispatch.cgi +10 -0
- data/test/rails/public/dispatch.fcgi +24 -0
- data/test/rails/public/dispatch.rb +10 -0
- data/test/rails/public/favicon.ico +0 -0
- data/test/rails/public/images/rails.png +0 -0
- data/test/rails/public/index.html +277 -0
- data/test/rails/public/javascripts/application.js +2 -0
- data/test/rails/public/javascripts/controls.js +833 -0
- data/test/rails/public/javascripts/dragdrop.js +942 -0
- data/test/rails/public/javascripts/effects.js +1088 -0
- data/test/rails/public/javascripts/prototype.js +2515 -0
- data/test/rails/public/robots.txt +1 -0
- data/test/rails/public/stylesheets/scaffold.css +74 -0
- data/test/rails/script/about +3 -0
- data/test/rails/script/breakpointer +3 -0
- data/test/rails/script/console +3 -0
- data/test/rails/script/destroy +3 -0
- data/test/rails/script/generate +3 -0
- data/test/rails/script/performance/benchmarker +3 -0
- data/test/rails/script/performance/profiler +3 -0
- data/test/rails/script/plugin +3 -0
- data/test/rails/script/process/inspector +3 -0
- data/test/rails/script/process/reaper +3 -0
- data/test/rails/script/process/spawner +3 -0
- data/test/rails/script/runner +3 -0
- data/test/rails/script/server +3 -0
- data/test/rails/test/fixtures/articles.yml +11 -0
- data/test/rails/test/functional/articles_controller_test.rb +109 -0
- data/test/rails/test/functional/mailer_controller_test.rb +93 -0
- data/test/rails/test/integration/general_stories_test.rb +58 -0
- data/test/rails/test/result/en/create_error.html +95 -0
- data/test/rails/test/result/en/list.html +65 -0
- data/test/rails/test/result/en/multi_error_messages_for.html +153 -0
- data/test/rails/test/result/en/multipart.html +67 -0
- data/test/rails/test/result/en/new.html +95 -0
- data/test/rails/test/result/en/show.html +50 -0
- data/test/rails/test/result/en/singlepart.html +10 -0
- data/test/rails/test/result/fr/list.html +15 -0
- data/test/rails/test/result/fr/multipart.html +67 -0
- data/test/rails/test/result/fr/singlepart.html +10 -0
- data/test/rails/test/result/ja/create_error.html +95 -0
- data/test/rails/test/result/ja/list.html +65 -0
- data/test/rails/test/result/ja/multi_error_messages_for.html +153 -0
- data/test/rails/test/result/ja/multipart.html +67 -0
- data/test/rails/test/result/ja/new.html +95 -0
- data/test/rails/test/result/ja/show.html +50 -0
- data/test/rails/test/result/ja/singlepart.html +10 -0
- data/test/rails/test/test_helper.rb +28 -0
- data/test/rails/test/unit/article_test.rb +18 -0
- data/test/test.sh +4 -0
- data/test/test_nsgettext.rb +44 -0
- data/test/test_rubyparser_n_.rb +10 -0
- metadata +317 -20
- data/ext/gettext/locale_system-i386-mswin32.def +0 -2
- data/ext/gettext/locale_system-i386-mswin32.exp +0 -0
- data/ext/gettext/locale_system-i386-mswin32.lib +0 -0
- data/ext/gettext/locale_system-i386-mswin32.pdb +0 -0
- data/ext/gettext/locale_system.obj +0 -0
- data/ext/gettext/vc70.pdb +0 -0
- data/samples/rails/locale/cs/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/de/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/el/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/es/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/fr/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/ja/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/ko/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/nl/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo +0 -0
- data/samples/rails/locale/ru/LC_MESSAGES/gettext_plugin.mo +0 -0
data/ChangeLog
CHANGED
@@ -1,3 +1,124 @@
|
|
1
|
+
2007-07-06 Masao Mutoh <mutoh@highway.ne.jp>
|
2
|
+
|
3
|
+
* lib/gettext/rails.rb: Add to support Action/Fragment caching.
|
4
|
+
* test/gettext_test_rails_caching.rb, test.sh: Added the test for caching.
|
5
|
+
* NEWS: Updated.
|
6
|
+
|
7
|
+
2007-07-05 Masao Mutoh <mutoh@highway.ne.jp>
|
8
|
+
|
9
|
+
* src/poparser.ry, lib/gettext/poparser.rb:
|
10
|
+
Fixed a bug of previous change.
|
11
|
+
|
12
|
+
2007-07-04 Masao Mutoh <mutoh@highway.ne.jp>
|
13
|
+
|
14
|
+
* NEWS: Updated.
|
15
|
+
* lib/gettext/version.rb: Increment minor version.
|
16
|
+
* lib/gettext/active_record.rb: Work with script/generate
|
17
|
+
scaffold_resource. Reported by Bart ten Brinke(Bug#8308)
|
18
|
+
* lib/gettext/utils.rb: On the Win32 default environment,
|
19
|
+
use "msgmerge" program provided by Ruby-GNOME2 Win32 Installer.
|
20
|
+
* lib/gettext/locale_win32.rb: Fix to find a charset from a locale.
|
21
|
+
|
22
|
+
2007-07-03 Masao Mutoh <mutoh@highway.ne.jp>
|
23
|
+
|
24
|
+
* lib/gettext/rails.rb:error_messages_for accept plural models.
|
25
|
+
Reported by Florian Hufsky.
|
26
|
+
Fixed set_error_message_title|explanation.
|
27
|
+
* test/rails/app/model/users.rb, test/rails/test/*: Add tests for
|
28
|
+
error_messages_for with plural models.
|
29
|
+
* lib/gettext/parser/active_record.rb:
|
30
|
+
remove to require 'application.rb' to avoid the effect
|
31
|
+
of application.rb when parse models. Pointed out by Michel Loiseleur.
|
32
|
+
* po/ca/rails.po: Updated by Ramon Salvadó.
|
33
|
+
* src/poparser.ry, lib/gettext/poparser.rb: Don't append
|
34
|
+
msgids/msgstrs if the msgstrs don't set.
|
35
|
+
* lib/gettext.rb, lib/gettext/parser/ruby.rb:
|
36
|
+
Added GetText.nsgettext, ns_. This method has n_ + s_ function.
|
37
|
+
(e.g.) ns_("File|A file", "%{num} files", i).
|
38
|
+
* test/test_nsgettext.rb, test/po/ja/test_nsgettext.po: Added for
|
39
|
+
the test ns_(), nsgettext.
|
40
|
+
* lib/gettext/rgettext.rb: Normalize msgids.
|
41
|
+
_("Foo") and n_("Foo", "Foos", i) become same msgid "Foo\000Foos".
|
42
|
+
This is the same behavior with xgettext.
|
43
|
+
Reported by Sava Chankov.
|
44
|
+
* lib/gettext/textdomain.rb: Follow above changes.
|
45
|
+
_("Foo") matches the single msgid of n_("Foo", "Foos", i).
|
46
|
+
|
47
|
+
2007-06-29 Masao Mutoh <mutoh@highway.ne.jp>
|
48
|
+
|
49
|
+
* lib/gettext.rb: Add GetText.cached=, .cached?, clear_cache.
|
50
|
+
messages are cached in default. If the value is false
|
51
|
+
or $DEBUG = true then messages are not cached.
|
52
|
+
_ and n_ become 1.2-1.9 times faster than older versions.
|
53
|
+
* lib/gettext/textdomain.rb, rails.rb: follow the changes
|
54
|
+
below.
|
55
|
+
|
56
|
+
2007-06-28 Masao Mutoh <mutoh@highway.ne.jp>
|
57
|
+
|
58
|
+
* README: Updated.
|
59
|
+
* po/vi/rails.po: Updated by Ngoc Dao.
|
60
|
+
* po/(zh|zh_TW)/rails.po: Updated by Yang Bob.
|
61
|
+
|
62
|
+
2007-06-27 Masao Mutoh <mutoh@highway.ne.jp>
|
63
|
+
|
64
|
+
* po/nl/rails.po: Updated by Menno Jonker
|
65
|
+
* po/(bs|hr)/rails.po: Updated by Sanjin Sehic.
|
66
|
+
* po/pt_BR/rails.po: Updated by Joao Pedrosa.
|
67
|
+
* po/eo/rails.po: Updated by Malte Milatz.
|
68
|
+
* po/de/rails.po: Updated by Patrick Lenz.
|
69
|
+
* po/fr/rgettext.po, rails.po: Updated by David Sulc.
|
70
|
+
* po/et/rails.po: Updated by Erkki Eilonen .
|
71
|
+
*
|
72
|
+
2007-06-26 Masao Mutoh <mutoh@highway.ne.jp>
|
73
|
+
|
74
|
+
* test/rails/*: Added tests for ActionMailer.
|
75
|
+
|
76
|
+
2007-04-17 Masao Mutoh <mutoh@highway.ne.jp>
|
77
|
+
|
78
|
+
* test/rails/* : Added tests for rails.
|
79
|
+
|
80
|
+
2007-04-16 Masao Mutoh <mutoh@highway.ne.jp>
|
81
|
+
|
82
|
+
* lib/gettext/rails.rb: TestRequest#cgi returns GetTextMockGGI, not CGI.
|
83
|
+
|
84
|
+
2007-04-08 Masao Mutoh <mutoh@highway.ne.jp>
|
85
|
+
|
86
|
+
* lib/gettext/active_record.rb: Work ActiveRecord::Base::Validation
|
87
|
+
with non ActiveRecord::Base object again. Reported by Maksim Bartenev.
|
88
|
+
* test/gettext_test_activerecord.rb: Add a test for the above change.
|
89
|
+
|
90
|
+
2007-04-07 Masao Mutoh <mutoh@highway.ne.jp>
|
91
|
+
|
92
|
+
* **/po/nb/*.po: Added nb locales by Runar Ingebrigtsen.
|
93
|
+
|
94
|
+
2007-03-24 Masao Mutoh <mutoh@highway.ne.jp>
|
95
|
+
|
96
|
+
* **/po/(bs|hr)/*.po: Added bs/hr locales by Sanjin Sehic.
|
97
|
+
|
98
|
+
2007-03-23 Masao Mutoh <mutoh@highway.ne.jp>
|
99
|
+
|
100
|
+
* **/po/vi/*.po: Added vi locale by Ngoc Dao.
|
101
|
+
|
102
|
+
2007-02-11 Masao Mutoh <mutoh@highway.ne.jp>
|
103
|
+
|
104
|
+
* lib/gettext/rails_compat.rb: Added for Rails-1.1.6.
|
105
|
+
(Works with both Rails-1.1.6 and 1.2.2)
|
106
|
+
|
107
|
+
2007-02-09 Masao Mutoh <mutoh@highway.ne.jp>
|
108
|
+
|
109
|
+
* po/nl/rails.po: Fixed wrong translations.
|
110
|
+
Reported by Bart ten Brinke [Bug #8449]
|
111
|
+
|
112
|
+
2007-01-30 Masao Mutoh <mutoh@highway.ne.jp>
|
113
|
+
|
114
|
+
* po/nl/rails.po: Fixed wrong translations.
|
115
|
+
Reported by Dirkjan Bussink
|
116
|
+
|
117
|
+
2007-01-25 Masao Mutoh <mutoh@highway.ne.jp>
|
118
|
+
|
119
|
+
* lib/gettext/active_record.rb: Fixed #columns again.
|
120
|
+
[Feature Requests #7428]
|
121
|
+
|
1
122
|
2007-01-22 Masao Mutoh <mutoh@highway.ne.jp>
|
2
123
|
|
3
124
|
* NEWS: Updated.
|
@@ -29,7 +150,7 @@
|
|
29
150
|
|
30
151
|
2006-12-22 Masao Mutoh <mutoh@highway.ne.jp>
|
31
152
|
|
32
|
-
* **/po/ca/*.po: Added ca(Catalan) locale by Ramon Salvad
|
153
|
+
* **/po/ca/*.po: Added ca(Catalan) locale by Ramon Salvad坦.
|
33
154
|
|
34
155
|
2006-12-17 Masao Mutoh <mutoh@highway.ne.jp>
|
35
156
|
|
data/NEWS
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
= Ruby-GetText-Package-1.10.0 (2007-07-06)
|
2
|
+
|
3
|
+
* Support Vietnamese(vi), Bosnian(bs), Croatian(hr), Norwegian(nb)
|
4
|
+
* Cache messages. Both _() and n_() become 1.3-1.8 times faster
|
5
|
+
than older version.
|
6
|
+
* Add GetText.ns_()
|
7
|
+
* Fix bugs.
|
8
|
+
* Enhance to support Ruby on Rails.
|
9
|
+
* Work with script/generate scaffold_resource.
|
10
|
+
* error_messages_for accepts plural models.
|
11
|
+
* Support Action/Fragment caching.
|
12
|
+
|
13
|
+
Thanks to:
|
14
|
+
Translators:
|
15
|
+
Dirkjan Bussink, Bart ten Brinke, Ngoc Dao, Sanjin Sehic,
|
16
|
+
Runar Ingebrigtsen, Menno Jonker, Joao Pedrosa, Malte Milatz,
|
17
|
+
Patrick Lenz, David Sulc, Erkki Eilonen, Yang Bob, Ramon Salvadó
|
18
|
+
Bug reports, suggestions and patches:
|
19
|
+
Maksim Bartenev, Bart ten Brinke, Florian Hufsky,
|
20
|
+
Michel Loiseleur, Sava Chankov
|
21
|
+
|
1
22
|
= Ruby-GetText-Package-1.9.0 (2007-01-22)
|
2
23
|
|
3
24
|
* Support Catalan(ca), Esperanto(eo)
|
data/README
CHANGED
@@ -98,15 +98,15 @@ License
|
|
98
98
|
(See the file 'COPYING'.)
|
99
99
|
|
100
100
|
* mo.rb
|
101
|
-
Copyright (C) 2001-
|
101
|
+
Copyright (C) 2001-2007 Masao Mutoh <mutoh at highwhay.ne.jp>
|
102
102
|
Copyright (C) 2001,2002 Masahiro Sakai <s01397ms at sfc.keio.ac.jp>
|
103
103
|
|
104
104
|
* gettext.rb
|
105
|
-
Copyright (C) 2001-
|
105
|
+
Copyright (C) 2001-2007 Masao Mutoh <mutoh at highwhay.ne.jp>
|
106
106
|
Copyright (C) 2001,2002 Masahiro Sakai <s01397ms at sfc.keio.ac.jp>
|
107
107
|
|
108
108
|
* rgettext
|
109
|
-
Copyright (C) 2001-
|
109
|
+
Copyright (C) 2001-2007 Masao Mutoh <mutoh at highwhay.ne.jp>
|
110
110
|
Copyright (C) 2001,2002 Yasushi Shoji <yashi at atmark-techno.com>
|
111
111
|
|
112
112
|
* setup.rb
|
@@ -114,22 +114,24 @@ License
|
|
114
114
|
This file is released under LGPL. See the top of the install.rb.
|
115
115
|
|
116
116
|
* Others
|
117
|
-
Copyright (C) 2001-
|
117
|
+
Copyright (C) 2001-2007 Masao Mutoh <mutoh at highwhay.ne.jp>
|
118
118
|
|
119
119
|
|
120
120
|
Translators
|
121
121
|
-----------
|
122
|
+
Bosnian(bs) - Sanjin Sehic <saserr at gmail.com>
|
122
123
|
Catalan(ca) - Ramon Salvadó <rsalvado at gnuine.com>
|
123
124
|
Chinese(Simplified)(zh_CN) - Yang Bob <bob.yang.dev at gmail.com> (current)
|
124
125
|
Yingfeng <blogyingfeng at gmail.com>
|
125
126
|
Chinese(Traditional)(zh_TW)- Yang Bob <bob.yang.dev at gmail.com> (current)
|
126
127
|
LIN CHUNG-YI <xmarsh at gmail.com>
|
128
|
+
Croatian(hr) - Sanjin Sehic <saserr at gmail.com>
|
127
129
|
Czech(cs) - Karel Miarka <kajism at yahoo.com>
|
128
130
|
Dutch(nl) - Menno Jonkers <ruby-gettext at jonkers.com>
|
129
131
|
Esperanto(eo) - Malte Milatz <malte at gmx-topmail.de>
|
130
132
|
Estonian(et) - Erkki Eilonen <erkki at itech.ee>
|
131
|
-
French(fr) -
|
132
|
-
|
133
|
+
French(fr) - David Sulc <davidsulc at gmail.com> (current)
|
134
|
+
Laurent Sansonetti <laurent.sansonetti at gmail.com>
|
133
135
|
German(de) - Patrick Lenz <patrick at limited-overload.de> (current)
|
134
136
|
Detlef Reichl <detlef.reichl at gmx.org>
|
135
137
|
Sven Herzberg <herzi at abi02.de>
|
@@ -139,33 +141,39 @@ Italian(it) - Marco Lazzeri <marco.lazzeri at gmail.com>
|
|
139
141
|
Gabriele Renzi <surrender_it at yahoo.it>
|
140
142
|
Japanese(ja) - Masao Mutoh <mutoh at highway.ne.jp>
|
141
143
|
Korean(ko) - Gyoung-Yoon Noh <nohmad at gmail.com>
|
144
|
+
Norwegian(nb) - Runar Ingebrigtsen <runar at mopo.no>
|
142
145
|
Portuguese(Brazil)(pt_BR) - Antonio S. de A. Terceiro <terceiro at softwarelivre.org>
|
143
146
|
Joao Pedrosa <joaopedrosa at gmail.com> (current)
|
144
147
|
Russian(ru) - Yuri Kozlov <kozlov.y at gmail.com>
|
145
148
|
Spanish(es) - David Espada <davinci at escomposlinux.org> (current)
|
146
149
|
David Moreno Garza <damog at damog.net>
|
147
150
|
Swedish(sv) - Nikolai Weibull <mailing-lists.ruby-talk at rawuncut.elitemail.org>
|
151
|
+
Vietnamese(vi) - Ngoc Dao <ngocdaothanh at gmail.com>
|
148
152
|
|
149
153
|
Status of translations
|
150
154
|
----------------------
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
155
|
+
Bosnian(bs) - 1.10.0 (new)
|
156
|
+
Catalan(ca) - 1.10.0
|
157
|
+
Croatian(hr) - 1.10.0 (new)
|
158
|
+
Chinese(zh_CN) - 1.10.0
|
159
|
+
Chinese(zh_TW) - 1.10.0
|
160
|
+
Czech(cs) - 1.9.0 (old)
|
161
|
+
Dutch(nl) - 1.10.0
|
162
|
+
English(default) - 1.9.0 (old)
|
163
|
+
Esperanto(eo) - 1.10.0
|
164
|
+
Estonian(et) - 1.10.0 (rails.po only)
|
165
|
+
French(fr) - 1.10.0
|
166
|
+
German(de) - 1.10.0
|
167
|
+
Greek(el) - 1.9.0 (old)
|
168
|
+
Spanish(es) - 1.9.0 (old)
|
163
169
|
Italian(it) - 1.6.0 (old)
|
164
|
-
Japanese(ja) - 1.
|
165
|
-
Korean(ko) - 1.9.0
|
166
|
-
|
167
|
-
|
170
|
+
Japanese(ja) - 1.10.0
|
171
|
+
Korean(ko) - 1.9.0 (old)
|
172
|
+
Norwegian(nb) - 1.9.0 (new)
|
173
|
+
Portuguese(Brazil)(pt_BR) - 1.10.0
|
174
|
+
Russian(ru) - 1.10.0
|
168
175
|
Swedish(sv) - 0.8.0 (old)
|
176
|
+
Vietnamese(vi) - 1.10.0 (new)
|
169
177
|
|
170
178
|
Maintainer
|
171
179
|
----------
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/ext/gettext/Makefile
CHANGED
@@ -13,7 +13,7 @@ prefix = $(DESTDIR)/ruby
|
|
13
13
|
exec_prefix = $(prefix)
|
14
14
|
sitedir = $(prefix)/lib/ruby/site_ruby
|
15
15
|
rubylibdir = $(libdir)/ruby/$(ruby_version)
|
16
|
-
top_srcdir = $(DESTDIR)/develop/win/ruby/ruby-1.8.5
|
16
|
+
top_srcdir = $(DESTDIR)/develop/win/ruby/ruby-1.8.5-p12
|
17
17
|
archdir = $(rubylibdir)/$(arch)
|
18
18
|
sbindir = $(exec_prefix)/sbin
|
19
19
|
datadir = $(prefix)/share
|
@@ -75,7 +75,7 @@ extout =
|
|
75
75
|
extout_prefix =
|
76
76
|
target_prefix =
|
77
77
|
LOCAL_LIBS =
|
78
|
-
LIBS = $(LIBRUBYARG_SHARED) oldnames.lib user32.lib advapi32.lib
|
78
|
+
LIBS = $(LIBRUBYARG_SHARED) oldnames.lib user32.lib advapi32.lib ws2_32.lib
|
79
79
|
SRCS = locale_system.c
|
80
80
|
OBJS = locale_system.obj
|
81
81
|
TARGET = locale_system
|
Binary file
|
Binary file
|
@@ -6,10 +6,11 @@
|
|
6
6
|
You may redistribute it and/or modify it under the same
|
7
7
|
license terms as Ruby.
|
8
8
|
|
9
|
-
$Id: active_record.rb,v 1.
|
9
|
+
$Id: active_record.rb,v 1.21 2007/07/04 15:51:30 mutoh Exp $
|
10
10
|
=end
|
11
11
|
require 'gettext'
|
12
12
|
require 'active_record'
|
13
|
+
require 'gettext/rails_compat'
|
13
14
|
|
14
15
|
module ActiveRecord #:nodoc:
|
15
16
|
class Migration
|
@@ -36,41 +37,61 @@ module ActiveRecord #:nodoc:
|
|
36
37
|
attr_accessor :table_class
|
37
38
|
alias :human_name_witout_localized :human_name
|
38
39
|
|
39
|
-
def
|
40
|
-
table_class
|
40
|
+
def human_name_with_gettext
|
41
|
+
if table_class
|
42
|
+
table_class.human_attribute_name(@name)
|
43
|
+
else
|
44
|
+
@name.humanize
|
45
|
+
end
|
41
46
|
end
|
47
|
+
alias_method_chain :human_name, :gettext
|
42
48
|
end
|
43
49
|
end
|
44
50
|
|
45
51
|
module Validations # :nodoc:
|
46
|
-
|
47
|
-
base
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
real_included(base)
|
52
|
+
class << self
|
53
|
+
def real_included(base)
|
54
|
+
base.extend ClassMethods
|
55
|
+
base.class_eval{
|
56
|
+
include GetText
|
57
|
+
def gettext(str) #:nodoc:
|
58
|
+
_(str)
|
59
|
+
end
|
60
|
+
class << self
|
61
|
+
def human_attribute_name_with_gettext(attribute_key_name) #:nodoc:
|
62
|
+
s_("#{self}|#{attribute_key_name.humanize}")
|
63
|
+
end
|
64
|
+
alias_method_chain :human_attribute_name, :gettext
|
65
|
+
def human_attribute_table_name_for_error(table_name) #:nodoc:
|
66
|
+
_(table_name.gsub(/_/, " "))
|
67
|
+
end
|
68
|
+
end
|
69
|
+
}
|
70
|
+
end
|
66
71
|
end
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
+
|
73
|
+
if respond_to? :included
|
74
|
+
class << self
|
75
|
+
def included_with_gettext(base) # :nodoc:
|
76
|
+
unless base <= ActiveRecord::Base
|
77
|
+
included_without_gettext(base)
|
78
|
+
end
|
79
|
+
real_included(base)
|
80
|
+
end
|
81
|
+
alias_method_chain :included, :gettext
|
82
|
+
end
|
83
|
+
else
|
84
|
+
class << self
|
85
|
+
# Since rails-1.2.0.
|
86
|
+
def append_features_with_gettext(base) # :nodoc:
|
87
|
+
unless base <= ActiveRecord::Base
|
88
|
+
append_features_without_gettext(base)
|
89
|
+
end
|
90
|
+
real_included(base)
|
91
|
+
end
|
92
|
+
alias_method_chain :append_features, :gettext
|
93
|
+
end
|
72
94
|
end
|
73
|
-
end
|
74
95
|
|
75
96
|
module ClassMethods #:nodoc:
|
76
97
|
@@custom_error_messages_d = {}
|
@@ -137,10 +158,9 @@ end
|
|
137
158
|
@columns = nil
|
138
159
|
end
|
139
160
|
unless @columns
|
140
|
-
@columns =
|
161
|
+
@columns = columns_without_gettext
|
141
162
|
@columns.each {|column|
|
142
163
|
column.table_class = self
|
143
|
-
column.primary = column.name == primary_key
|
144
164
|
}
|
145
165
|
end
|
146
166
|
@columns
|
data/lib/gettext/locale_win32.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
You may redistribute it and/or modify it under the same
|
7
7
|
license terms as Ruby.
|
8
8
|
|
9
|
-
$Id: locale_win32.rb,v 1.
|
9
|
+
$Id: locale_win32.rb,v 1.16 2007/07/03 16:57:07 mutoh Exp $
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'gettext/locale_table_win32'
|
@@ -26,6 +26,7 @@ module Locale
|
|
26
26
|
# * Returns the charset of the locale
|
27
27
|
def get_charset(locale)
|
28
28
|
loc = LocaleTable.find{|v| v[1] == locale.to_win}
|
29
|
+
loc = LocaleTable.find{|v| v[1] =~ /^#{locale.language}-/} unless loc
|
29
30
|
loc ? loc[2] : "CP1252"
|
30
31
|
end
|
31
32
|
|
@@ -7,7 +7,7 @@
|
|
7
7
|
You may redistribute it and/or modify it under the same
|
8
8
|
license terms as Ruby.
|
9
9
|
|
10
|
-
$Id: active_record.rb,v 1.
|
10
|
+
$Id: active_record.rb,v 1.6 2007/07/03 01:58:47 mutoh Exp $
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'gettext'
|
@@ -141,7 +141,7 @@ module GetText
|
|
141
141
|
ENV["RAILS_ENV"] = @config[:db_mode]
|
142
142
|
require 'config/boot.rb'
|
143
143
|
require 'config/environment.rb'
|
144
|
-
require 'app/controllers/application.rb'
|
144
|
+
# require 'app/controllers/application.rb'
|
145
145
|
rescue LoadError
|
146
146
|
require_rails 'rubygems'
|
147
147
|
if Kernel.respond_to? :gem
|
data/lib/gettext/parser/ruby.rb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
You may redistribute it and/or modify it under the same
|
10
10
|
license terms as Ruby.
|
11
11
|
|
12
|
-
$Id: ruby.rb,v 1.
|
12
|
+
$Id: ruby.rb,v 1.10 2007/07/02 16:40:18 mutoh Exp $
|
13
13
|
=end
|
14
14
|
|
15
15
|
require 'irb/ruby-lex.rb'
|
@@ -62,7 +62,7 @@ end
|
|
62
62
|
module GetText
|
63
63
|
module RubyParser
|
64
64
|
ID = ['gettext', '_', 'N_', 'sgettext', 's_']
|
65
|
-
PLURAL_ID = ['ngettext', 'n_', 'Nn_']
|
65
|
+
PLURAL_ID = ['ngettext', 'n_', 'Nn_', 'ns_', 'nsgettext']
|
66
66
|
|
67
67
|
module_function
|
68
68
|
def parse(file, targets = []) # :nodoc:
|