gettext 1.6.0-mswin32 → 1.7.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 +65 -0
- data/NEWS +20 -0
- data/README +9 -9
- data/Rakefile +4 -4
- data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/it/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/ru/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/ru/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
- data/data/locale/zh/LC_MESSAGES/rails.mo +0 -0
- data/data/locale/zh/LC_MESSAGES/rgettext.mo +0 -0
- data/ext/gettext/Makefile +178 -0
- data/ext/gettext/locale_system-i386-mswin32.def +2 -0
- 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/locale_system.so +0 -0
- data/ext/gettext/mkmf.log +16 -0
- data/ext/gettext/vc70.pdb +0 -0
- data/lib/gettext.rb +38 -12
- data/lib/gettext/container.rb +2 -2
- data/lib/gettext/iconv.rb +2 -2
- data/lib/gettext/locale_cgi.rb +3 -2
- data/lib/gettext/locale_object.rb +8 -8
- data/lib/gettext/locale_posix.rb +2 -2
- data/lib/gettext/locale_table_win32.rb +3 -3
- data/lib/gettext/locale_win32.rb +2 -2
- data/lib/gettext/mo.rb +5 -2
- data/lib/gettext/parser/activerecord.rb +27 -17
- data/lib/gettext/parser/glade.rb +7 -11
- data/lib/gettext/parser/ruby.rb +2 -3
- data/lib/gettext/poparser.rb +298 -298
- data/lib/gettext/rails.rb +220 -85
- data/lib/gettext/rgettext.rb +2 -2
- data/lib/gettext/rmsgfmt.rb +3 -3
- data/lib/gettext/rmsgmerge.rb +2 -2
- data/lib/gettext/string.rb +2 -1
- data/lib/gettext/textdomain.rb +5 -2
- data/lib/gettext/textdomainmanager.rb +3 -3
- data/lib/gettext/version.rb +1 -1
- data/lib/locale_system.so +0 -0
- data/po/cs/rails.po +63 -22
- data/po/cs/rgettext.po +71 -37
- data/po/de/rails.po +54 -16
- data/po/de/rgettext.po +56 -22
- data/po/el/rails.po +54 -16
- data/po/el/rgettext.po +56 -22
- data/po/es/rails.po +57 -20
- data/po/es/rgettext.po +70 -30
- data/po/fr/rails.po +57 -19
- data/po/fr/rgettext.po +61 -25
- data/po/it/rails.po +54 -16
- data/po/it/rgettext.po +56 -22
- data/po/ja/rails.po +55 -18
- data/po/ja/rgettext.po +58 -24
- data/po/ko/rails.po +68 -33
- data/po/ko/rgettext.po +77 -37
- data/po/nl/rails.po +61 -22
- data/po/nl/rgettext.po +72 -36
- data/po/pt_BR/rails.po +54 -16
- data/po/pt_BR/rgettext.po +56 -22
- data/po/rails.pot +54 -16
- data/po/rgettext.pot +55 -21
- data/po/ru/rails.po +68 -26
- data/po/ru/rgettext.po +70 -30
- data/po/sv/rgettext.po +55 -21
- data/po/zh/rails.po +51 -16
- data/po/zh/rgettext.po +59 -23
- data/samples/rails/app/controllers/application.rb +7 -1
- data/samples/rails/app/models/article.rb +0 -6
- 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/src/poparser.ry +1 -1
- data/test/gettext_test.rb +1 -1
- data/test/gettext_test_parser.rb +0 -1
- data/test/test_rubyparser.rb +0 -11
- metadata +21 -7
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/src/poparser.ry
CHANGED
@@ -122,7 +122,7 @@ end
|
|
122
122
|
@q.push [:PLURAL_NUM, $1]
|
123
123
|
str = $'
|
124
124
|
when /\A\#~(.*)/
|
125
|
-
$stderr.print _("Warning: obsolete msgid
|
125
|
+
$stderr.print _("Warning: obsolete msgid exists.\n")
|
126
126
|
$stderr.print " #{$&}\n"
|
127
127
|
@q.push [:COMMENT, $&]
|
128
128
|
str = $'
|
data/test/gettext_test.rb
CHANGED
@@ -67,7 +67,7 @@ class TestGetText < Test::Unit::TestCase
|
|
67
67
|
bindtextdomain("test2", "locale")
|
68
68
|
testlib6 = TestLib6.new
|
69
69
|
assert_equal("japanese", testlib6.test)
|
70
|
-
|
70
|
+
setlocale("fr")
|
71
71
|
assert_equal("japanese", testlib6.test) #no influence of previous line
|
72
72
|
assert_equal("ONE IS 1.", testlib6.test_formatted_string)
|
73
73
|
testlib6.setlocale("ja")
|
data/test/gettext_test_parser.rb
CHANGED
@@ -24,7 +24,6 @@ class TestGetTextParser < Test::Unit::TestCase
|
|
24
24
|
assert_equal(["\#", 'test_rubyparser.rb:66', 'test_rubyparser.rb:70'], ary[13])
|
25
25
|
assert_equal(["\\taaa", 'test_rubyparser.rb:74'], ary[14])
|
26
26
|
assert_equal(["Here document1\\nHere document2\\n", 'test_rubyparser.rb:78'], ary[15])
|
27
|
-
assert_equal(["Here document1\\nHere document2\\n", 'test_rubyparser.rb:92'], ary[16])
|
28
27
|
end
|
29
28
|
|
30
29
|
def test_ruby_N
|
data/test/test_rubyparser.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: gettext
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.
|
7
|
-
date: 2006-
|
6
|
+
version: 1.7.0
|
7
|
+
date: 2006-07-17 00:00:00 +09:00
|
8
8
|
summary: Ruby-GetText-Package is a libary and tools to localize messages.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -101,8 +101,16 @@ files:
|
|
101
101
|
- data/locale/zh/LC_MESSAGES/rgettext.mo
|
102
102
|
- ext/gettext
|
103
103
|
- ext/gettext/extconf.rb
|
104
|
-
- ext/gettext/
|
104
|
+
- ext/gettext/locale_system-i386-mswin32.def
|
105
|
+
- ext/gettext/locale_system-i386-mswin32.exp
|
106
|
+
- ext/gettext/locale_system-i386-mswin32.lib
|
107
|
+
- ext/gettext/locale_system-i386-mswin32.pdb
|
105
108
|
- ext/gettext/locale_system.c
|
109
|
+
- ext/gettext/locale_system.obj
|
110
|
+
- ext/gettext/locale_system.so
|
111
|
+
- ext/gettext/Makefile
|
112
|
+
- ext/gettext/mkmf.log
|
113
|
+
- ext/gettext/vc70.pdb
|
106
114
|
- lib/gettext
|
107
115
|
- lib/gettext.rb
|
108
116
|
- lib/locale_system.so
|
@@ -623,28 +631,38 @@ files:
|
|
623
631
|
- samples/rails/locale/zh
|
624
632
|
- samples/rails/locale/cs/LC_MESSAGES
|
625
633
|
- samples/rails/locale/cs/LC_MESSAGES/blog.mo
|
634
|
+
- samples/rails/locale/cs/LC_MESSAGES/gettext_plugin.mo
|
626
635
|
- samples/rails/locale/de/LC_MESSAGES
|
627
636
|
- samples/rails/locale/de/LC_MESSAGES/blog.mo
|
637
|
+
- samples/rails/locale/de/LC_MESSAGES/gettext_plugin.mo
|
628
638
|
- samples/rails/locale/el/LC_MESSAGES
|
629
639
|
- samples/rails/locale/el/LC_MESSAGES/blog.mo
|
640
|
+
- samples/rails/locale/el/LC_MESSAGES/gettext_plugin.mo
|
630
641
|
- samples/rails/locale/en/LC_MESSAGES
|
631
642
|
- samples/rails/locale/en/LC_MESSAGES/blog.mo
|
632
643
|
- samples/rails/locale/es/LC_MESSAGES
|
633
644
|
- samples/rails/locale/es/LC_MESSAGES/blog.mo
|
645
|
+
- samples/rails/locale/es/LC_MESSAGES/gettext_plugin.mo
|
634
646
|
- samples/rails/locale/fr/LC_MESSAGES
|
635
647
|
- samples/rails/locale/fr/LC_MESSAGES/blog.mo
|
648
|
+
- samples/rails/locale/fr/LC_MESSAGES/gettext_plugin.mo
|
636
649
|
- samples/rails/locale/it/LC_MESSAGES
|
637
650
|
- samples/rails/locale/it/LC_MESSAGES/blog.mo
|
638
651
|
- samples/rails/locale/ja/LC_MESSAGES
|
639
652
|
- samples/rails/locale/ja/LC_MESSAGES/blog.mo
|
653
|
+
- samples/rails/locale/ja/LC_MESSAGES/gettext_plugin.mo
|
640
654
|
- samples/rails/locale/ko/LC_MESSAGES
|
641
655
|
- samples/rails/locale/ko/LC_MESSAGES/blog.mo
|
656
|
+
- samples/rails/locale/ko/LC_MESSAGES/gettext_plugin.mo
|
642
657
|
- samples/rails/locale/nl/LC_MESSAGES
|
643
658
|
- samples/rails/locale/nl/LC_MESSAGES/blog.mo
|
659
|
+
- samples/rails/locale/nl/LC_MESSAGES/gettext_plugin.mo
|
644
660
|
- samples/rails/locale/pt_BR/LC_MESSAGES
|
645
661
|
- samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo
|
662
|
+
- samples/rails/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo
|
646
663
|
- samples/rails/locale/ru/LC_MESSAGES
|
647
664
|
- samples/rails/locale/ru/LC_MESSAGES/blog.mo
|
665
|
+
- samples/rails/locale/ru/LC_MESSAGES/gettext_plugin.mo
|
648
666
|
- samples/rails/locale/zh/LC_MESSAGES
|
649
667
|
- samples/rails/locale/zh/LC_MESSAGES/blog.mo
|
650
668
|
- samples/rails/po/blog.pot
|
@@ -709,13 +727,10 @@ files:
|
|
709
727
|
- samples/rails/script/process/spinner
|
710
728
|
- samples/rails/test/fixtures
|
711
729
|
- samples/rails/test/functional
|
712
|
-
- samples/rails/test/mocks
|
713
730
|
- samples/rails/test/test_helper.rb
|
714
731
|
- samples/rails/test/unit
|
715
732
|
- samples/rails/test/fixtures/articles.yml
|
716
733
|
- samples/rails/test/functional/blog_controller_test.rb
|
717
|
-
- samples/rails/test/mocks/development
|
718
|
-
- samples/rails/test/mocks/test
|
719
734
|
- samples/rails/test/unit/article_test.rb
|
720
735
|
- samples/rails/vendor/plugins
|
721
736
|
- samples/rails/vendor/plugins/gettext
|
@@ -765,7 +780,6 @@ files:
|
|
765
780
|
- samples/rails/vendor/plugins/gettext/po/cs
|
766
781
|
- samples/rails/vendor/plugins/gettext/po/de
|
767
782
|
- samples/rails/vendor/plugins/gettext/po/el
|
768
|
-
- samples/rails/vendor/plugins/gettext/po/en
|
769
783
|
- samples/rails/vendor/plugins/gettext/po/es
|
770
784
|
- samples/rails/vendor/plugins/gettext/po/fr
|
771
785
|
- samples/rails/vendor/plugins/gettext/po/gettext_plugin.pot
|