gettext 1.1.0-mswin32 → 1.1.1-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.
Files changed (183) hide show
  1. data/ChangeLog +44 -0
  2. data/NEWS +6 -0
  3. data/README +17 -11
  4. data/bin/rgettext +1 -1
  5. data/bin/rmsgfmt +1 -1
  6. data/bin/rmsgmerge +1 -1
  7. data/data/locale/el/LC_MESSAGES/rails.mo +0 -0
  8. data/data/locale/el/LC_MESSAGES/rgettext.mo +0 -0
  9. data/ext/gettext/gettext/_locale.c +1 -1
  10. data/ext/gettext/gettext/_locale.exp +0 -0
  11. data/ext/gettext/gettext/_locale.lib +0 -0
  12. data/ext/gettext/gettext/_locale.obj +0 -0
  13. data/ext/gettext/gettext/_locale.pdb +0 -0
  14. data/ext/gettext/gettext/_locale.so +0 -0
  15. data/ext/gettext/gettext/mkmf.log +1 -1
  16. data/ext/gettext/gettext/vc70.pdb +0 -0
  17. data/lib/_locale.so +0 -0
  18. data/lib/gettext/locale_win32.rb +2 -2
  19. data/lib/gettext/parser/activerecord.rb +10 -9
  20. data/lib/gettext/parser/erb.rb +15 -2
  21. data/lib/gettext/parser/glade.rb +5 -2
  22. data/lib/gettext/poparser.rb +2 -2
  23. data/lib/gettext/rails.rb +24 -15
  24. data/lib/gettext/version.rb +2 -2
  25. data/po/el/rails.po +79 -0
  26. data/po/el/rgettext.po +98 -0
  27. data/po/it/messages.mo +0 -0
  28. data/samples/cgi/Rakefile +20 -2
  29. data/samples/cgi/index.cgi +1 -1
  30. data/samples/cgi/locale/cs/LC_MESSAGES/helloerb1.mo +0 -0
  31. data/samples/cgi/locale/cs/LC_MESSAGES/helloerb2.mo +0 -0
  32. data/samples/cgi/locale/cs/LC_MESSAGES/hellolib.mo +0 -0
  33. data/samples/cgi/locale/cs/LC_MESSAGES/main.mo +0 -0
  34. data/samples/cgi/locale/de/LC_MESSAGES/helloerb1.mo +0 -0
  35. data/samples/cgi/locale/de/LC_MESSAGES/helloerb2.mo +0 -0
  36. data/samples/cgi/locale/de/LC_MESSAGES/hellolib.mo +0 -0
  37. data/samples/cgi/locale/de/LC_MESSAGES/main.mo +0 -0
  38. data/samples/cgi/locale/el/LC_MESSAGES/helloerb1.mo +0 -0
  39. data/samples/cgi/locale/el/LC_MESSAGES/helloerb2.mo +0 -0
  40. data/samples/cgi/locale/el/LC_MESSAGES/hellolib.mo +0 -0
  41. data/samples/cgi/locale/el/LC_MESSAGES/main.mo +0 -0
  42. data/samples/cgi/locale/es/LC_MESSAGES/helloerb1.mo +0 -0
  43. data/samples/cgi/locale/es/LC_MESSAGES/helloerb2.mo +0 -0
  44. data/samples/cgi/locale/es/LC_MESSAGES/hellolib.mo +0 -0
  45. data/samples/cgi/locale/es/LC_MESSAGES/main.mo +0 -0
  46. data/samples/cgi/locale/fr/LC_MESSAGES/helloerb1.mo +0 -0
  47. data/samples/cgi/locale/fr/LC_MESSAGES/helloerb2.mo +0 -0
  48. data/samples/cgi/locale/fr/LC_MESSAGES/hellolib.mo +0 -0
  49. data/samples/cgi/locale/fr/LC_MESSAGES/main.mo +0 -0
  50. data/samples/cgi/locale/it/LC_MESSAGES/helloerb1.mo +0 -0
  51. data/samples/cgi/locale/it/LC_MESSAGES/helloerb2.mo +0 -0
  52. data/samples/cgi/locale/it/LC_MESSAGES/hellolib.mo +0 -0
  53. data/samples/cgi/locale/it/LC_MESSAGES/main.mo +0 -0
  54. data/samples/cgi/locale/ja/LC_MESSAGES/helloerb1.mo +0 -0
  55. data/samples/cgi/locale/ja/LC_MESSAGES/helloerb2.mo +0 -0
  56. data/samples/cgi/locale/ja/LC_MESSAGES/hellolib.mo +0 -0
  57. data/samples/cgi/locale/ja/LC_MESSAGES/main.mo +0 -0
  58. data/samples/cgi/locale/ko/LC_MESSAGES/helloerb1.mo +0 -0
  59. data/samples/cgi/locale/ko/LC_MESSAGES/helloerb2.mo +0 -0
  60. data/samples/cgi/locale/ko/LC_MESSAGES/hellolib.mo +0 -0
  61. data/samples/cgi/locale/ko/LC_MESSAGES/main.mo +0 -0
  62. data/samples/cgi/locale/nl/LC_MESSAGES/helloerb1.mo +0 -0
  63. data/samples/cgi/locale/nl/LC_MESSAGES/helloerb2.mo +0 -0
  64. data/samples/cgi/locale/nl/LC_MESSAGES/hellolib.mo +0 -0
  65. data/samples/cgi/locale/nl/LC_MESSAGES/main.mo +0 -0
  66. data/samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb1.mo +0 -0
  67. data/samples/cgi/locale/pt_BR/LC_MESSAGES/helloerb2.mo +0 -0
  68. data/samples/cgi/locale/pt_BR/LC_MESSAGES/hellolib.mo +0 -0
  69. data/samples/cgi/locale/pt_BR/LC_MESSAGES/main.mo +0 -0
  70. data/samples/cgi/po/cs/helloerb1.po +14 -19
  71. data/samples/cgi/po/cs/helloerb2.po +11 -11
  72. data/samples/cgi/po/cs/hellolib.po +4 -4
  73. data/samples/cgi/po/cs/main.po +30 -23
  74. data/samples/cgi/po/de/helloerb1.po +18 -17
  75. data/samples/cgi/po/de/helloerb2.po +12 -12
  76. data/samples/cgi/po/de/hellolib.po +7 -6
  77. data/samples/cgi/po/de/main.po +35 -25
  78. data/samples/cgi/po/el/helloerb1.po +60 -0
  79. data/samples/cgi/po/el/helloerb2.po +51 -0
  80. data/samples/cgi/po/el/hellolib.po +23 -0
  81. data/samples/cgi/po/el/main.po +84 -0
  82. data/samples/cgi/po/es/helloerb1.po +13 -13
  83. data/samples/cgi/po/es/helloerb2.po +11 -11
  84. data/samples/cgi/po/es/hellolib.po +3 -3
  85. data/samples/cgi/po/es/main.po +33 -24
  86. data/samples/cgi/po/fr/helloerb1.po +14 -14
  87. data/samples/cgi/po/fr/helloerb2.po +13 -13
  88. data/samples/cgi/po/fr/hellolib.po +3 -3
  89. data/samples/cgi/po/fr/main.po +38 -28
  90. data/samples/cgi/po/helloerb1.pot +13 -13
  91. data/samples/cgi/po/helloerb2.pot +10 -10
  92. data/samples/cgi/po/hellolib.pot +4 -3
  93. data/samples/cgi/po/it/helloerb1.po +13 -14
  94. data/samples/cgi/po/it/helloerb2.po +9 -9
  95. data/samples/cgi/po/it/hellolib.po +2 -2
  96. data/samples/cgi/po/it/main.po +30 -22
  97. data/samples/cgi/po/it/messages.mo +0 -0
  98. data/samples/cgi/po/ja/helloerb1.po +14 -13
  99. data/samples/cgi/po/ja/helloerb2.po +10 -10
  100. data/samples/cgi/po/ja/hellolib.po +5 -4
  101. data/samples/cgi/po/ja/main.po +31 -22
  102. data/samples/cgi/po/ko/helloerb1.po +15 -13
  103. data/samples/cgi/po/ko/helloerb2.po +11 -11
  104. data/samples/cgi/po/ko/hellolib.po +5 -3
  105. data/samples/cgi/po/ko/main.po +33 -22
  106. data/samples/cgi/po/main.pot +23 -19
  107. data/samples/cgi/po/nl/helloerb1.po +16 -15
  108. data/samples/cgi/po/nl/helloerb2.po +11 -11
  109. data/samples/cgi/po/nl/hellolib.po +4 -4
  110. data/samples/cgi/po/nl/main.po +33 -23
  111. data/samples/cgi/po/pt_BR/helloerb1.po +13 -13
  112. data/samples/cgi/po/pt_BR/helloerb2.po +9 -9
  113. data/samples/cgi/po/pt_BR/hellolib.po +3 -2
  114. data/samples/cgi/po/pt_BR/main.po +30 -21
  115. data/samples/locale/el/LC_MESSAGES/hello.mo +0 -0
  116. data/samples/locale/el/LC_MESSAGES/hello2.mo +0 -0
  117. data/samples/locale/el/LC_MESSAGES/hello_noop.mo +0 -0
  118. data/samples/locale/el/LC_MESSAGES/hello_plural.mo +0 -0
  119. data/samples/locale/el/LC_MESSAGES/helloglade2.mo +0 -0
  120. data/samples/locale/el/LC_MESSAGES/hellogtk.mo +0 -0
  121. data/samples/locale/el/LC_MESSAGES/hellotk.mo +0 -0
  122. data/samples/po/el/hello.po +23 -0
  123. data/samples/po/el/hello2.po +31 -0
  124. data/samples/po/el/hello_noop.po +27 -0
  125. data/samples/po/el/hello_plural.po +25 -0
  126. data/samples/po/el/helloglade2.po +31 -0
  127. data/samples/po/el/hellogtk.po +22 -0
  128. data/samples/po/el/hellotk.po +23 -0
  129. data/samples/po/hello.pot +4 -2
  130. data/samples/po/hello2.pot +4 -2
  131. data/samples/po/hello_noop.pot +4 -2
  132. data/samples/po/hello_plural.pot +3 -3
  133. data/samples/po/helloglade2.pot +2 -2
  134. data/samples/po/hellogtk.pot +5 -2
  135. data/samples/po/hellotk.pot +1 -1
  136. data/samples/rails/README +6 -0
  137. data/samples/rails/app/controllers/blog_controller.rb +1 -1
  138. data/samples/rails/config/database.yml +5 -1
  139. data/samples/rails/locale/cs/LC_MESSAGES/blog.mo +0 -0
  140. data/samples/rails/locale/cs/LC_MESSAGES/gettext_plugin.mo +0 -0
  141. data/samples/rails/locale/de/LC_MESSAGES/blog.mo +0 -0
  142. data/samples/rails/locale/de/LC_MESSAGES/gettext_plugin.mo +0 -0
  143. data/samples/rails/locale/el/LC_MESSAGES/blog.mo +0 -0
  144. data/samples/rails/locale/el/LC_MESSAGES/gettext_plugin.mo +0 -0
  145. data/samples/rails/locale/en/LC_MESSAGES/blog.mo +0 -0
  146. data/samples/rails/locale/es/LC_MESSAGES/blog.mo +0 -0
  147. data/samples/rails/locale/es/LC_MESSAGES/gettext_plugin.mo +0 -0
  148. data/samples/rails/locale/fr/LC_MESSAGES/blog.mo +0 -0
  149. data/samples/rails/locale/fr/LC_MESSAGES/gettext_plugin.mo +0 -0
  150. data/samples/rails/locale/ja/LC_MESSAGES/blog.mo +0 -0
  151. data/samples/rails/locale/ja/LC_MESSAGES/gettext_plugin.mo +0 -0
  152. data/samples/rails/locale/ko/LC_MESSAGES/blog.mo +0 -0
  153. data/samples/rails/locale/ko/LC_MESSAGES/gettext_plugin.mo +0 -0
  154. data/samples/rails/locale/nl/LC_MESSAGES/blog.mo +0 -0
  155. data/samples/rails/locale/nl/LC_MESSAGES/gettext_plugin.mo +0 -0
  156. data/samples/rails/locale/pt_BR/LC_MESSAGES/blog.mo +0 -0
  157. data/samples/rails/locale/pt_BR/LC_MESSAGES/gettext_plugin.mo +0 -0
  158. data/samples/rails/po/blog.pot +4 -4
  159. data/samples/rails/po/cs/blog.po +6 -6
  160. data/samples/rails/po/cs/gettext_plugin.po +3 -3
  161. data/samples/rails/po/de/blog.po +9 -6
  162. data/samples/rails/po/de/gettext_plugin.po +5 -3
  163. data/samples/rails/po/el/blog.po +109 -0
  164. data/samples/rails/po/el/gettext_plugin.po +27 -0
  165. data/samples/rails/po/en/blog.po +4 -4
  166. data/samples/rails/po/es/blog.po +7 -6
  167. data/samples/rails/po/es/gettext_plugin.po +4 -4
  168. data/samples/rails/po/fr/blog.po +5 -5
  169. data/samples/rails/po/fr/gettext_plugin.po +3 -3
  170. data/samples/rails/po/gettext_plugin.pot +3 -3
  171. data/samples/rails/po/ja/blog.po +5 -5
  172. data/samples/rails/po/ja/gettext_plugin.po +3 -3
  173. data/samples/rails/po/ko/blog.po +9 -5
  174. data/samples/rails/po/ko/gettext_plugin.po +6 -4
  175. data/samples/rails/po/nl/blog.po +12 -15
  176. data/samples/rails/po/nl/gettext_plugin.po +5 -5
  177. data/samples/rails/po/pt_BR/blog.po +5 -5
  178. data/samples/rails/po/pt_BR/gettext_plugin.po +3 -3
  179. data/samples/rails/test/functional/blog_controller_test.rb +11 -1
  180. data/test/gettext_test_parser.rb +16 -0
  181. data/test/test_erb.rxml +16 -0
  182. metadata +47 -3
  183. data/ext/gettext/gettext/_locale.BAK +0 -86
@@ -9,7 +9,7 @@
9
9
  msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: gettext_plugin 1.1.0\n"
12
- "POT-Creation-Date: 2005-12-23 01:29+0900\n"
12
+ "POT-Creation-Date: 2006-01-11 00:45+0900\n"
13
13
  "PO-Revision-Date: 2005-12-17 10:12-0300\n"
14
14
  "Last-Translator: Joao Pedrosa <joaopedrosa@gmail.com>\n"
15
15
  "Language-Team: Portuguese(Brazil)\n"
@@ -18,10 +18,10 @@ msgstr ""
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
20
 
21
- #: vendor/plugins/gettext/lib/gettext_plugin.rb:24
21
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:25
22
22
  msgid "Select locale"
23
23
  msgstr "Selecione o 'locale'"
24
24
 
25
- #: vendor/plugins/gettext/lib/gettext_plugin.rb:36
25
+ #: vendor/plugins/gettext/lib/gettext_plugin.rb:37
26
26
  msgid "Cookie &quot;lang&quot; is set: %s"
27
27
  msgstr "Cookie &quot;lang&quot; está configurado: %s"
@@ -11,6 +11,12 @@ class BlogControllerTest < Test::Unit::TestCase
11
11
  @controller = BlogController.new
12
12
  @request = ActionController::TestRequest.new
13
13
  @response = ActionController::TestResponse.new
14
+
15
+ article = Article.find(1)
16
+ article.update_attributes("title"=>"aaaaaaaaaa",
17
+ "lastupdate"=> Time.now,
18
+ "description"=>"aaaaaaaaaa")
19
+ article.save
14
20
  end
15
21
 
16
22
  def test_index
@@ -50,7 +56,10 @@ class BlogControllerTest < Test::Unit::TestCase
50
56
  def test_create
51
57
  num_articles = Article.count
52
58
 
53
- post :create, :article => {}
59
+ post :create, :article => {
60
+ "title"=>"aaaaaaaaaa",
61
+ "lastupdate"=> Time.now,
62
+ "description"=>"aaaaaaaaaa"}
54
63
 
55
64
  assert_response :redirect
56
65
  assert_redirected_to :action => 'list'
@@ -85,4 +94,5 @@ class BlogControllerTest < Test::Unit::TestCase
85
94
  Article.find(1)
86
95
  }
87
96
  end
97
+
88
98
  end
@@ -2,6 +2,7 @@ require 'test/unit'
2
2
  require 'gettext/parser/ruby'
3
3
  require 'gettext/parser/glade'
4
4
  require 'gettext/parser/erb'
5
+ require 'gettext/rgettext'
5
6
 
6
7
  class TestGetTextParser < Test::Unit::TestCase
7
8
  def test_ruby
@@ -80,4 +81,19 @@ class TestGetTextParser < Test::Unit::TestCase
80
81
  assert_equal(["ccc1\000ccc2", 'test_erb.rhtml:13'], ary[3])
81
82
  end
82
83
 
84
+ def test_rgettext_parse
85
+ GetText::ErbParser.init(:extnames => ['.rhtml', '.rxml'])
86
+ ary = GetText::RGetText.parse('test_erb.rhtml')
87
+ assert_equal(['aaa', 'test_erb.rhtml:8'], ary[0])
88
+ assert_equal(['aaa\n', 'test_erb.rhtml:11'], ary[1])
89
+ assert_equal(['bbb', 'test_erb.rhtml:12'], ary[2])
90
+ assert_equal(["ccc1\000ccc2", 'test_erb.rhtml:13'], ary[3])
91
+
92
+ ary = GetText::RGetText.parse('test_erb.rxml')
93
+ assert_equal(['aaa', 'test_erb.rxml:9'], ary[0])
94
+ assert_equal(['aaa\n', 'test_erb.rxml:12'], ary[1])
95
+ assert_equal(['bbb', 'test_erb.rxml:13'], ary[2])
96
+ assert_equal(["ccc1\000ccc2", 'test_erb.rxml:14'], ary[3])
97
+ end
98
+
83
99
  end
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <%
3
+ require 'gettext'
4
+ include GetText
5
+ bindtextdomain("helloerb", "locale")
6
+ %>
7
+ <html>
8
+ <head>
9
+ <title><%= _("aaa") %></title>
10
+ </head>
11
+ <body>
12
+ <h1><%= _("aaa\n") %></h1>
13
+ <p><%= N_("bbb") %></p>
14
+ <p><%= n_("ccc1", "ccc2", 1) %></p>
15
+ </body>
16
+ </html>
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: gettext
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2005-12-29
6
+ version: 1.1.1
7
+ date: 2006-01-14
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
@@ -50,6 +50,7 @@ files:
50
50
  - data/locale
51
51
  - data/locale/cs
52
52
  - data/locale/de
53
+ - data/locale/el
53
54
  - data/locale/es
54
55
  - data/locale/fr
55
56
  - data/locale/it
@@ -64,6 +65,9 @@ files:
64
65
  - data/locale/de/LC_MESSAGES
65
66
  - data/locale/de/LC_MESSAGES/rails.mo
66
67
  - data/locale/de/LC_MESSAGES/rgettext.mo
68
+ - data/locale/el/LC_MESSAGES
69
+ - data/locale/el/LC_MESSAGES/rails.mo
70
+ - data/locale/el/LC_MESSAGES/rgettext.mo
67
71
  - data/locale/es/LC_MESSAGES
68
72
  - data/locale/es/LC_MESSAGES/rails.mo
69
73
  - data/locale/es/LC_MESSAGES/rgettext.mo
@@ -94,7 +98,6 @@ files:
94
98
  - ext/gettext/gettext/mkmf.log
95
99
  - ext/gettext/gettext/vc70.pdb
96
100
  - ext/gettext/gettext/_locale-i386-mswin32.def
97
- - ext/gettext/gettext/_locale.BAK
98
101
  - ext/gettext/gettext/_locale.c
99
102
  - ext/gettext/gettext/_locale.exp
100
103
  - ext/gettext/gettext/_locale.lib
@@ -129,6 +132,7 @@ files:
129
132
  - lib/gettext/parser/ruby.rb
130
133
  - po/cs
131
134
  - po/de
135
+ - po/el
132
136
  - po/es
133
137
  - po/fr
134
138
  - po/it
@@ -143,10 +147,13 @@ files:
143
147
  - po/cs/rgettext.po
144
148
  - po/de/rails.po
145
149
  - po/de/rgettext.po
150
+ - po/el/rails.po
151
+ - po/el/rgettext.po
146
152
  - po/es/rails.po
147
153
  - po/es/rgettext.po
148
154
  - po/fr/rails.po
149
155
  - po/fr/rgettext.po
156
+ - po/it/messages.mo
150
157
  - po/it/rgettext.po
151
158
  - po/ja/rails.po
152
159
  - po/ja/rgettext.po
@@ -189,6 +196,7 @@ files:
189
196
  - samples/cgi/ruby.bat
190
197
  - samples/cgi/locale/cs
191
198
  - samples/cgi/locale/de
199
+ - samples/cgi/locale/el
192
200
  - samples/cgi/locale/es
193
201
  - samples/cgi/locale/fr
194
202
  - samples/cgi/locale/it
@@ -206,6 +214,11 @@ files:
206
214
  - samples/cgi/locale/de/LC_MESSAGES/helloerb2.mo
207
215
  - samples/cgi/locale/de/LC_MESSAGES/hellolib.mo
208
216
  - samples/cgi/locale/de/LC_MESSAGES/main.mo
217
+ - samples/cgi/locale/el/LC_MESSAGES
218
+ - samples/cgi/locale/el/LC_MESSAGES/helloerb1.mo
219
+ - samples/cgi/locale/el/LC_MESSAGES/helloerb2.mo
220
+ - samples/cgi/locale/el/LC_MESSAGES/hellolib.mo
221
+ - samples/cgi/locale/el/LC_MESSAGES/main.mo
209
222
  - samples/cgi/locale/es/LC_MESSAGES
210
223
  - samples/cgi/locale/es/LC_MESSAGES/helloerb1.mo
211
224
  - samples/cgi/locale/es/LC_MESSAGES/helloerb2.mo
@@ -243,6 +256,7 @@ files:
243
256
  - samples/cgi/locale/pt_BR/LC_MESSAGES/main.mo
244
257
  - samples/cgi/po/cs
245
258
  - samples/cgi/po/de
259
+ - samples/cgi/po/el
246
260
  - samples/cgi/po/es
247
261
  - samples/cgi/po/fr
248
262
  - samples/cgi/po/helloerb1.pot
@@ -262,6 +276,10 @@ files:
262
276
  - samples/cgi/po/de/helloerb2.po
263
277
  - samples/cgi/po/de/hellolib.po
264
278
  - samples/cgi/po/de/main.po
279
+ - samples/cgi/po/el/helloerb1.po
280
+ - samples/cgi/po/el/helloerb2.po
281
+ - samples/cgi/po/el/hellolib.po
282
+ - samples/cgi/po/el/main.po
265
283
  - samples/cgi/po/es/helloerb1.po
266
284
  - samples/cgi/po/es/helloerb2.po
267
285
  - samples/cgi/po/es/hellolib.po
@@ -274,6 +292,7 @@ files:
274
292
  - samples/cgi/po/it/helloerb2.po
275
293
  - samples/cgi/po/it/hellolib.po
276
294
  - samples/cgi/po/it/main.po
295
+ - samples/cgi/po/it/messages.mo
277
296
  - samples/cgi/po/ja/helloerb1.po
278
297
  - samples/cgi/po/ja/helloerb2.po
279
298
  - samples/cgi/po/ja/hellolib.po
@@ -292,6 +311,7 @@ files:
292
311
  - samples/cgi/po/pt_BR/main.po
293
312
  - samples/locale/cs
294
313
  - samples/locale/de
314
+ - samples/locale/el
295
315
  - samples/locale/es
296
316
  - samples/locale/fr
297
317
  - samples/locale/it
@@ -316,6 +336,14 @@ files:
316
336
  - samples/locale/de/LC_MESSAGES/hellotk.mo
317
337
  - samples/locale/de/LC_MESSAGES/hello_noop.mo
318
338
  - samples/locale/de/LC_MESSAGES/hello_plural.mo
339
+ - samples/locale/el/LC_MESSAGES
340
+ - samples/locale/el/LC_MESSAGES/hello.mo
341
+ - samples/locale/el/LC_MESSAGES/hello2.mo
342
+ - samples/locale/el/LC_MESSAGES/helloglade2.mo
343
+ - samples/locale/el/LC_MESSAGES/hellogtk.mo
344
+ - samples/locale/el/LC_MESSAGES/hellotk.mo
345
+ - samples/locale/el/LC_MESSAGES/hello_noop.mo
346
+ - samples/locale/el/LC_MESSAGES/hello_plural.mo
319
347
  - samples/locale/es/LC_MESSAGES
320
348
  - samples/locale/es/LC_MESSAGES/hello.mo
321
349
  - samples/locale/es/LC_MESSAGES/hello2.mo
@@ -382,6 +410,7 @@ files:
382
410
  - samples/locale/sv/LC_MESSAGES/hello_plural.mo
383
411
  - samples/po/cs
384
412
  - samples/po/de
413
+ - samples/po/el
385
414
  - samples/po/es
386
415
  - samples/po/fr
387
416
  - samples/po/hello.pot
@@ -411,6 +440,13 @@ files:
411
440
  - samples/po/de/hellotk.po
412
441
  - samples/po/de/hello_noop.po
413
442
  - samples/po/de/hello_plural.po
443
+ - samples/po/el/hello.po
444
+ - samples/po/el/hello2.po
445
+ - samples/po/el/helloglade2.po
446
+ - samples/po/el/hellogtk.po
447
+ - samples/po/el/hellotk.po
448
+ - samples/po/el/hello_noop.po
449
+ - samples/po/el/hello_plural.po
414
450
  - samples/po/es/hello.po
415
451
  - samples/po/es/hello2.po
416
452
  - samples/po/es/helloglade2.po
@@ -507,6 +543,7 @@ files:
507
543
  - samples/rails/db/postgresql.sql
508
544
  - samples/rails/locale/cs
509
545
  - samples/rails/locale/de
546
+ - samples/rails/locale/el
510
547
  - samples/rails/locale/en
511
548
  - samples/rails/locale/es
512
549
  - samples/rails/locale/fr
@@ -520,6 +557,9 @@ files:
520
557
  - samples/rails/locale/de/LC_MESSAGES
521
558
  - samples/rails/locale/de/LC_MESSAGES/blog.mo
522
559
  - samples/rails/locale/de/LC_MESSAGES/gettext_plugin.mo
560
+ - samples/rails/locale/el/LC_MESSAGES
561
+ - samples/rails/locale/el/LC_MESSAGES/blog.mo
562
+ - samples/rails/locale/el/LC_MESSAGES/gettext_plugin.mo
523
563
  - samples/rails/locale/en/LC_MESSAGES
524
564
  - samples/rails/locale/en/LC_MESSAGES/blog.mo
525
565
  - samples/rails/locale/es/LC_MESSAGES
@@ -543,6 +583,7 @@ files:
543
583
  - samples/rails/po/blog.pot
544
584
  - samples/rails/po/cs
545
585
  - samples/rails/po/de
586
+ - samples/rails/po/el
546
587
  - samples/rails/po/en
547
588
  - samples/rails/po/es
548
589
  - samples/rails/po/fr
@@ -555,6 +596,8 @@ files:
555
596
  - samples/rails/po/cs/gettext_plugin.po
556
597
  - samples/rails/po/de/blog.po
557
598
  - samples/rails/po/de/gettext_plugin.po
599
+ - samples/rails/po/el/blog.po
600
+ - samples/rails/po/el/gettext_plugin.po
558
601
  - samples/rails/po/en/blog.po
559
602
  - samples/rails/po/es/blog.po
560
603
  - samples/rails/po/es/gettext_plugin.po
@@ -630,6 +673,7 @@ files:
630
673
  - test/testlib3.rb
631
674
  - test/testlib4.rb
632
675
  - test/test_erb.rhtml
676
+ - test/test_erb.rxml
633
677
  - test/test_gladeparser.glade
634
678
  - test/test_rubyparser.rb
635
679
  - test/test_rubyparser_N.rb
@@ -1,86 +0,0 @@
1
- /* -*- c-file-style: "ruby"; tab-width: 4 -*-
2
- *
3
- * Copyright (C) 2002-2005 Masao Mutoh
4
- *
5
- * You may redistribute it and/or modify it under the same
6
- * license terms as Ruby.
7
- *
8
- * $Id: _locale.c,v 1.2 2005/08/20 17:05:34 mutoh Exp $
9
- */
10
-
11
- #include "ruby.h"
12
-
13
- #if defined HAVE_WINDOWS_H
14
- # include <windows.h>
15
- #else
16
- # if defined HAVE_SETLOCALE
17
- # include <locale.h>
18
- # endif
19
- # if defined HAVE_NL_LANGINFO
20
- # include <langinfo.h>
21
- # endif
22
- #endif
23
- #ifndef StringValuePtr
24
- #define StringValuePtr(s) STR2CSTR(s)
25
- #endif
26
-
27
- #if defined HAVE_WINDOWS_H
28
- static VALUE
29
- gt_locale_id_win32(self)
30
- VALUE self;
31
- {
32
- int lcid, pri_id, sub_id;
33
- lcid = GetUserDefaultLangID();
34
- pri_id = lcid & 0x3ff;
35
- sub_id = lcid >> 10;
36
- return rb_assoc_new(INT2FIX(pri_id), INT2FIX(sub_id));
37
- }
38
- #endif
39
- static VALUE
40
- gt_setlocale(self, type, locale)
41
- VALUE self, type, locale;
42
- {
43
- # if defined HAVE_SETLOCALE
44
- char* ret = setlocale(NUM2INT(type),
45
- NIL_P(locale) ? NULL : StringValuePtr(locale));
46
- return ret == NULL ? rb_str_new2("C") : rb_str_new2(ret);
47
- # else
48
- return rb_str_new2("C");
49
- # endif
50
- }
51
-
52
- static VALUE
53
- gt_codeset(self)
54
- VALUE self;
55
- {
56
- #if defined HAVE_WINDOWS_H
57
- char buf[2 + 10 + 1];
58
- sprintf (buf, "CP%u", GetACP ());
59
- return rb_str_new2(buf);
60
- #elif defined HAVE_NL_LANGINFO
61
- return rb_str_new2(nl_langinfo(CODESET));
62
- #else
63
- return rb_str_new2("UTF-8");
64
- #endif
65
- }
66
-
67
- void Init__locale()
68
- {
69
- VALUE mLocale = rb_define_module("Locale");
70
-
71
- #if defined HAVE_WINDOWS_H
72
- rb_define_module_function(mLocale, "__locale_id", gt_locale_id_win32, 0);
73
- #endif
74
- rb_define_module_function(mLocale, "set", gt_setlocale, 2);
75
- rb_define_module_function(mLocale, "codeset", gt_codeset, 0);
76
- # if defined HAVE_SETLOCALE
77
- rb_define_const(mLocale, "ALL", INT2NUM(LC_ALL));
78
- rb_define_const(mLocale, "COLLATE", INT2NUM(LC_COLLATE));
79
- rb_define_const(mLocale, "CTYPE", INT2NUM(LC_CTYPE));
80
- rb_define_const(mLocale, "MESSAGES", INT2NUM(LC_MESSAGES));
81
- rb_define_const(mLocale, "MONETARY", INT2NUM(LC_MONETARY));
82
- rb_define_const(mLocale, "NUMERIC", INT2NUM(LC_NUMERIC));
83
- rb_define_const(mLocale, "TIME", INT2NUM(LC_TIME));
84
- #endif
85
-
86
- }