gettext 1.6.0-mswin32 → 1.7.0-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. data/ChangeLog +65 -0
  2. data/NEWS +20 -0
  3. data/README +9 -9
  4. data/Rakefile +4 -4
  5. data/data/locale/cs/LC_MESSAGES/rails.mo +0 -0
  6. data/data/locale/cs/LC_MESSAGES/rgettext.mo +0 -0
  7. data/data/locale/de/LC_MESSAGES/rails.mo +0 -0
  8. data/data/locale/de/LC_MESSAGES/rgettext.mo +0 -0
  9. data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
  10. data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
  11. data/data/locale/es/LC_MESSAGES/rails.mo +0 -0
  12. data/data/locale/es/LC_MESSAGES/rgettext.mo +0 -0
  13. data/data/locale/fr/LC_MESSAGES/rails.mo +0 -0
  14. data/data/locale/fr/LC_MESSAGES/rgettext.mo +0 -0
  15. data/data/locale/it/LC_MESSAGES/rails.mo +0 -0
  16. data/data/locale/it/LC_MESSAGES/rgettext.mo +0 -0
  17. data/data/locale/ja/LC_MESSAGES/rails.mo +0 -0
  18. data/data/locale/ja/LC_MESSAGES/rgettext.mo +0 -0
  19. data/data/locale/ko/LC_MESSAGES/rails.mo +0 -0
  20. data/data/locale/ko/LC_MESSAGES/rgettext.mo +0 -0
  21. data/data/locale/nl/LC_MESSAGES/rails.mo +0 -0
  22. data/data/locale/nl/LC_MESSAGES/rgettext.mo +0 -0
  23. data/data/locale/pt_BR/LC_MESSAGES/rails.mo +0 -0
  24. data/data/locale/pt_BR/LC_MESSAGES/rgettext.mo +0 -0
  25. data/data/locale/ru/LC_MESSAGES/rails.mo +0 -0
  26. data/data/locale/ru/LC_MESSAGES/rgettext.mo +0 -0
  27. data/data/locale/sv/LC_MESSAGES/rgettext.mo +0 -0
  28. data/data/locale/zh/LC_MESSAGES/rails.mo +0 -0
  29. data/data/locale/zh/LC_MESSAGES/rgettext.mo +0 -0
  30. data/ext/gettext/Makefile +178 -0
  31. data/ext/gettext/locale_system-i386-mswin32.def +2 -0
  32. data/ext/gettext/locale_system-i386-mswin32.exp +0 -0
  33. data/ext/gettext/locale_system-i386-mswin32.lib +0 -0
  34. data/ext/gettext/locale_system-i386-mswin32.pdb +0 -0
  35. data/ext/gettext/locale_system.obj +0 -0
  36. data/ext/gettext/locale_system.so +0 -0
  37. data/ext/gettext/mkmf.log +16 -0
  38. data/ext/gettext/vc70.pdb +0 -0
  39. data/lib/gettext.rb +38 -12
  40. data/lib/gettext/container.rb +2 -2
  41. data/lib/gettext/iconv.rb +2 -2
  42. data/lib/gettext/locale_cgi.rb +3 -2
  43. data/lib/gettext/locale_object.rb +8 -8
  44. data/lib/gettext/locale_posix.rb +2 -2
  45. data/lib/gettext/locale_table_win32.rb +3 -3
  46. data/lib/gettext/locale_win32.rb +2 -2
  47. data/lib/gettext/mo.rb +5 -2
  48. data/lib/gettext/parser/activerecord.rb +27 -17
  49. data/lib/gettext/parser/glade.rb +7 -11
  50. data/lib/gettext/parser/ruby.rb +2 -3
  51. data/lib/gettext/poparser.rb +298 -298
  52. data/lib/gettext/rails.rb +220 -85
  53. data/lib/gettext/rgettext.rb +2 -2
  54. data/lib/gettext/rmsgfmt.rb +3 -3
  55. data/lib/gettext/rmsgmerge.rb +2 -2
  56. data/lib/gettext/string.rb +2 -1
  57. data/lib/gettext/textdomain.rb +5 -2
  58. data/lib/gettext/textdomainmanager.rb +3 -3
  59. data/lib/gettext/version.rb +1 -1
  60. data/lib/locale_system.so +0 -0
  61. data/po/cs/rails.po +63 -22
  62. data/po/cs/rgettext.po +71 -37
  63. data/po/de/rails.po +54 -16
  64. data/po/de/rgettext.po +56 -22
  65. data/po/el/rails.po +54 -16
  66. data/po/el/rgettext.po +56 -22
  67. data/po/es/rails.po +57 -20
  68. data/po/es/rgettext.po +70 -30
  69. data/po/fr/rails.po +57 -19
  70. data/po/fr/rgettext.po +61 -25
  71. data/po/it/rails.po +54 -16
  72. data/po/it/rgettext.po +56 -22
  73. data/po/ja/rails.po +55 -18
  74. data/po/ja/rgettext.po +58 -24
  75. data/po/ko/rails.po +68 -33
  76. data/po/ko/rgettext.po +77 -37
  77. data/po/nl/rails.po +61 -22
  78. data/po/nl/rgettext.po +72 -36
  79. data/po/pt_BR/rails.po +54 -16
  80. data/po/pt_BR/rgettext.po +56 -22
  81. data/po/rails.pot +54 -16
  82. data/po/rgettext.pot +55 -21
  83. data/po/ru/rails.po +68 -26
  84. data/po/ru/rgettext.po +70 -30
  85. data/po/sv/rgettext.po +55 -21
  86. data/po/zh/rails.po +51 -16
  87. data/po/zh/rgettext.po +59 -23
  88. data/samples/rails/app/controllers/application.rb +7 -1
  89. data/samples/rails/app/models/article.rb +0 -6
  90. data/samples/rails/locale/cs/LC_MESSAGES/gettext_plugin.mo +0 -0
  91. data/samples/rails/locale/de/LC_MESSAGES/gettext_plugin.mo +0 -0
  92. data/samples/rails/locale/el/LC_MESSAGES/gettext_plugin.mo +0 -0
  93. data/samples/rails/locale/es/LC_MESSAGES/gettext_plugin.mo +0 -0
  94. data/samples/rails/locale/fr/LC_MESSAGES/gettext_plugin.mo +0 -0
  95. data/samples/rails/locale/ja/LC_MESSAGES/gettext_plugin.mo +0 -0
  96. data/samples/rails/locale/ko/LC_MESSAGES/gettext_plugin.mo +0 -0
  97. data/samples/rails/locale/nl/LC_MESSAGES/gettext_plugin.mo +0 -0
  98. data/samples/rails/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo +0 -0
  99. data/samples/rails/locale/ru/LC_MESSAGES/gettext_plugin.mo +0 -0
  100. data/src/poparser.ry +1 -1
  101. data/test/gettext_test.rb +1 -1
  102. data/test/gettext_test_parser.rb +0 -1
  103. data/test/test_rubyparser.rb +0 -11
  104. metadata +21 -7
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 is existed.\n")
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
- GetText.setlocale("fr")
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")
@@ -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
@@ -84,14 +84,3 @@ EOF
84
84
 
85
85
 
86
86
  end
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
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.6.0
7
- date: 2006-06-09 00:00:00 +09:00
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/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