ofm_gettext 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/COPYING +56 -0
  2. data/ChangeLog-1 +2016 -0
  3. data/NEWS-1 +414 -0
  4. data/gettext.gemspec +7 -8
  5. data/lib/gettext/runtime/class_info.rb +69 -0
  6. data/lib/gettext/runtime/locale_path.rb +123 -0
  7. data/lib/gettext/runtime/mofile.rb +332 -0
  8. data/lib/gettext/runtime/textdomain.rb +179 -0
  9. data/lib/gettext/runtime/textdomain_group.rb +26 -0
  10. data/lib/gettext/runtime/textdomain_manager.rb +214 -0
  11. data/lib/gettext/tools/parser/erb.rb +54 -0
  12. data/lib/gettext/tools/parser/glade.rb +100 -0
  13. data/lib/gettext/tools/parser/ruby.rb +226 -0
  14. data/lib/gettext/tools/pomessage.rb +199 -0
  15. data/lib/gettext/tools/poparser.rb +358 -0
  16. data/po/uk/rgettext.po +143 -0
  17. data/samples/cgi/po/uk/helloerb1.po +62 -0
  18. data/samples/cgi/po/uk/helloerb2.po +54 -0
  19. data/samples/cgi/po/uk/hellolib.po +26 -0
  20. data/samples/cgi/po/uk/main.po +84 -0
  21. data/samples/po/uk/hello.po +22 -0
  22. data/samples/po/uk/hello2.po +30 -0
  23. data/samples/po/uk/hello_glade2.po +34 -0
  24. data/samples/po/uk/hello_gtk.po +22 -0
  25. data/samples/po/uk/hello_noop.po +26 -0
  26. data/samples/po/uk/hello_plural.po +29 -0
  27. data/samples/po/uk/hello_tk.po +26 -0
  28. data/test/po/ja/test3.po +19 -0
  29. data/test/po/li/plural_error.po +27 -0
  30. data/test/test_locale_path.rb +76 -0
  31. data/test/test_po_generation.rb +22 -0
  32. data/test/test_pomessage.rb +101 -0
  33. data/test/test_textdomain_bind.rb +39 -0
  34. data/test/test_thread.rb +43 -0
  35. data/test/tools/files/app.pot +0 -0
  36. data/test/tools/files/de/app.po +0 -0
  37. data/test/tools/files/en/app.po +0 -0
  38. data/test/tools/files/en/test.po +21 -0
  39. data/test/tools/files/simple_1.po +2 -0
  40. data/test/tools/files/simple_2.po +2 -0
  41. data/test/tools/files/simple_translation.rb +3 -0
  42. data/test/tools/files/version.po +7 -0
  43. data/test/tools/test.pot +21 -0
  44. data/test/tools/test_tools.rb +63 -0
  45. metadata +380 -335
data/COPYING ADDED
@@ -0,0 +1,56 @@
1
+ Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
2
+ You can redistribute it and/or modify it under either the terms of the GPL
3
+ version 2 (see the file GPL), or the conditions below:
4
+
5
+ 1. You may make and give away verbatim copies of the source form of the
6
+ software without restriction, provided that you duplicate all of the
7
+ original copyright notices and associated disclaimers.
8
+
9
+ 2. You may modify your copy of the software in any way, provided that
10
+ you do at least ONE of the following:
11
+
12
+ a) place your modifications in the Public Domain or otherwise
13
+ make them Freely Available, such as by posting said
14
+ modifications to Usenet or an equivalent medium, or by allowing
15
+ the author to include your modifications in the software.
16
+
17
+ b) use the modified software only within your corporation or
18
+ organization.
19
+
20
+ c) give non-standard binaries non-standard names, with
21
+ instructions on where to get the original software distribution.
22
+
23
+ d) make other distribution arrangements with the author.
24
+
25
+ 3. You may distribute the software in object code or binary form,
26
+ provided that you do at least ONE of the following:
27
+
28
+ a) distribute the binaries and library files of the software,
29
+ together with instructions (in the manual page or equivalent)
30
+ on where to get the original distribution.
31
+
32
+ b) accompany the distribution with the machine-readable source of
33
+ the software.
34
+
35
+ c) give non-standard binaries non-standard names, with
36
+ instructions on where to get the original software distribution.
37
+
38
+ d) make other distribution arrangements with the author.
39
+
40
+ 4. You may modify and include the part of the software into any other
41
+ software (possibly commercial). But some files in the distribution
42
+ are not written by the author, so that they are not under these terms.
43
+
44
+ For the list of those files and their copying conditions, see the
45
+ file LEGAL.
46
+
47
+ 5. The scripts and library files supplied as input to or produced as
48
+ output from the software do not automatically fall under the
49
+ copyright of the software, but belong to whomever generated them,
50
+ and may be sold commercially, and may be aggregated with this
51
+ software.
52
+
53
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
54
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
55
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
56
+ PURPOSE.
@@ -0,0 +1,2016 @@
1
+ (OBSOLETE: Move to ChangeLog since 2.0.0)
2
+
3
+ 2009-02-05 Masao Mutoh <mutoh@highway.ne.jp>
4
+
5
+ * bin/*: Apply all changes.
6
+
7
+ 2009-02-04 Masao Mutoh <mutoh@highway.ne.jp>
8
+
9
+ * lib/gettext/parser/ruby.rb: Removed "\000" of plural messages.
10
+
11
+ 2009-01-22 Masao Mutoh <mutoh@highway.ne.jp>
12
+
13
+ * lib/gettext/rails_compat.rb, container.rb: Removed.
14
+ * lib/gettext/erb.rb: Removed.
15
+ * samples/cgi/*.cgi: Updated.
16
+ * test/test_parser.rb: Removed the part of active_record.
17
+
18
+ 2009-01-17 Masao Mutoh <mutoh@highway.ne.jp>
19
+
20
+ * README, *: Remove files for rails. They will move to gettext_rails.
21
+
22
+ 2008-12-31 Masao Mutoh <mutoh@highway.ne.jp>
23
+
24
+ * lib/gettext/*.rb: Reimplemented.
25
+ * lib/gettext/tools.rb: Added for replacing lib/gettext/utils.rb
26
+ * lib/gettext/utils.rb: Deprecated. Use tools.rb instead.
27
+ * lib/gettext/tools/rgettext.rb, rmsgfmt.rb: Move from
28
+ lib/gettext/rgettext.rb, rmsgfmt.rb.
29
+
30
+ 2008-12-30 Masao Mutoh <mutoh@highway.ne.jp>
31
+
32
+ * lib/gettext.rb: Reimplemented.
33
+ * lib/gettext/textdomain_manager.rb: Reimplemented.
34
+ * lib/gettext/class_info.rb: Move from lib/gettext.rb.
35
+ * lib/gettext/core_ext/string.rb, iconv.rb:
36
+ Move from lib/gettext/string.rb, iconv.rb.
37
+
38
+ 2008-12-12 Masao Mutoh <mutoh@highway.ne.jp>
39
+
40
+ * lib/gettext/textdomain.rb: Reimplemented.
41
+
42
+ 2008-12-07 Masao Mutoh <mutoh@highway.ne.jp>
43
+
44
+ * lib/gettext/mofile.rb: Rename mo.rb to mofile.rb.
45
+
46
+ 2008-12-06 Masao Mutoh <mutoh@highway.ne.jp>
47
+
48
+ * lib/locale.rb, lib/locale/*: Removed(Move to locale.rubyforge.org).
49
+
50
+ 2008-12-02 Masao Mutoh <mutoh@highway.ne.jp>
51
+
52
+ * po/de/rails.po, po/ru/rails.po: Improve translations.
53
+ By Vladimir Dobriakov
54
+
55
+ 2008-12-01 Masao Mutoh <mutoh@highway.ne.jp>
56
+
57
+ * lib/gettext/parser/ruby.rb: exit 1 if it occurs parsing error.
58
+ Reported by Morus Walter.
59
+
60
+ 2008-11-13 Masao Mutoh <mutoh@highway.ne.jp>
61
+
62
+ * lib/gettext/rails.rb: Fixed error_messages_for with Array argument.
63
+ By Tuptus.
64
+
65
+ 2008-11-02 Masao Mutoh <mutoh@highway.ne.jp>
66
+
67
+ * lib/gettext/rails.rb: Fixed GetText::Rails::normalized_locale returns
68
+ wrong value. Bug#22651. Reported by Fabio M.A.
69
+ * test/test_rails.rb: Add the test for normalized_locale.
70
+
71
+ 2008-10-11 Masao Mutoh <mutoh@highway.ne.jp>
72
+
73
+ * lib/gettext/rails.rb: Fixed (before|after)_init_gettext to work under
74
+ production mode. Reported by Kazuhiro NISHIYAMA.
75
+
76
+ 2008-09-14 Masao Mutoh <mutoh@highway.ne.jp>
77
+
78
+ * lib/gettext/rails.rb: Fixed expire_fragment with rails < 2.1.(Bug#21712).
79
+ * lib/gettext.rb: Remove p_ method when xx("double x") library is loaded
80
+ because of conflicting the method name.(Bug#21532) Reported by
81
+ Rémy-Christophe Schermesser, Donald Piret.
82
+ * lib/gettext/utils.rb: Remove UTF-8 BOM from po-file before executeing
83
+ msgmerge which doesn't accept BOM. Suggested by César Duque Calle.
84
+ * po/eo/rgettext.po: Fixed a typo.
85
+
86
+ 2008-09-13 Masao Mutoh <mutoh@highway.ne.jp>
87
+
88
+ * lib/gettext/utils.rb: Use msgmerge --help instead of --version to
89
+ check msgmerge is existed. Suggested by César Duque Calle.
90
+ * **/po/bg/*.po: Added by Sava Chankov.
91
+
92
+ 2008-08-24 Masao Mutoh <mutoh@highway.ne.jp>
93
+
94
+ * lib/gettext/rails.rb: render_file_with_gettext catch Exception and use
95
+ render_file_without_gettext if render_file_with_gettext is failed.
96
+ Suggested by Vladimir Dobriakov.
97
+
98
+ * lib/locale/posix.rb: Call "locale charmap" to get the system locale charset.
99
+ Reported by Tatsuki Sugiura.
100
+
101
+ 2008-08-20 Masao Mutoh <mutoh@highway.ne.jp>
102
+
103
+ * lib/locale/object.rb: Locale::Object.parse accept nil or "" as locale_name.
104
+ It replaces to "en". By Vladimir Dobriakov.
105
+ * test/test_locale.rb: Add the test above.
106
+
107
+ 2008-08-16 Masao Mutoh <mutoh@highway.ne.jp>
108
+
109
+ * po/ja/rails.po: Fixed a wrong translation.
110
+
111
+ 2008-08-10 Masao Mutoh <mutoh@highway.ne.jp>
112
+
113
+ * po/et/rails.po: Updated by Erkki Eilonen.
114
+ * po/et/rgettext.po: Added by Erkki Eilonen.
115
+
116
+ 2008-08-07 Masao Mutoh <mutoh@highway.ne.jp>
117
+
118
+ * README: Updated.
119
+ * po/fr/*.po: Updated by Vincent Isambart.
120
+ * test/test_gettext.rb, test/testlib/npgettext.rb, test/po/ja/test_npgettext.po:
121
+ Add test for np_(npgettext).
122
+
123
+ 2008-08-03 Masao Mutoh <mutoh@highway.ne.jp>
124
+
125
+ * lib/gettext/rgettext.rb, lib/gettext/parser/ruby.rb:
126
+ Add npgettext support.
127
+
128
+ 2008-07-31 Masao Mutoh <mutoh@highway.ne.jp>
129
+
130
+ * lib/gettext/rails.rb: Works on rails-2.0.2 again.
131
+
132
+ 2008-07-27 Masao Mutoh <mutoh@highway.ne.jp>
133
+
134
+ * src/poparser.ry: msgctxt/pgettext support.
135
+ * test/test_gettext.rb: Add pgettext test.
136
+
137
+ 2008-07-26 Masao Mutoh <mutoh@highway.ne.jp>
138
+
139
+ * lib/gettext/utils.rb: Improve create_mofiles to show the file which has errors.
140
+ * lib/gettext/parser/ruby.rb,
141
+ lib/gettext/rgettext.rb: msgctxt/pgettext support.
142
+ * test/testlib/pgettext.rb, test/po/ja/test_pgettext.po: Added for msgctxt/pgettext.
143
+ * **/po/lv/*.po: Added lv locales by Aivars Akots.
144
+
145
+ 2008-07-25 Masao Mutoh <mutoh@highway.ne.jp>
146
+
147
+ * lib/gettext/rails.rb: Fixed render_partial localization.
148
+ (Localize ActionView::TemplateFinder#pick_template) [Bug #20248]
149
+ * test/rails/config/boot.rb, environment.rb: Follow rails-2.1.0.
150
+ * test/rails/app/views/articles/_form_fr.html.erb: Added for
151
+ render_partial.
152
+ * test/rails/test/result/fr/new.html: Ditto.
153
+ * samples/rails/*: Update to rails-2.1.0.
154
+
155
+ 2008-07-20 Masao Mutoh <mutoh@highway.ne.jp>
156
+
157
+ * test/test_active_record.rb: Add tests for activerecord-2.1.0.
158
+
159
+ 2008-07-17 Masao Mutoh <mutoh@highway.ne.jp>
160
+
161
+ * lib/gettext/active_record.rb: validates_(format|inclusion)_of accepts %{val} as the value
162
+ (ex)
163
+ User.validates_inclusion_of :name, :in => %w(a, b), :message => N_("%{fn} can't be %{val}")
164
+ * test/test_active_record.rb: Added test for rails-2.1.0.
165
+ * lib/gettext/active_record.rb: Works localization with ActiveRecord::Errors#[]
166
+ * po/el/rails.po, rgettext.po: Updated by damphyr.
167
+ * po/ca/rails.po, rgettext.po: Updated by Ramon Salvadó.
168
+ * **/po/**/ua/*.po: Updated by Alex Rootoff.
169
+
170
+ 2008-07-15 Masao Mutoh <mutoh@highway.ne.jp>
171
+
172
+ * po/hu/rails.po, rgettext.po: Updated by Tamás Tompa.
173
+ * po/zh/rails.po, rgettext.po: Updated by Yang Bob.
174
+ * po/zh_TW/rails.po, rgettext.po: Updated by Yang Bob.
175
+ * test/fixtures/wizard.rb, inept_wizard.rb: Added.
176
+
177
+ 2008-07-14 Masao Mutoh <mutoh@highway.ne.jp>
178
+
179
+ * README: Updated.
180
+ * lib/gettext/parser/active_record.rb: Support ActiveRecord::Base.abstract_class.
181
+ * po/pt_BR/rails.po, rgettext.po: Updated by Antonio S. de A. Terceiro.
182
+ * po/es/rails.po: Updated by David Espada.
183
+ * **/po/**/nb/*.po: Updated by Runar Ingebrigtsen.
184
+
185
+ 2008-07-13 Masao Mutoh <mutoh@highway.ne.jp>
186
+
187
+ * po/ru/rails.po, rgettext.po: Updated by Yuri Kozlov.
188
+ * po/de/rails.po, rgettext.po: Updated by Patrick Lenz.
189
+ * po/eo/rails.po, rgettext.po: Updated by Malte Milatz.
190
+ * po/vi/rails.po, rgettext.po: Updated by Ngoc DAO Thanh.
191
+ * po/es/rgettext.po: Updated by David Espada.
192
+ * po/ja/rgettext.po: Updated.
193
+
194
+ 2008-07-11 Masao Mutoh <mutoh@highway.ne.jp>
195
+
196
+ * test/test_active_record.rb, test/fixtures/people.yml, warehouse-thing.rb:
197
+ Add rails-2.1.0 tests.
198
+ (ValidationsTest::test_validate_uniqueness_with_non_standard_table_names):
199
+
200
+ * po/ja/rails.po: Apply rails-2.1.0 messages.
201
+
202
+ 2008-07-09 Masao Mutoh <mutoh@highway.ne.jp>
203
+
204
+ * lib/gettext/rails.rb: Fixed ActionController::Caching::Fragments.expire_fragment
205
+ to work with rails-2.1.0 by Loiseleur Michel.
206
+ * lib/gettext/active_record.rb: Added validation options for activerecord-2.1.0.
207
+ (:greater_than, :greater_than_or_equal_to, :equal_to, :less_than, :less_than_or_equal_to,
208
+ :odd, :even)
209
+ * test/*: Apply rails-2.1.0.
210
+
211
+ 2008-06-30 Masao Mutoh <mutoh@highway.ne.jp>
212
+
213
+ * lib/gettext/rails.rb: Works with rails-2.1.0.
214
+ Reported by Andreas Neuhaus(Bug #17990)
215
+
216
+
217
+ 2008-06-28 Masao Mutoh <mutoh@highway.ne.jp>
218
+
219
+ * bin/*: Fixed shebang line. (Bug: #20150)
220
+
221
+ 2008-06-25 Masao Mutoh <mutoh@highway.ne.jp>
222
+
223
+ * lib/gettext.rb: Fixed cache algorithm of bound_targets again.
224
+
225
+ 2008-06-18 Masao Mutoh <mutoh@highway.ne.jp>
226
+
227
+ * lib/gettext/mo.rb: Support revision 1 of mo-file format.
228
+ * lib/gettext/mo.rb, test/test_gettext.rb:
229
+ Freeze msgstrs by Tatsuki Sugiura (Bug: #19193)
230
+ * **/po/sr/*.po: Replace sr locales to Cyrillic script
231
+ from Latin script by Slobodan Paunović.
232
+
233
+ 2008-05-24 Masao Mutoh <mutoh@highway.ne.jp>
234
+
235
+ * README: update to support Rails-1.2.x to Rails-2.0.x(Rails-1.2.x aren't
236
+ not supported now). Reported by Hans de Graaff.
237
+
238
+ 2008-05-11 Masao Mutoh <mutoh@highway.ne.jp>
239
+
240
+ * lib/gettext/rails.rb: Localize ActionView::Helpers::FormBuilder#label.
241
+ The idea from craccho (http://d.hatena.ne.jp/craccho/20071211/1197398747).
242
+ * lib/gettext/version.rb: Increment minor version.
243
+ * README, **/po/sr/*.po: Added sr locales by Slobodan Paunović.
244
+ * NEWS: Updated.
245
+
246
+ 2008-05-07 Masao Mutoh <mutoh@highway.ne.jp>
247
+
248
+ * lib/gettext/utils.rb: Check msgmerge command is existed. And show error
249
+ messages more helpful.
250
+
251
+ 2008-05-06 Masao Mutoh <mutoh@highway.ne.jp>
252
+
253
+ * test/test_locale.rb: Removed the condition for OpenBSD
254
+ by Bernd Ahlers.
255
+ * lib/gettext.rb: Fixed that bindtextdomain doesn't work on toplevel.
256
+ Reported by Tatsuki Sugiura (Bug: #19056).
257
+ * test/test_gettext.rb: Follow the change.
258
+ * test/test_gettext_toplevel.rb: Added.
259
+
260
+ 2008-05-05 Masao Mutoh <mutoh@highway.ne.jp>
261
+
262
+ * lib/gettext.rb: Add GetText.remove_all_textdomains for testing.
263
+ inspired a test code by Tatsuki Sugiura (Bug #19056)
264
+ * lib/gettext/active_record.rb, test/test_active_record.rb:
265
+ Fixed validates_length_of by Karl Palmskog (Bug: #19761)
266
+
267
+ 2008-04-15 Masao Mutoh <mutoh@highway.ne.jp>
268
+
269
+ * test/test_gettext.rb, lib/gettext.rb, lib/gettext/textdomain.rb,
270
+ lib/gettext/rails.rb: Fixed distance_of_time_in_words. Reported by Dao Ngoc (Bug: #17808)
271
+ * po/*/rails.po: Updated.
272
+
273
+ 2008-04-13 Masao Mutoh <mutoh@highway.ne.jp>
274
+
275
+ * lib/gettext.rb, lib/gettext/textdomain.rb: Fixed memory leaks.
276
+ Reported by Simone Carletti(#18392)
277
+
278
+ 2008-03-21 Masao Mutoh <mutoh@highway.ne.jp>
279
+
280
+ * lib/locale/win32.rb, win32_table.rb, jruby.rb: Rename SystemWin32Table to
281
+ SystemWin32 again. Reported by Locomotyphus (Bug: #18938)
282
+
283
+ 2008-02-02 Masao Mutoh <mutoh@highway.ne.jp>
284
+
285
+ * po/ja/rails.po: Revised. Reported by Paul Clegg.
286
+
287
+ 2008-01-30 Masao Mutoh <mutoh@highway.ne.jp>
288
+
289
+ * lib/locale/win32.rb, win32_table.rb: Rename SystemWin32Table to SystemWin32.
290
+ * samples/cgi/http.rb, index.cgi: Works on Windows.
291
+
292
+ 2008-01-28 Masao Mutoh <mutoh@highway.ne.jp>
293
+
294
+ * lib/gettext.rb: Fixed GetText.output_charset to return current
295
+ locale's charset not nil.
296
+ Fixed to work with JRuby.(Bug: http://jira.codehaus.org/browse/JRUBY-1281)
297
+
298
+ 2008-01-27 Masao Mutoh <mutoh@highway.ne.jp>
299
+
300
+ * lib/gettext/string.rb: String#% doesn't raise an ArgumentError in Debug mode.
301
+ Because String#% method shouldn't raise ArgumentError in Debug mode.
302
+ * lib/gettext/rgettext.rb: rgettext fixed to work with similer messages in n_().
303
+ Reported by Toine Diepstraten.
304
+ * samples/cgi/*: Works again. Set CGI object explicit.
305
+ * lib/gettext/textdomainmanager.rb: GetText::TextDomainManager.output_charset returns
306
+ system locale when nil is set.
307
+
308
+ 2008-01-24 Masao Mutoh <mutoh@highway.ne.jp>
309
+
310
+ * lib/locale/object.rb: Speedup (cache messages and object hash value)
311
+
312
+ 2008-01-21 Masao Mutoh <mutoh@highway.ne.jp>
313
+
314
+ * lib/gettext.rb: Fixed to reload messages in debug mode
315
+ (development mode in rails). Reported by Reynard,
316
+ Ernesto Jiménez Caballero
317
+
318
+ 2008-01-19 Masao Mutoh <mutoh@highway.ne.jp>
319
+
320
+ * **/po/hu/*.po: Added hu locales by Tamás Tompa.
321
+ * Rakefile: Add deploypo task(for me).
322
+
323
+ 2008-01-18 Masao Mutoh <mutoh@highway.ne.jp>
324
+
325
+ * lib/locale/win32.rb: Removed duplicated function.
326
+
327
+ 2008-01-16 Masao Mutoh <mutoh@highway.ne.jp>
328
+
329
+ * samples/rails/*: Rewrite to work on Rails-2.0.
330
+ * lib/gettext/string.rb: Raises ArgumentError when the format are wrong.
331
+ Bug #16959 by Stephan.
332
+
333
+ 2007-12-25 Masao Mutoh <mutoh@highway.ne.jp>
334
+
335
+ * lib/gettext/rails.rb: Fixed an error when expire_fragment_with_gettext
336
+ is called with the name as a Regexp object.Bug #12803 by Hans de Graaff.
337
+
338
+ 2007-12-24 Masao Mutoh <mutoh@highway.ne.jp>
339
+
340
+ * **/po/ua/*.po: Added ua locales by Alex Rootoff.
341
+
342
+ 2007-12-16 Masao Mutoh <mutoh@highway.ne.jp>
343
+ * NEWS: Updated.
344
+ * README: Updated.
345
+
346
+ 2007-12-15 Masao Mutoh <mutoh@highway.ne.jp>
347
+
348
+ * test/rails/*: Updated to work with Rails-2.0.
349
+ Add the test for custom error messages/titles.
350
+ * lib/gettext/rails.rb: Fixed
351
+ ActionView::Helpers::ActiveRecordHelper::L10n::error_messages_for
352
+ that plural messages didn't translated.
353
+ ActionView::Helpers::ActiveRecordHelper.error_messages_for can accept
354
+ :message_title, :message_explanation as the error dialog messages.
355
+ You can set the error dialog messages in the each pages.
356
+ Add GetText::Rails.normalized_locale.
357
+
358
+ 2007-12-08 Masao Mutoh <mutoh@highway.ne.jp>
359
+
360
+ * lib/gettext/rails.rb: Add GetText::Rails::available_locales.
361
+ It returns the locales in RAILS_ROOT/locale directory.
362
+ fragment_cache_key_with_gettext and expire_fragment_with_gettext uses
363
+ GetText::Rails::available_locales to select the current locale string.
364
+ The cache files are created for available locales only.
365
+
366
+ 2007-11-10 Masao Mutoh <mutoh@highway.ne.jp>
367
+
368
+ * lib/gettext.rb: Fix to work :charset option.
369
+ [Bug #15513] Reoported by boud indymedia.
370
+ * lib/gettext/mo.rb: Works with JRuby.
371
+
372
+ 2007-11-09 Masao Mutoh <mutoh@highway.ne.jp>
373
+
374
+ * lib/locale/cgi.rb: Removed Locale::SystemCGI.default=, set_default.
375
+ * lib/locale/win32_table.rb: Rename SystemWin32 to SystemWin32Table.
376
+ * lib/locale/win32.rb, win32_table.rb: Move get_charset to win32_table.rb.
377
+ * lib/locale/jruby.rb: Require win32_table.rb on Win32.
378
+ * lib/locale/base.rb: Added as the common module of other LocaleSystem classes.
379
+ * lib/locale/posix.rb, win32.rb, jruby.rb, cgi.rb: Require locale/base.rb.
380
+ And Remove the common methods.
381
+
382
+ 2007-11-08 Masao Mutoh <mutoh@highway.ne.jp>
383
+
384
+ * lib/gettext/iconv.rb: Support JRuby.
385
+ * lib/locale/jruby.rb: Added. Support JRuby.
386
+ * test/*.rb: Rename files.
387
+ * lib/locale/object.rb: Add fallback attribute(a fallback locale).
388
+ * ext/*: Removed.
389
+ * Rakefile: Remove tasks for ext.
390
+ * lib/locale/win32.rb: Removed Locale::SystemWin32.set_default_locale,
391
+ default_locale=, default_locale.
392
+ Use Win32API instead of locale_system.so.
393
+ * lib/locale/posix.rb: Removed Locale::SystemPosix.get_charset, .set_default_locale
394
+ default_locale=, default_locale and all LC types.
395
+ Now Posix localed doesn't depend on locale_system.so.
396
+ # UTF-8 is set as the default charset.
397
+ * lib/gettext/locale.rb: Move to lib/locale.rb. Now locale class starts to
398
+ prepare to be separated from gettext.
399
+ * lib/gettext/locale_*.rb: Move to lib/locale/*.rb. Removed deprecated methods.
400
+ * Start preparing to release 2.0.
401
+ - System locales become "read only"(Locale module keeps the current
402
+ locale).
403
+ - Don't depend locale_system.so.
404
+
405
+ 2007-08-01 Masao Mutoh <mutoh@highway.ne.jp>
406
+
407
+ * lib/gettext/utils.rb: Raise exception when msgmerge aren't found.
408
+ And show error message more helpful. Reported by Vít Ondruch (Bug#12737)
409
+ * lib/gettext/parser/erb.rb: Add ".erb" as the extname.
410
+ Reported by Andreas Neuhaus (Bug#12721)
411
+ * test/gettext_benchmark.rb: Added.
412
+
413
+ 2007-07-29 Masao Mutoh <mutoh@highway.ne.jp>
414
+
415
+ * lib/gettext.rb: Replace .keys.include? to .has_key? to reduce
416
+ CPU usage and speed up. Reported by olivier ruffin.
417
+
418
+ 2007-07-22 Masao Mutoh <mutoh@highway.ne.jp>
419
+
420
+ * lib/gettext/locale_cgi.rb: Fixed to break rails(r7116).
421
+ Reported by OZAWA Sakuro.
422
+
423
+ 2007-07-16 Masao Mutoh <mutoh@highway.ne.jp>
424
+
425
+ * lib/gettext.rb: Fixed to support anonymous classes/modules, again.
426
+
427
+ 2007-07-11 Masao Mutoh <mutoh@highway.ne.jp>
428
+
429
+ * lib/gettext.rb: Support anonymous classes/modules.
430
+ Pointed out by Yaohan Chen.
431
+ * test/gettext_test.rb: Add test for anonmous classes/modules.
432
+
433
+ 2007-07-08 Masao Mutoh <mutoh@highway.ne.jp>
434
+
435
+ * README, Rakefile: Add RDoc support.
436
+
437
+ 2007-07-06 Masao Mutoh <mutoh@highway.ne.jp>
438
+
439
+ * lib/gettext/rails.rb: Add to support Action/Fragment caching.
440
+ * test/gettext_test_rails_caching.rb, test.sh: Added the test for caching.
441
+ * NEWS: Updated.
442
+
443
+ 2007-07-05 Masao Mutoh <mutoh@highway.ne.jp>
444
+
445
+ * src/poparser.ry, lib/gettext/poparser.rb:
446
+ Fixed a bug of previous change.
447
+
448
+ 2007-07-04 Masao Mutoh <mutoh@highway.ne.jp>
449
+
450
+ * NEWS: Updated.
451
+ * lib/gettext/version.rb: Increment minor version.
452
+ * lib/gettext/active_record.rb: Work with script/generate
453
+ scaffold_resource. Reported by Bart ten Brinke(Bug#8308)
454
+ * lib/gettext/utils.rb: On the Win32 default environment,
455
+ use "msgmerge" program provided by Ruby-GNOME2 Win32 Installer.
456
+ * lib/gettext/locale_win32.rb: Fix to find a charset from a locale.
457
+
458
+ 2007-07-03 Masao Mutoh <mutoh@highway.ne.jp>
459
+
460
+ * lib/gettext/rails.rb:error_messages_for accept plural models.
461
+ Reported by Florian Hufsky.
462
+ Fixed set_error_message_title|explanation.
463
+ * test/rails/app/model/users.rb, test/rails/test/*: Add tests for
464
+ error_messages_for with plural models.
465
+ * lib/gettext/parser/active_record.rb:
466
+ remove to require 'application.rb' to avoid the effect
467
+ of application.rb when parse models. Pointed out by Michel Loiseleur.
468
+ * po/ca/rails.po: Updated by Ramon Salvadテウ.
469
+ * src/poparser.ry, lib/gettext/poparser.rb: Don't append
470
+ msgids/msgstrs if the msgstrs don't set.
471
+ * lib/gettext.rb, lib/gettext/parser/ruby.rb:
472
+ Added GetText.nsgettext, ns_. This method has n_ + s_ function.
473
+ (e.g.) ns_("File|A file", "%{num} files", i).
474
+ * test/test_nsgettext.rb, test/po/ja/test_nsgettext.po: Added for
475
+ the test ns_(), nsgettext.
476
+ * lib/gettext/rgettext.rb: Normalize msgids.
477
+ _("Foo") and n_("Foo", "Foos", i) become same msgid "Foo\000Foos".
478
+ This is the same behavior with xgettext.
479
+ Reported by Sava Chankov.
480
+ * lib/gettext/textdomain.rb: Follow above changes.
481
+ _("Foo") matches the single msgid of n_("Foo", "Foos", i).
482
+
483
+ 2007-06-29 Masao Mutoh <mutoh@highway.ne.jp>
484
+
485
+ * lib/gettext.rb: Add GetText.cached=, .cached?, clear_cache.
486
+ messages are cached in default. If the value is false
487
+ or $DEBUG = true then messages are not cached.
488
+ _ and n_ become 1.2-1.9 times faster than older versions.
489
+ * lib/gettext/textdomain.rb, rails.rb: follow the changes
490
+ below.
491
+
492
+ 2007-06-28 Masao Mutoh <mutoh@highway.ne.jp>
493
+
494
+ * README: Updated.
495
+ * po/vi/rails.po: Updated by Ngoc Dao.
496
+ * po/(zh|zh_TW)/rails.po: Updated by Yang Bob.
497
+
498
+ 2007-06-27 Masao Mutoh <mutoh@highway.ne.jp>
499
+
500
+ * po/nl/rails.po: Updated by Menno Jonker
501
+ * po/(bs|hr)/rails.po: Updated by Sanjin Sehic.
502
+ * po/pt_BR/rails.po: Updated by Joao Pedrosa.
503
+ * po/eo/rails.po: Updated by Malte Milatz.
504
+ * po/de/rails.po: Updated by Patrick Lenz.
505
+ * po/fr/rgettext.po, rails.po: Updated by David Sulc.
506
+ * po/et/rails.po: Updated by Erkki Eilonen .
507
+ *
508
+ 2007-06-26 Masao Mutoh <mutoh@highway.ne.jp>
509
+
510
+ * test/rails/*: Added tests for ActionMailer.
511
+
512
+ 2007-04-17 Masao Mutoh <mutoh@highway.ne.jp>
513
+
514
+ * test/rails/* : Added tests for rails.
515
+
516
+ 2007-04-16 Masao Mutoh <mutoh@highway.ne.jp>
517
+
518
+ * lib/gettext/rails.rb: TestRequest#cgi returns GetTextMockGGI, not CGI.
519
+
520
+ 2007-04-08 Masao Mutoh <mutoh@highway.ne.jp>
521
+
522
+ * lib/gettext/active_record.rb: Work ActiveRecord::Base::Validation
523
+ with non ActiveRecord::Base object again. Reported by Maksim Bartenev.
524
+ * test/gettext_test_activerecord.rb: Add a test for the above change.
525
+
526
+ 2007-04-07 Masao Mutoh <mutoh@highway.ne.jp>
527
+
528
+ * **/po/nb/*.po: Added nb locales by Runar Ingebrigtsen.
529
+
530
+ 2007-03-24 Masao Mutoh <mutoh@highway.ne.jp>
531
+
532
+ * **/po/(bs|hr)/*.po: Added bs/hr locales by Sanjin Sehic.
533
+
534
+ 2007-03-23 Masao Mutoh <mutoh@highway.ne.jp>
535
+
536
+ * **/po/vi/*.po: Added vi locale by Ngoc Dao.
537
+
538
+ 2007-02-11 Masao Mutoh <mutoh@highway.ne.jp>
539
+
540
+ * lib/gettext/rails_compat.rb: Added for Rails-1.1.6.
541
+ (Works with both Rails-1.1.6 and 1.2.2)
542
+
543
+ 2007-02-09 Masao Mutoh <mutoh@highway.ne.jp>
544
+
545
+ * po/nl/rails.po: Fixed wrong translations.
546
+ Reported by Bart ten Brinke [Bug #8449]
547
+
548
+ 2007-01-30 Masao Mutoh <mutoh@highway.ne.jp>
549
+
550
+ * po/nl/rails.po: Fixed wrong translations.
551
+ Reported by Dirkjan Bussink
552
+
553
+ 2007-01-25 Masao Mutoh <mutoh@highway.ne.jp>
554
+
555
+ * lib/gettext/active_record.rb: Fixed #columns again.
556
+ [Feature Requests #7428]
557
+
558
+ 2007-01-22 Masao Mutoh <mutoh@highway.ne.jp>
559
+
560
+ * NEWS: Updated.
561
+ * lib/gettext/active_record.rb: Use alias_method_chain not to
562
+ override original methods directly(again). [Feature Requests #7428]
563
+ * test/gettext_test_parser.rb: Add tests for activerecord parser.
564
+ * lib/gettext/rails.rb: Require action_controller instead of activesupport
565
+ for Rails-1.2.1.
566
+ * po/el/*.po: Updated by Vassilis Rizopoulos.
567
+ * po/ja/rails.po: Fixed typos by NANKI Haruo.
568
+
569
+ 2007-01-16 Masao Mutoh <mutoh@highway.ne.jp>
570
+
571
+ * lib/gettext/parser/active_record.rb: Don't duplicate "file:-".
572
+
573
+ 2007-01-14 Masao Mutoh <mutoh@highway.ne.jp>
574
+
575
+ * lib/gettext/active_record.rb: Use alias_method_chain not to
576
+ override original methods directly. [Feature Requests #7428]
577
+ * test/gettext_test_active_record.rb: Update to work Rails-1.2RC2.
578
+
579
+ 2006-12-26 Masao Mutoh <mutoh@highway.ne.jp>
580
+
581
+ * po/zh/*.po, po/zh_TW/*.po: Updated by Yang Bob.
582
+
583
+ 2006-12-22 Masao Mutoh <mutoh@highway.ne.jp>
584
+
585
+ * samples/rails/po/eo/blog.po: Fixed some typos by Malte Milatz.
586
+
587
+ 2006-12-22 Masao Mutoh <mutoh@highway.ne.jp>
588
+
589
+ * **/po/ca/*.po: Added ca(Catalan) locale by Ramon Salvad蝮ヲ.
590
+
591
+ 2006-12-17 Masao Mutoh <mutoh@highway.ne.jp>
592
+
593
+ * po/cs/*.po: Updated by Karel Miarka.
594
+ * **/po/eo/*.po: Added eo(Esperanto) locale by Malte Milatz.
595
+
596
+ 2006-12-15 Masao Mutoh <mutoh@highway.ne.jp>
597
+
598
+ * po/ko/*.po: Updated by Gyoung-Yoon Noh.
599
+
600
+ 2006-12-10 Masao Mutoh <mutoh@highway.ne.jp>
601
+
602
+ * po/de/*.po: Updated by Patrick Lenz.
603
+ * po/nl/*.po: Updated by Menno Jonkers.
604
+ * po/es/*.po: Updated by David Espada.
605
+
606
+ 2006-12-09 Masao Mutoh <mutoh@highway.ne.jp>
607
+
608
+ * po/pt_BR/*.po: Updated by Joao Pedrosa.
609
+ * po/ru/*.po: Updated by Yuri Kozlov.
610
+ * po/ja/*.po: Updated.
611
+
612
+ 2006-12-08 Masao Mutoh <mutoh@highway.ne.jp>
613
+
614
+ * lib/gettext/rgettext.rb: Improve option messages.
615
+
616
+ 2006-12-07 Masao Mutoh <mutoh@highway.ne.jp>
617
+
618
+ * lib/gettext/erb.rb: Removed the dependency to GetText::Container which was
619
+ deprecated.
620
+
621
+ 2006-12-05 Masao Mutoh <mutoh@highway.ne.jp>
622
+
623
+ * lib/gettext/poparser.rb: Added.
624
+
625
+ 2006-12-03 Masao Mutoh <mutoh@highway.ne.jp>
626
+
627
+ * lib/gettext.rb: Changed GetText.locale= to set not only current locale
628
+ to all Textdomains but also default locale.
629
+ * lib/gettext/locale.rb: Locale.set_default accept locale as String.
630
+ * test/gettext_test_active_record.rb: Update to test activerecord-1.14.4.6657.
631
+
632
+ 2006-12-02 Masao Mutoh <mutoh@highway.ne.jp>
633
+
634
+ * lib/gettext/rails.rb: Unit test works on 1.2RC1. Reported by KAKUTANI Shintaro.
635
+ * lib/gettext.rb: Updates default locale when using GetText.set_locale_all
636
+ * po/**/rails.po[t]: Updated.
637
+
638
+ 2006-11-27 Masao Mutoh <mutoh@highway.ne.jp>
639
+
640
+ * lib/gettext/rails.rb: Fix the deprecated accessing to instance variables
641
+ directly for rails 1.2RC1.
642
+
643
+ 2006-11-06 Masao Mutoh <mutoh@highway.ne.jp>
644
+
645
+ * lib/gettext/utils.rb: Skip to create new po-files.
646
+ It avoids the po-files become empty when GNU msgmerge was failed.
647
+ By Fabian Kreutz.
648
+
649
+ 2006-10-21 Masao Mutoh <mutoh@highway.ne.jp>
650
+
651
+ * po/fr/rails.po: Improved by David Sulc.
652
+
653
+ 2006-10-15 Masao Mutoh <mutoh@highway.ne.jp>
654
+
655
+ * lib/gettext/parser/active_record.rb: Work updatepo task with rails_edge.
656
+
657
+ 2006-10-08 Masao Mutoh <mutoh@highway.ne.jp>
658
+
659
+ * lib/gettext/parser/active_record.rb: Fixed an error using hbtm.
660
+ Reported by Mihnea Capraru.
661
+
662
+ 2006-10-04 Masao Mutoh <mutoh@highway.ne.jp>
663
+
664
+ * README, lib/gettext/rgettext.rb: Changed the author e-mail address.
665
+
666
+ 2006-09-24 Masao Mutoh <mutoh@highway.ne.jp>
667
+
668
+ * lib/gettext/active_record.rb: Re-fix to work rails_edge again.
669
+ Reported by Isak Hansen.
670
+ * po/pt_BR/rails.po: Updated by Antonio S. de A. Terceiro.
671
+
672
+ 2006-09-21 Masao Mutoh <mutoh@highway.ne.jp>
673
+
674
+ * lib/gettext/rails.rb: Fixed a bug init_gettext can't accept
675
+ any options correctly and locale_path was set wrong value.
676
+ Reported by pedro palazon.
677
+
678
+ 2006-09-12 Masao Mutoh <mutoh@highway.ne.jp>
679
+
680
+ * lib/gettext/textdomain.rb: Fixed a bug of add_default_locale_path.
681
+ * lib/gettext/parser/ruby.rb: Improve to output error messages.
682
+
683
+ 2006-09-11 Masao Mutoh <mutoh@highway.ne.jp>
684
+
685
+ * lib/gettext/active_record.rb: Works rails_edge again.
686
+ Reported by Donald Piret. (http://dev.rubyonrails.org/ticket/5810)
687
+
688
+ 2006-09-07 Masao Mutoh <mutoh@highway.ne.jp>
689
+
690
+ * lib/gettext/locale_cgi.rb, locale_object.rb: Speed up.
691
+ * lib/gettext.rb: Fixed to extract correct textdomains in each_textdomain.
692
+
693
+ 2006-09-05 Masao Mutoh <mutoh@highway.ne.jp>
694
+
695
+ * README, NEWS: Updated.
696
+
697
+ 2006-09-04 Masao Mutoh <mutoh@highway.ne.jp>
698
+
699
+ * lib/gettext/rgettext.rb: Raise error when parsing was failed.
700
+ * lib/gettext.rb: GetText.locale= is the alias of GetText.set_locale_all instead
701
+ of GetText.set_locale.
702
+ * test/gettext_test_active_record.rb: Added tests.
703
+ * test/fixtures/*.rb: updated.
704
+ * test/po/active_record.pot, test/po/ja/active_record.po: updated.
705
+
706
+ 2006-09-01 Masao Mutoh <mutoh@highway.ne.jp>
707
+
708
+ * test/gettext_test_active_record.rb: Added tests.
709
+
710
+ 2006-08-31 Masao Mutoh <mutoh@highway.ne.jp>
711
+
712
+ * lib/gettext/active_record.rb: Fix the custom messages of validates_length_of
713
+ with :too_long, :too_short, :wrong_length.
714
+
715
+ 2006-08-30 Masao Mutoh <mutoh@highway.ne.jp>
716
+
717
+ * test/Rakefile, test/db/*sql: Added.
718
+
719
+ 2006-08-29 Masao Mutoh <mutoh@highway.ne.jp>
720
+
721
+ * test/gettext_test_active_record.rb, test/fixtures/*, test/po/active_record.pot,
722
+ test/po/ja/active_record.po: Added tests for ActiveRecord with GetText.
723
+ * lib/gettext/active_record.rb: Messages updated.
724
+ * po/*/rails.po[t]: ditto.
725
+
726
+ 2006-08-22 Masao Mutoh <mutoh@highway.ne.jp>
727
+
728
+ * samples/rails/db/schema.rb: Added.
729
+ * samples/rails/db/*.sql: Removed. Use rake db:schema:load instead.
730
+ * samples/rails/README: Follow above changes.
731
+ * samples/rails/po/*: Updated.
732
+ * lib/gettext/active_record.rb: Fixed the problem of untranslate(_all).
733
+ Reported by Tsutomu Kuroda.
734
+
735
+ 2006-08-21 Masao Mutoh <mutoh@highway.ne.jp>
736
+
737
+ * README: Updated.
738
+ * **/po/zh_TW/*.po: Added zh_TW locale by LIN CHUNG-YI.
739
+
740
+ 2006-08-18 Masao Mutoh <mutoh@highway.ne.jp>
741
+
742
+ * lib/gettext/version.rb: Increment minor version.
743
+ * po/et/rails.po: Added Estonian by Erkki Eilonen.
744
+ * README: ditto.
745
+ * lib/gettext/rails.rb: Add ActionController::Base.(before|after)_init_gettext.
746
+
747
+ 2006-08-15 Masao Mutoh <mutoh@highway.ne.jp>
748
+
749
+ * po/de/rails.po, rgettext.po: Updated by Partick Lenz.
750
+
751
+ 2006-08-13 Masao Mutoh <mutoh@highway.ne.jp>
752
+
753
+ * lib/gettext/locale.rb: Add Locale.system_module.
754
+ * lib/gettext/rails.rb: Remove ActionController::Base.textdomainname
755
+ * lib/gettext.rb, lib/gettext/rails.rb, locale_cgi.rb,
756
+ locale_object.rb, string.rb:
757
+ Speed up. Improve CPU usages.
758
+
759
+ 2006-08-10 Masao Mutoh <mutoh@highway.ne.jp>
760
+
761
+ * lib/gettext/parser/active_record.rb: Improved to find ActiveRecord class
762
+ by steve dp.
763
+
764
+ 2006-08-09 Masao Mutoh <mutoh@highway.ne.jp>
765
+
766
+ * lib/gettext/rails.rb: Code clean up.
767
+ * lib/gettext.rb: Code clean up.
768
+ * lib/gettext/active_record.rb: Removed to call bindtextdomain in Validations.
769
+ It's called in bindtextdomain of init_gettext.
770
+ * lib/gettext/parser/active_record.rb: Rename from activerecord.rb.
771
+
772
+ 2006-08-08 Masao Mutoh <mutoh@highway.ne.jp>
773
+
774
+ * lib/gettext/active_record.rb: Fixed on, error_messages_for.
775
+ by Andreas Neuhaus.
776
+
777
+ 2006-08-04 Masao Mutoh <mutoh@highway.ne.jp>
778
+
779
+ * lib/gettext/rails.rb: Move bindtextdomain_to to lib/gettext.rb.
780
+ New overrideable callback methods (before|after)_init_gettext(cgi).
781
+ These methods is called on the each WWW request.
782
+ * lib/gettext.rb: Add bindtextdomain_to, textdomain_to.
783
+ * samples/rails/app/controllers/application.rb: Add a sample of
784
+ (before|after)_init_gettext(cgi).
785
+
786
+ 2006-07-29 Masao Mutoh <mutoh@highway.ne.jp>
787
+
788
+ * lib/gettext/rgettext.rb: Added -r, -d options.
789
+ -r is to set an option parser. -d is for debugging mode.
790
+ (e.g.) $ rgettext -r fooparser test.foo
791
+ The idea is from Kobayashi Noritada.
792
+ Fix a trivial bug by Kobayashi Noritada.
793
+
794
+ 2006-07-25 Masao Mutoh <mutoh@highway.ne.jp>
795
+
796
+ * lib/gettext/active_record.rb: Separate from rails.rb.
797
+
798
+ 2006-07-23 Masao Mutoh <mutoh@highway.ne.jp>
799
+
800
+ * lib/gettext/rails.rb: init_gettext manages plural textdomains.
801
+ bindtextdomain binds a domainname to ActionMailer::Base and ActionView::Base.
802
+
803
+ 2006-07-22 Masao Mutoh <mutoh@highway.ne.jp>
804
+
805
+ * lib/gettext/rails.rb: init_gettext finds the locale path with caller
806
+ not RAILS_ROOT now for supporting plugins which has app/controller directory
807
+ such as Rails Engines.
808
+ And init_gettext accepts :locale_path option to be able to set the locale
809
+ path manually.
810
+ * po/pt_BR/rails.po, rgettext.po: Updated by Joao Pedrosa.
811
+
812
+ 2006-07-17 Masao Mutoh <mutoh@highway.ne.jp>
813
+
814
+ * lib/gettext/rails.rb: bind the textdomain same with ApplictionController
815
+ to the class which includes ActiveRecord::Validations.
816
+
817
+ 2006-07-16 Masao Mutoh <mutoh@highway.ne.jp>
818
+
819
+ * lib/gettext/rails.rb: Code cleanup.
820
+ ActiveRecord::Base.set_error_message_(title|explanation) have been deprecated.
821
+ Use ActionView::Helpers::ActiveRecordHelper::L10n.set_error_message_(title|explanation)
822
+ instead. Suggested by Kouhei Sutou
823
+ * po/zh/rails.po, rgettext.po: Updated by Yingfeng.
824
+ * NEWS: Updated.
825
+
826
+ 2006-07-15 Masao Mutoh <mutoh@highway.ne.jp>
827
+
828
+ * lib/gettext/rails.rb: Localize ActiveRecord::Errors#on.
829
+ Now error_message_on is localized.
830
+ Reported by kdmsnr.
831
+
832
+ 2006-07-14 Masao Mutoh <mutoh@highway.ne.jp>
833
+
834
+ * lib/gettext/parser/activerecord.rb: Add "untranslate" feature.
835
+ * lib/gettext/rails.rb: ditto. Add ActiveRecord::Base.untranslate
836
+ .untranslate_all, .unstranslate?
837
+ The idea is from Gyoung-Yoon Noh.
838
+
839
+ 2006-07-13 Masao Mutoh <mutoh@highway.ne.jp>
840
+
841
+ * po/nl/rails.po, rgettext.po: Updated by Menno Jonkers.
842
+ * lib/gettext/rails.rb: Support ActiveRecord::Migration.
843
+ Suggested by OZAWA Sakuro.
844
+
845
+ 2006-07-12 Masao Mutoh <mutoh@highway.ne.jp>
846
+
847
+ * po/ko/rails.po, rgettext.po: Updated by Gyoung-Yoon Noh.
848
+
849
+ 2006-07-11 Masao Mutoh <mutoh@highway.ne.jp>
850
+
851
+ * po/ru/rails.po, rgettext.po: Updated by Yuri Kozlov.
852
+ * po/fr/rails.po, rgettext.po: Updated by Laurent Sansonetti.
853
+ * po/cs/rails.po, rgettext.po: Updated by Karel Miarka.
854
+
855
+ 2006-07-09 Masao Mutoh <mutoh@highway.ne.jp>
856
+
857
+ * po/es/rails.po, rgettext.po: Updated by David Espada.
858
+ * lib/gettext/rails.rb: Increment minor version.
859
+ * README: Updated.
860
+
861
+ 2006-06-14 Masao Mutoh <mutoh@highway.ne.jp>
862
+
863
+ * lib/gettext/rails.rb: Fix a problem N_() isn't found in
864
+ ActiveRecord. Reported by arton.
865
+
866
+ 2006-06-12 Masao Mutoh <mutoh@highway.ne.jp>
867
+
868
+ * lib/gettext/parser/glade.rb: Show error message correctly.
869
+ * Rakefile: Added src/poparse.ry as the target for updatepo.
870
+ * po/rgettext.pot, po/*/rgettext.po: Updated.
871
+
872
+ 2006-06-11 Masao Mutoh <mutoh@highway.ne.jp>
873
+
874
+ * lib/gettext/parser/ruby.rb: Fixed to extract duplicated messages when "\n"
875
+ was used in msgid.
876
+ * lib/gettext/rails.rb, po/rails.pot, po/*/rails.po: Localize
877
+ ActionView::Helpers::DateHelper.distance_of_time_in_words.
878
+ * lib/gettext.rb: Added GetText.current_textdomain_info for debuging.
879
+ * lib/gettext/textdomain.rb: Break if the first mo-file found.
880
+ * lib/gettext/mo.rb: Added to accessor(r) to filename.
881
+
882
+ 2006-06-09 Masao Mutoh <mutoh@highway.ne.jp>
883
+
884
+ * samples/*.rb, samples/po/*: Code cleanup 2.
885
+
886
+ 2006-06-08 Masao Mutoh <mutoh@highway.ne.jp>
887
+
888
+ * lib/gettext/version.rb: Increment minor version.
889
+ * lib/gettext/locale_posix.rb: Code cleanup.
890
+ * test/testlib5.rb: Added.
891
+
892
+ 2006-06-07 Masao Mutoh <mutoh@highway.ne.jp>
893
+
894
+ * lib/gettext.rb: GetText.set_locale accept 2nd parameter.
895
+ * test/testlib6.rb, test/po/{ja|fr}/test6.po: Added previous test.
896
+ * samples/*.rb, samples/po/*: Code cleanup.
897
+
898
+ 2006-06-05 Masao Mutoh <mutoh@highway.ne.jp>
899
+
900
+ * samples/hello.rb: Code cleanup.
901
+ * lib/gettext/rgettext.rb: Show ruby version with -v option.
902
+ * lib/gettext/rmsgfmt.rb: ditto.
903
+ * lib/gettext/rmsgmerge.rb: ditto.
904
+
905
+ 2006-06-04 Masao Mutoh <mutoh@highway.ne.jp>
906
+
907
+ * lib/gettext.rb: Fixed a bug when options is set nil.
908
+ * lib/gettext/locale_posix.rb: Fixed the search order of environment
909
+ variables. Reported by markus koller.
910
+ * ext/gettext/locale_system.c: Returns nil if locale is not set.
911
+ * Rakefile: Added makemo task for samples/rails/vendor/plugins/gettext/po.
912
+ * test/gettext_test_multi_textdomain.rb: Added.
913
+
914
+ 2006-05-31 Masao Mutoh <mutoh@highway.ne.jp>
915
+
916
+ * samples/rails/vendor/plugins/gettext/lib/gettext_plugin.rb: Rewrite
917
+ to support new bindtextdomain.
918
+ * samples/rails/vendor/plugins/gettext/{po|locale}/*: Move gettext_plugin.{po|mo}
919
+ from samples/rails/{po|locale}/*. Now Rails plugins can release their po/mo-files
920
+ under their own directory(/vendor/plugins/plugindir/{po|locale}).
921
+ * samples/rails/vendor/plugins/gettext/Rakefile, README: Added.
922
+ * samples/rails/lib/tasks/gettext.rake. Move gettext_plugin target to
923
+ /vendor/plugins/gettext/Rakefile.
924
+ * samples/rails/README: Updated.
925
+
926
+ 2006-05-30 Masao Mutoh <mutoh@highway.ne.jp>
927
+
928
+ * lib/gettext.rb: The scope of a textdomain becomes a class/module base
929
+ instead of a file base.
930
+ Accept plural textdomains in a class/module.
931
+ Changed bindtextdomain arguments with backward compatibility.
932
+ * lib/gettext/textdomainmanager.rb: Added for manage plural textdomains.
933
+ * lib/gettext/textdomain.rb: Fix wrong DEFAULT_LOCALE_PATHS if ruby is
934
+ installed non-standard path.
935
+ * lib/gettext/rails.rb: Changed arguments of bindtextdomain, init_gettext
936
+ with backward compatibility.
937
+
938
+ 2006-05-29 Masao Mutoh <mutoh@highway.ne.jp>
939
+
940
+ * lib/gettext/rails.rb:
941
+ Remove GetText::Rails.use_localized_templates.
942
+
943
+ 2006-05-24 Masao Mutoh <mutoh@highway.ne.jp>
944
+
945
+ * lib/gettext/locale_win32.rb: Fix to work with environment
946
+ variables.
947
+
948
+ 2006-05-22 Masao Mutoh <mutoh@highway.ne.jp>
949
+
950
+ * lib/gettext.rb, lib/gettext/textdomain.rb: Keep a textdomain
951
+ per a class instead of per a file.
952
+
953
+ 2006-05-21 Masao Mutoh <mutoh@highway.ne.jp>
954
+
955
+ * lib/gettext/rails.rb: Problem when ActionMailer isn't defined.
956
+ Reported by Gudao Luo.
957
+
958
+ 2006-05-20 Masao Mutoh <mutoh@highway.ne.jp>
959
+
960
+ * lib/gettext/mo.rb: Improved to compare the file time stamps.
961
+ by Nobu Nakada.
962
+
963
+ 2006-05-18 Masao Mutoh <mutoh@highway.ne.jp>
964
+
965
+ * lib/gettext/mo.rb: Fix MOFile#update! works on MS Windows.
966
+ * po/it/rails.po, samples/rails/po/it/*.po: Added by Marco Lazzeri.
967
+
968
+ 2006-05-16 Masao Mutoh <mutoh@highway.ne.jp>
969
+
970
+ * Rakefile: Remove dependency - makemo => poparser.
971
+ Reported by Marco Lazzeri.
972
+
973
+ 2006-05-14 Masao Mutoh <mutoh@highway.ne.jp>
974
+
975
+ * README: Updated.
976
+ * **/po/zh/*.po: Added zh_CN locale by Yingfeng.
977
+ * pre-setup.rb: Remove to call "rails setup" now needless.
978
+ Reported by Hiroyuki Iwatsuki.
979
+
980
+ 2006-05-11 Masao Mutoh <mutoh@highway.ne.jp>
981
+
982
+ * Rakefile: Make samples/rails/log if it's not exisited in
983
+ makemo task.
984
+ * lib/gettext/parser/activerecord.rb: Fixed to work
985
+ Gem-less environment.
986
+ Reported by Nobuhiro IMAI.
987
+
988
+ 2006-05-10 Masao Mutoh <mutoh@highway.ne.jp>
989
+
990
+ * lib/gettext/rails.rb: Fixed custom messages was not
991
+ translated of validation_length_of.
992
+ Reported by babie, charlie.
993
+ * po/ja/rails.po: Separate plural/single messages.
994
+
995
+ 2006-05-07 Masao Mutoh <mutoh@highway.ne.jp>
996
+
997
+ * lib/gettext/version.rb: Increment revision number.
998
+ * NEWS: Updated.
999
+
1000
+ 2006-05-06 Masao Mutoh <mutoh@highway.ne.jp>
1001
+
1002
+ * lib/gettext/rails.rb: error_messages_for works same as
1003
+ actionpack-1.12.1 when nil or symbol are given as @object_name.
1004
+ By arton.
1005
+ * test/gettext_test_rails.rb: Works again.
1006
+
1007
+ 2006-05-05 Masao Mutoh <mutoh@highway.ne.jp>
1008
+
1009
+ * lib/gettext/parser/activerecord.rb: Fixed again.
1010
+
1011
+ 2006-05-04 Masao Mutoh <mutoh@highway.ne.jp>
1012
+
1013
+ * lib/gettext/parser/activerecord.rb: Fixed "duplicate message definition"
1014
+ error in rake updatepo task using ActiveRecord::Base.set_table_name.
1015
+ Reported by Karel Miarka.
1016
+
1017
+ 2006-05-02 Masao Mutoh <mutoh@highway.ne.jp>
1018
+
1019
+ * lib/gettext/rails.rb: Fixed an abort when Rails::Info isn't
1020
+ required like as Typo. Reported by Masayoshi Takahashi.
1021
+
1022
+ 2006-04-30 Masao Mutoh <mutoh@highway.ne.jp>
1023
+
1024
+ * lib/gettext/textdomain.rb: Added GetText::TextDomain#check_mo=,
1025
+ #check_mo?. When the value is true, check the MOFile and if it's
1026
+ updated, reload MOFile again. This is usefule for development
1027
+ time.
1028
+ * lib/gettext/rails.rb: When development mode, check mo files
1029
+ and reload it if it's updated.
1030
+ * lib/gettext/mo.rb: Added MOFile#update!.
1031
+ * lib/gettext/string.rb: String#% doesn't raise ArgumentError
1032
+ when execute ruby with -d option.
1033
+
1034
+ 2006-04-21 Masao Mutoh <mutoh@highway.ne.jp>
1035
+
1036
+ * samples/po/ru/*.po, samples/cgi/po/ru/*.po,
1037
+ samples/rails/po/ru/*.po, po/rgettext.po,
1038
+ rails.po: Added Russian locale by Yuri Kozlov.
1039
+ * README: Revised.
1040
+
1041
+ 2006-04-15 Masao Mutoh <mutoh@highway.ne.jp>
1042
+
1043
+ * NEWS: Updated.
1044
+ * lib/gettext/version.rb: Increment minor version.
1045
+ * test/gettext_test_rails.rb: Works with Rails-1.1.2.
1046
+ * test/gettext_test_locale.rb: Works on OpenBSD 3.8.
1047
+ * ext/gettext/locale_system.c: Set nil instead of "UTF-8"
1048
+ when nl_langinfo is not found.
1049
+ * samples/rails/README: Updated.
1050
+
1051
+ 2006-04-05 Masao Mutoh <mutoh@highway.ne.jp>
1052
+
1053
+ * ext/gettext/locale_system.c: Fix compilation problem
1054
+ when /usr/include/langinfo.h doesn't have CODESET such as OpenBSD.
1055
+ You may need to set OUTPUT_CHARSET to ENV variable in such
1056
+ environment.
1057
+ Reported by Johan Allard.
1058
+
1059
+ 2006-03-25 Masao Mutoh <mutoh@highway.ne.jp>
1060
+
1061
+ * lib/gettext/rails.rb: Revised docs.
1062
+
1063
+ 2006-03-24 Masao Mutoh <mutoh@highway.ne.jp>
1064
+
1065
+ * lib/gettext/rails.rb: Support ActionWebService.
1066
+ Reported by Nick Snels.
1067
+
1068
+ 2006-03-19 Masao Mutoh <mutoh@highway.ne.jp>
1069
+
1070
+ * lib/gettext/rails.rb: Improve multipart-mail in ja locale by Nobuhiro IMAI.
1071
+
1072
+ 2006-03-16 Masao Mutoh <mutoh@highway.ne.jp>
1073
+
1074
+ * lib/gettext/rails.rb: ActiveMailer works with multipart-mail in ja locale.
1075
+ Reported by Nobuhiro IMAI.
1076
+ * lib/gettext/textdomain.rb: GetText::TextDomain.gettext returns "" when
1077
+ arg is "" or nil.
1078
+ * lib/gettext.rb, locale.rb: Fix the problem to switch the locale again.
1079
+ * test/gettext_test.rb: Add the test for above problem.
1080
+ * test/gettext_test_rails.rb: Added, too.
1081
+ * test/test.sh: ditto.
1082
+
1083
+ 2006-03-12 Masao Mutoh <mutoh@highway.ne.jp>
1084
+
1085
+ * lib/gettext.rb: GetText.locale= reset Locale's default locale.
1086
+ Reported by Donald Piret.
1087
+
1088
+ 2006-03-11 Masao Mutoh <mutoh@highway.ne.jp>
1089
+
1090
+ * lib/gettext/rails.rb: ActiveRecord::Column.human_name translates
1091
+ the column name using s_("Model|fieldname").
1092
+ Pointed out by Kazuhiro NISHIYAMA.
1093
+ * samples/rails/lib/tasks/gettext.rake: Move from Rakefile.
1094
+ Pointed out by Kazuhiro NISHIYAMA.
1095
+ * samples/rails/Rakefile: Move gettext tasks to lib/tasks/gettext.rake.
1096
+ * samples/rails/*: Updates files to which generated with rails 1.0.
1097
+ * NEWS: Updated.
1098
+
1099
+ 2006-03-10 Masao Mutoh <mutoh@highway.ne.jp>
1100
+
1101
+ * lib/gettext/rails.rb: Localized ActiveRecord::Base.validates_* works correctly
1102
+ under production mode.
1103
+ Reported by Nickolay Kolev.
1104
+ ActionView::Base#render_file supports localized template such as
1105
+ foo_ja.rhml, foo_ja_JP.rhtml. Revert Action::Controller::Base#render.
1106
+ * NEWS: follow this change.
1107
+
1108
+ 2006-03-09 Masao Mutoh <mutoh@highway.ne.jp>
1109
+
1110
+ * lib/gettext/rails.rb: ActiveRecord::Base.error_message_(title|explanation)
1111
+ works production mode.
1112
+
1113
+ 2006-03-08 Masao Mutoh <mutoh@highway.ne.jp>
1114
+
1115
+ * NEWS: Updated.
1116
+ * lib/gettext/rails.rb: Fix a problem of ActionMailer in "ja".
1117
+ * lib/gettext/version.rb: Incremented version number.
1118
+
1119
+ 2006-03-04 Masao Mutoh <mutoh@highway.ne.jp>
1120
+
1121
+ * lib/gettext/rails.rb: @params["lang"] is treated as cgi["lang"].
1122
+ Reported by Erkki Eilonen.
1123
+
1124
+ 2006-03-03 Masao Mutoh <mutoh@highway.ne.jp>
1125
+
1126
+ * lib/gettext/locale_cgi.rb: Remove debug code.
1127
+ * lib/gettext/locale_object.rb:
1128
+ - Fix a memory leak. Reported by Jonas Schwertfeger.
1129
+ - Locale::Object.parser improved.
1130
+ - Rename Locale::Object#sort_order to #variant.
1131
+ - "POSIX" and "C" locale strings are converted to "en".
1132
+ - Add Locale::Object#to_general.
1133
+ * test/gettext_test_locale.rb: Add tests follow the changes.
1134
+ * lib/gettext/rails.rb:
1135
+ - ActionMailer sends a mail
1136
+ - in ISO-2022-JP if the language is japanese. The idea from
1137
+ Iso2022Mailer by drawnboy.
1138
+ - ActionController::Base.render_text is overrided to find
1139
+ localized templates such as foo_ja.rhml, foo_ja_JP.rhtml.
1140
+ You can reject this to set false to
1141
+ GetText::Rails.use_localized_templates.
1142
+ The idea is from Yugui.
1143
+
1144
+ 2006-03-02 Masao Mutoh <mutoh@highway.ne.jp>
1145
+
1146
+ * samples/rails/app/models/article.rb: Add a sample of
1147
+ ActiveRecord::Base.set_error_message_(title|explanation).
1148
+ * lib/gettext/rails.rb: Fix a non-translated problem on production mode.
1149
+ ActionMailer supported by Albert Ramstedt.
1150
+ ActiveRecord::Base.set_error_message_(title|explanation) accepts Nn_()
1151
+ value(Array).
1152
+
1153
+ 2006-02-25 Masao Mutoh <mutoh@highway.ne.jp>
1154
+
1155
+ * lib/gettext/locale.rb: Fix to return system value when @@default is unset.
1156
+ * lib/gettext/rails.rb: Fix a problem with Locale.default=.
1157
+
1158
+ 2006-02-24 Masao Mutoh <mutoh@highway.ne.jp>
1159
+
1160
+ * lib/gettext.rb: Fix a typo.
1161
+
1162
+ 2006-02-23 Masao Mutoh <mutoh@highway.ne.jp>
1163
+
1164
+ * Rakefile: Fix a problem to make package on Win32.
1165
+ * lib/gettext/textdomain.rb: Rename @mo to @current_mo
1166
+ and add a attr_reader for @current_mo.
1167
+ * README, NEWS: updated.
1168
+ * lib/gettext/rails.rb: Fix to translate error message
1169
+ title/explanation.
1170
+ * lib/gettext/parser/activerecord.rb: Fix an abort when
1171
+ config/database.xml is not defined.
1172
+
1173
+ 2006-02-22 Masao Mutoh <mutoh@highway.ne.jp>
1174
+
1175
+ * lib/gettext/rmsgfmt.rb, string.rb, iconv.rb, utils.rb, rgettext.rb,
1176
+ lib/gettext/parser/*.rb: Apply RDoc.
1177
+ * lib/gettext/version.rb: Increment minor version.
1178
+
1179
+ 2006-02-21 Masao Mutoh <mutoh@highway.ne.jp>
1180
+
1181
+ * test/test.bat: Added for Win32.
1182
+ * test/gettext_test_locale.rb: Added Win32 tests.
1183
+ * lib/gettext/locale_win32.rb: Fix problems.
1184
+ * lib/gettext/locale_object.rb: Added Locale::Object#to_win
1185
+
1186
+ 2006-02-20 Masao Mutoh <mutoh@highway.ne.jp>
1187
+
1188
+ * src/poparser.ry: Added ignore_fuzzy as the 3rd parameter
1189
+ of GetText::PoParser#parse to parse fuzzy comments.
1190
+ Pointed out by speakillof.
1191
+ * lib/gettext/rmsgmerge.rb: Follow the PoParser change below.
1192
+ * test/gettext_test_locale.rb: Apply Locale.clear.
1193
+ * lib/gettext/locale.rb: Added Locale.clear.
1194
+
1195
+ 2006-02-18 Masao Mutoh <mutoh@highway.ne.jp>
1196
+
1197
+ * lib/gettext/locale_cgi.rb: Separate from cgi.rb.
1198
+ * lib/gettext/locale_posix.rb: Rename from locale_default.rb.
1199
+
1200
+ 2006-02-16 Masao Mutoh <mutoh@highway.ne.jp>
1201
+
1202
+ * lib/gettext/textdomain.rb: Add comments.
1203
+ * lib/gettext.rb: Apply Locale::Object. Code cleanup. Add RDoc.
1204
+ * test/gettext_test.rb: Apply gettext.rb changes
1205
+ * test/test.sh: Remove OUTPUT_CHARSET setting.
1206
+
1207
+ 2006-02-15 Masao Mutoh <mutoh@highway.ne.jp>
1208
+
1209
+ * lib/gettext/locale_win32.rb, locale_default.rb, locale.rb: A first argument
1210
+ of Locale::System.get_charset becomes Locale::Object.
1211
+ * lib/gettext/textdomain.rb: Apply Locale::Object, Code cleanup.
1212
+ * lib/gettext.rb: Add GetText.add_default_locale_path.
1213
+ * lib/gettext/locale_object.rb: Add Locale::Object#==.
1214
+ * lib/gettext/textdomain.rb: Add GetText::TextDomain.add_default_locale_path.
1215
+ Pointed out at Bug#3510.
1216
+
1217
+ 2006-02-14 Masao Mutoh <mutoh@highway.ne.jp>
1218
+
1219
+ * Rakefile: Fix compilation problems on mswin32.
1220
+ * ext/gettext/locale_system.c: locale_id returns language ID not LCID.
1221
+
1222
+ 2006-02-13 Masao Mutoh <mutoh@highway.ne.jp>
1223
+
1224
+ * lib/gettext/locale_table_win32.rb: Replace the table and add charset info.
1225
+ * lib/gettext/locale_win32.rb: ditto.
1226
+
1227
+ 2006-02-10 Masao Mutoh <mutoh@highway.ne.jp>
1228
+
1229
+ * lib/gettext/locale_object.rb: Add script, sort_order properties.
1230
+
1231
+ 2006-02-09 Masao Mutoh <mutoh@highway.ne.jp>
1232
+
1233
+ * test/gettext_test_locale.rb: Added modifier test.
1234
+ * lib/gettext/locale_object.rb: Added to parse modifier.
1235
+ * lib/gettext/locale.rb: Fixed bug of Locale#set_current.
1236
+ * test/gettext_test_cgi.rb: Added tests.
1237
+ * lib/gettext/cgi.rb: Apply RDoc.
1238
+ * lib/gettext/locale_default.rb, locale.rb: Modify RDoc.
1239
+ * lib/gettext/locale_win32.rb: Imprement pseudo Locale::System.get_charset().
1240
+
1241
+ 2006-02-07 Masao Mutoh <mutoh@highway.ne.jp>
1242
+
1243
+ * test/gettext_test_locale.rb: Added for new Locale.
1244
+ * lib/gettext/locale.rb: Refactored. Follow to support Locale::Object.
1245
+ Add Locale.set_default, .default=, .system, .default, .current,
1246
+ .set_current, .current=, .current_charset. Reimplemented .get/.set.
1247
+ Locale.set(loctype, localestr) is deprecated. Use Locale.set(localestr) instead.
1248
+ Locale.setlocale(loctype, localestr) is deprecated. Use Locale.set(localestr) instead.
1249
+ Locale.get(loctype) is deprecated. Use Locale.get instead.
1250
+
1251
+ 2006-02-05 Masao Mutoh <mutoh@highway.ne.jp>
1252
+
1253
+ * test/test_rubyparser_n_.rb: Rename from test/test_rubyparser_n.rb.
1254
+ This has a problem on Windows with test/test_rubyparser_N.rb.
1255
+
1256
+ 2006-02-04 Masao Mutoh <mutoh@highway.ne.jp>
1257
+
1258
+ * pre-setup.rb: Remove previous installed files first.
1259
+ * ext/gettext/gettext: Removed.
1260
+ * ext/gettext/locale_system.c: Added as Accessor to system(win32/posix).
1261
+ (Move from ext/gettext/gettext/_locale.c)
1262
+ * ext/gettext/extconf.rb: ditto.
1263
+ * lib/gettext/locale_default.rb: Follow above changes. Apply RDoc.
1264
+ * lib/gettext/locale_win32.rb: Follow above changes. Apply RDoc.
1265
+ * lib/gettext/locale.rb: Code cleanup. Apply RDoc.
1266
+ * lib/gettext/locale_object.rb: Added Locale::Object. Apply RDoc.
1267
+ * setup.rb: Update to 3.4.1.
1268
+
1269
+ 2006-01-25 Masao Mutoh <mutoh@highway.ne.jp>
1270
+
1271
+ * lib/gettext/rmsgmerge.rb: Fixed bugs.
1272
+ Follow the comment messages to GNU GetText. By speakillof.
1273
+
1274
+ 2006-01-20 Masao Mutoh <mutoh@highway.ne.jp>
1275
+
1276
+ * lib/gettext/rails.rb: Added ActiveRecord::Base#error_message_(title|explanation).
1277
+ Reimplement ActionView::Helpers::ActiveRecordHelper::L10n.error_messages_for to
1278
+ separate error_message_(title|explanation) to be able to be overrided by user.
1279
+ The idea is from Trung Tran.
1280
+ * samples/rails/app/models/article.rb: Add a sample of
1281
+ ActiveRecord::Base#error_message_(title|explanation).
1282
+
1283
+ 2006-01-19 Masao Mutoh <mutoh@highway.ne.jp>
1284
+
1285
+ * lib/gettext.rb: n_() accepts first arguments as an Array([msgid, msgid_plural]).
1286
+ * test/gettext_test.rb: Add tests for n_(ary, n), Nn_().
1287
+ * lib/gettext/parser/ruby.rb: Added Nn_() is same purpose with N_, but for n_.
1288
+ * lib/gettext.rb: Added Nn_(msgid, msgid_plural).
1289
+
1290
+ 2006-01-14 Masao Mutoh <mutoh@highway.ne.jp>
1291
+
1292
+ * samples/rails/po/*/blog.po: Updated.
1293
+ * NEWS: Updated.
1294
+
1295
+ 2006-01-10 Masao Mutoh <mutoh@highway.ne.jp>
1296
+
1297
+ * lib/gettext/parser/activerecord.rb: Fixed to fail loading YAML file.
1298
+ By Karel Miarka.
1299
+
1300
+ 2006-01-08 Masao Mutoh <mutoh@highway.ne.jp>
1301
+
1302
+ * *po/el/*.po: Convert to UTF-8. By damphyr.
1303
+
1304
+ 2006-01-07 Masao Mutoh <mutoh@highway.ne.jp>
1305
+
1306
+ * test/gettext_test_parser.rb: Add test_rgettext_parse.
1307
+ * test/test_erb.rxml: Added.
1308
+ * lib/gettext/rails.rb: Added ActionController::TestRequest for testing.
1309
+ Reported by Nick Snels.
1310
+ * samples/rails/README: Added test information.
1311
+ * samples/rails/test/functional/blog_controller_test.rb: Implemented.
1312
+ * **/*po[t]: Revised headers.
1313
+ * samples/po/el/*.po, samples/cgi/po/el/*.po,
1314
+ samples/rails/po/el/*.po, po/el/rgettext.po,
1315
+ rails.po: Added Greek locale by damphyr.
1316
+ * README: Updated.
1317
+ * lib/gettext/version.rb: Increment micro version.
1318
+
1319
+ 2006-01-02 Masao Mutoh <mutoh@highway.ne.jp>
1320
+
1321
+ * lib/gettext/parser/activerecord.rb: Fixed to read configuration
1322
+ correctly. Reported by Donald Piret.
1323
+ Prevent to output duplicate msgid. Reported by Nick Snels.
1324
+
1325
+ 2005-12-31 Masao Mutoh <mutoh@highway.ne.jp>
1326
+
1327
+ * lib/gettext/rails.rb: Check @@gettext_domainname is set first
1328
+ to avoid set the wrong value to the Content-Type when init_gettext
1329
+ is not called. Pointed out by Kazuhiro NISHIYAMA.
1330
+
1331
+ 2005-12-29 Masao Mutoh <mutoh@highway.ne.jp>
1332
+
1333
+ * lib/gettext/locale_win32.rb: Fixed a syntax error.
1334
+ * po/{it,sv}/rgettext.po: Updated.
1335
+ * samples/rails/po/ja/blog.po: Fixed a fuzzy message.
1336
+ * po/de/rgettext.po: Fixed a compilingproblem.
1337
+ * README, NEWS: Updated.
1338
+ * lib/gettext/rails.rb: Fix a problem when
1339
+ http://localhost:3000/rails_info/properties is called.
1340
+ Pointed out by Kazuhiro NISHIYAMA.
1341
+ * po/de/rails.po: Added by Sasa Ebach.
1342
+ * po/de/rgettext.po, samples/rails/po/de/*.po:
1343
+ Updated by Sasa Ebach.
1344
+
1345
+ 2005-12-28 Masao Mutoh <mutoh@highway.ne.jp>
1346
+
1347
+ * NEWS: Updated.
1348
+ * README: Updated.
1349
+ * po/es/rails.po: Added by David Espada.
1350
+ * po/es/rgettext.po, samples/rails/po/es/*.po:
1351
+ Updated by David Espada.
1352
+
1353
+ 2005-12-27 Masao Mutoh <mutoh@highway.ne.jp>
1354
+
1355
+ * test/gettext_test_string.rb: Add a test.
1356
+
1357
+ 2005-12-26 Masao Mutoh <mutoh@highway.ne.jp>
1358
+
1359
+ * samples/rails/app/controllers/blog_controller.rb: Updated.
1360
+
1361
+ 2005-12-25 Masao Mutoh <mutoh@highway.ne.jp>
1362
+
1363
+ * NEWS: Updated.
1364
+ * README: Updated.
1365
+ * lib/gettext/parser/activerecord.rb: Don't show the messages
1366
+ when ActiveRecord and its subclasses are not found.
1367
+ * po/ja/rgettext.po: Updated.
1368
+
1369
+ 2005-12-24 Masao Mutoh <mutoh@highway.ne.jp>
1370
+
1371
+ * samples/po/nl/*.po, samples/cgi/po/nl/*.po,
1372
+ samples/rails/po/nl/*.po, po/nl/rgettext.po,
1373
+ rails.po: Added Dutch locale by Menno Jonkers.
1374
+
1375
+ 2005-12-23 Masao Mutoh <mutoh@highway.ne.jp>
1376
+
1377
+ * README: Updated.
1378
+ * README.ja: Removed.
1379
+ * po/ko/rails.po: Added by Gyoung-Yoon Noh.
1380
+ * po/ko/rgettext.po, samples/po/ko/*.po, samples/cgi/po/ko/*.po,
1381
+ samples/rails/po/ko/*.po: Updated by Gyoung-Yoon Noh.
1382
+ * lib/gettext/textdomain.rb: Fixed a bug when mo-files are not found.
1383
+ * samples/rails/po/en/blog.po: Added for English.
1384
+ You can change the table names, field names of ActiveRecord even you use English.
1385
+ * lib/gettext/textdomain.rb: Code cleanup.
1386
+ * samples/rails/vendor/plugins/gettext/lib/gettext_plugin.rb: begin a new line
1387
+ each 6 language.
1388
+ * samples/rails/vendor/plugins/gettext/po/*: Update version info.
1389
+
1390
+ 2005-12-21 Masao Mutoh <mutoh@highway.ne.jp>
1391
+
1392
+ * samples/rails/README: Updated.
1393
+ * lib/gettext/utils.rb: Added. GetText.update_pofiles.
1394
+ * Rakefile, samples/rails/Rakefile: Use GetText.update_pofiles.
1395
+
1396
+ 2005-12-20 Masao Mutoh <mutoh@highway.ne.jp>
1397
+
1398
+ * lib/gettext/utils.rb: Added. Implement GetText.updatepo.
1399
+ * Rakefile:
1400
+
1401
+ 2005-12-19 Masao Mutoh <mutoh@highway.ne.jp>
1402
+
1403
+ * samples/po/cs/*.po, samples/cgi/po/cs/*.po,
1404
+ samples/rails/po/cs/*.po, po/cs/rgettext.po,
1405
+ rails.po: Added Czech locale by Karel Miarka.
1406
+
1407
+ 2005-12-18 Masao Mutoh <mutoh@highway.ne.jp>
1408
+
1409
+ * po/fr/rgettext.po, samples/cgi/po/fr/main.po:
1410
+ Updated by Laurent Sansonetti.
1411
+ * po/fr/rails.po: Added by Laurent Sansonetti.
1412
+ * po/pt_BR/rails.po, samples/cgi/po/pt_BR/*.po,
1413
+ samples/rails/po/pt_BR/*.po:
1414
+ Added by Joao Pedrosa.
1415
+ * po/pt_BR/rgettext.po, samples/po/pt_BR/*.po:
1416
+ Updated by Joao Pedrosa.
1417
+
1418
+ 2005-12-17 Masao Mutoh <mutoh@highway.ne.jp>
1419
+
1420
+ * po/rails.pot, po/ja/rails.po: Added.
1421
+ * test/gettext_test_string.rb: Added.
1422
+
1423
+ 2005-12-12 Masao Mutoh <mutoh@highway.ne.jp>
1424
+
1425
+ * samples/rails/Rakefile: Added "updatepo" task.
1426
+ * lib/gettext/parser/activerecord.rb: Added a parser for
1427
+ ActiveRecord.
1428
+
1429
+ 2005-12-10 Masao Mutoh <mutoh@highway.ne.jp>
1430
+
1431
+ * lib/gettext/rails.rb: Added GetText information to
1432
+ Rails::Info.
1433
+
1434
+ 2005-12-08 Masao Mutoh <mutoh@highway.ne.jp>
1435
+
1436
+ * test/gettext_test_cgi.rb: Added tests for Locale.normalize.
1437
+ * lib/gettext/cgi.rb: Fix a problem of Locale.normalize.
1438
+
1439
+ 2005-12-07 Masao Mutoh <mutoh@highway.ne.jp>
1440
+
1441
+ * lib/gettext/cgi.rb: Separate Locale.normalize.
1442
+
1443
+ 2005-12-06 Masao Mutoh <mutoh@highway.ne.jp>
1444
+
1445
+ * test/gettext_test.rb, test/po/{da,fr}/plural_error.po:
1446
+ Fix test_plural_format_invalid.
1447
+
1448
+ 2005-12-05 Masao Mutoh <mutoh@highway.ne.jp>
1449
+
1450
+ * test/gettext_test.rb, test/po/*/plural.po: Fix test case.
1451
+
1452
+ 2005-12-04 Masao Mutoh <mutoh@highway.ne.jp>
1453
+
1454
+ * samples/rails/vendor/plugins/gettext/lib/gettext_plugin.rb: Revised comments.
1455
+
1456
+ 2005-12-01 Masao Mutoh <mutoh@highway.ne.jp>
1457
+
1458
+ * lib/gettext/rails.rb: Improved to support L10n for ActiveRecord::Errors.
1459
+ Improve ActionController::Base.init_gettext(_main).
1460
+ * samples/rails/app/controller/application.rb: Improved comments.
1461
+ * samples/rails/app/views/blog/_form.rhtml: Add information to validate.
1462
+
1463
+ 2005-11-27 Masao Mutoh <mutoh@highway.ne.jp>
1464
+
1465
+ * lib/gettext/string.rb: Added. New syntax ":{foo} is bar." % {:foo => "foo"}
1466
+ is supported.
1467
+ * lib/gettext/rmsgmerge.rb: Added.
1468
+ * lib/gettext.rb, lib/gettext/textdomain.rb: Fix a bug of GetText.ngettext.
1469
+
1470
+ 2005-11-25 Masao Mutoh <mutoh@highway.ne.jp>
1471
+
1472
+ * samples/rails/app/*: Rewrite for RoR 0.14.x.
1473
+ * lib/gettext/rails.rb: Added ActionController::Base.init_gettext.
1474
+ * samples/rails/app/controllers/application.rb: ditto.
1475
+
1476
+ 2005-11-23 Masao Mutoh <mutoh@highway.ne.jp>
1477
+
1478
+ * samples/rails/app/controllers/application.rb: Use
1479
+ GetText.output_charset to set the Content-Type.
1480
+ * lib/gettext/rails.rb: Call bindtextdomain in models(ActiveRecord)
1481
+ when bindtextdomain is called in before_filter of ActionController.
1482
+ Inspired from Simon Santoro.
1483
+ * samples/rails/app/models/article.rb: Added to validate description
1484
+ with localized message.
1485
+
1486
+ 2005-10-22 Masao Mutoh <mutoh@highway.ne.jp>
1487
+
1488
+ * po/*: Merge rmsgfmt to rgettext.
1489
+ * po/**/rmsgfmt.po[t]: Removed(merge to rgettext.po[t]).
1490
+ * lib/gettext/rmsgmerge.rb: Added by speakillof.
1491
+ * bin/rmsgmerge: Added.
1492
+ * src/poparser.ry: Renamed rmsgfmt.ry to poparser.ry.
1493
+ * lib/gettext/rmsgfmt.rb: Added. Separate code from rmsgfmt.ry.
1494
+ * Rakefile: Check racc is existed or not.
1495
+ * lib/gettext/mo.rb: Follow poparser.ry changes.
1496
+
1497
+ 2005-09-16 Masao Mutoh <mutoh@highway.ne.jp>
1498
+
1499
+ * lib/gettext/rgettext.rb: Fixed a header of time strings.
1500
+ Reported by Karel Miarka.
1501
+
1502
+ 2005-09-12 speakillof <speakillof@yahoo.co.jp>
1503
+
1504
+ * lib/gettext/parser/ruby.rb: Added "here document" support.
1505
+
1506
+ 2005-09-05 Masao Mutoh <mutoh@highway.ne.jp>
1507
+
1508
+ * lib/gettext.rb: Added GetText.locale. Both of GetText.locale= and
1509
+ GetText.locale behaves "global". If you set this once, follow bindtextdomain(s)
1510
+ use this value.
1511
+ * lib/gettext/cgi.rb: Added Locale.set.
1512
+ * lib/gettext/locale_win32.rb: ENV value is prior to native locale.
1513
+ Added Locale.set.
1514
+ * test/gettext_test.rb: Follow above changes.
1515
+
1516
+ 2005-09-04 Masao Mutoh <mutoh@highway.ne.jp>
1517
+
1518
+ * Rakefile: move test task to testunit task.
1519
+ * samples/cgi/*.cgi: Support rubygems.
1520
+ * lib/gettext/rails.rb: The default of "charset" parameter becomes nil
1521
+ instead of "UTF-8". You need to call GetText.output_charset=() first.
1522
+ * samples/rails/app/controllers/application.rb:
1523
+ Call GetText.output_charset = "UTF-8" first.
1524
+
1525
+ 2005-09-03 Masao Mutoh <mutoh@highway.ne.jp>
1526
+
1527
+ * src/rmsgfmt.ry: Fixed VERSION info.
1528
+ * Rakefile: Update to make package correctly. Call create_mofiles
1529
+ for test/po/
1530
+ Add test task.
1531
+ Create win32 package correctly on Win32.
1532
+ * test/makemo.rb: Removed. Use rake makemo instead.
1533
+ * NEWS: Added.
1534
+ * 1.0.0 released.
1535
+
1536
+ 2005-08-31 Masao Mutoh <mutoh@highway.ne.jp>
1537
+
1538
+ * samples/cgi/Rakefile: Added.
1539
+ * samples/cgi/README: Modified.
1540
+ * samples/README: Modified.
1541
+ * samples/po/ko/*.po: Added Korean by Gyoung-Yoon Noh.
1542
+ * src/rmsgfmt.ry, po/**/rmsgfmt.po: Fix a typo.
1543
+ * samples/makemo.rb: Re-add for creating mo-files.
1544
+ * po/es/*.po: Updated by David Espada.
1545
+ * po/samples/rails/es/*.po: Added by David Espada.
1546
+ * po/de/*.po: Updated by Sven Herzberg.
1547
+ * po/samples/rails/de/*.po: Added by Sven Herzberg.
1548
+ * po/fr/*.po: Updated by Laurent Sansonetti.
1549
+ * po/samples/rails/fr/*.po: Added by Laurent Sansonetti.
1550
+ * README, README.ja: Updated.
1551
+ * samples/rails/*.[rb|rhtml]: Modified header informations.
1552
+ * lib/gettext/version.rb: Modified header information.
1553
+ * samples/rails/README: Revised.
1554
+ * samples/rails/db/postgresql.sql: Added.
1555
+
1556
+ 2005-08-30 Masao Mutoh <mutoh@highway.ne.jp>
1557
+
1558
+ * po/ko/*.po, samples/cgi/po/ko/*.po, samples/rails/po/ko/*.po:
1559
+ Added Korean by Gyoung-Yoon Noh.
1560
+ * lib/gettext/textdomain.rb: Improve to print error message when
1561
+ No mo files were found.
1562
+
1563
+ 2005-08-28 Masao Mutoh <mutoh@highway.ne.jp>
1564
+
1565
+ * samples/rails/*: Added a sample for Ruby on Rails.
1566
+
1567
+ 2005-08-27 Masao Mutoh <mutoh@highway.ne.jp>
1568
+
1569
+ * lib/gettext/textdomain.rb: Added search mo-path:
1570
+ #{gems_path}/#{app}/locale/#{lang}/
1571
+ * lib/gettext/cgi.rb: Fix an alias bug(set_cgi is an
1572
+ alias of cgi=, not cgi).
1573
+
1574
+ 2005-08-23 Masao Mutoh <mutoh@highway.ne.jp>
1575
+
1576
+ * samples/cgi/helloerb1.cgi, helloerb2.cgi:
1577
+ Set @domainname obviously.
1578
+ * pre-clean.rb: Removed.
1579
+ * samples/makemo.rb, samples/cgi/makemo.rb:
1580
+ Removed. Use "rake makemo" instead.
1581
+ * post-setup.rb: Added "lib" to library path.
1582
+ * lib/gettext/locale.rb: Added pseudo Locale module when
1583
+ no _locale.so is found.(installation time by rake only)
1584
+
1585
+ 2005-08-21 Masao Mutoh <mutoh@highway.ne.jp>
1586
+
1587
+ * src/rmsgfmt.ry: Added GetText.create_mofiles.
1588
+ * test/gettext_test.rb, testlib4.rb: Added tests for
1589
+ GetText.textdomain.
1590
+ * samples/hello_textdomain.rb: Added a sample for
1591
+ GetText.textdomain.
1592
+ * lib/gettext/locale_default.rb: Call setlocale first.
1593
+ * lib/gettext.rb: Added GetText.textdomain.
1594
+ Added NoboundTextDomainError.
1595
+ * lib/gettext/textdomain.rb: Added TextDomain#charset.
1596
+ * lib/gettext/container.rb: Rename @domainname to
1597
+ @gettext_container_domainname.
1598
+ Pointed out by speakillof.
1599
+ * pre-setup.rb: call rake setup.
1600
+
1601
+ 2005-08-20 Masao Mutoh <mutoh@highway.ne.jp>
1602
+
1603
+ * lib/gettext/locale.rb: require '_locale' if 'gettext/_locale'
1604
+ failed to load(for rubygems).
1605
+
1606
+ 2005-08-18 Masao Mutoh <mutoh@highway.ne.jp>
1607
+
1608
+ * lib/gettext/textdomain.rb: Add Gem paths as search paths.
1609
+
1610
+ 2005-08-15 Masao Mutoh <mutoh@highway.ne.jp>
1611
+
1612
+ * bin/rmsgfmt: Move methods to src/rmsgfmt.ry.
1613
+ * src/rmsgfmt.ry: Improved. Added GetText.rmsgfmt.
1614
+
1615
+ 2005-08-14 Masao Mutoh <mutoh@highway.ne.jp>
1616
+
1617
+ * Rakefile: Added.
1618
+ * lib/gettext/version.rb: Added.
1619
+ * lib/pre-setup.rb: Removed.
1620
+ * lib/gettext/rgettext.rb: Added. Added GetText.rgettext.
1621
+
1622
+ 2005-08-13 Masao Mutoh <mutoh@highway.ne.jp>
1623
+
1624
+ * README, REAMDE.ja: Updated informations.
1625
+ * The project moves to rubyforge.
1626
+
1627
+ 2005-05-01 Masao Mutoh <mutoh@highway.ne.jp>
1628
+
1629
+ * lib/gettext/locale_win32.rb: Added pseudo constants of setlocale.
1630
+ * samples/cgi/ruby.bat: Added for Win32.
1631
+ * samples/cgi/README: Modified.
1632
+ * samples/cgi/http.rb: Support Win32.
1633
+ * 0.9.0 released.
1634
+
1635
+ 2005-04-30 Masao Mutoh <mutoh@highway.ne.jp>
1636
+
1637
+ * lib/gettext/cgi.rb: Added Locale.set_cgi() as alias of .cgi=.
1638
+
1639
+ 2005-04-25 Masao Mutoh <mutoh@highway.ne.jp>
1640
+
1641
+ * samples/cgi/po/de/: Translated by Detlef Reichl.
1642
+ * samples/cgi/po/es/: Translated by David Moreno Garza.
1643
+ * samples/cgi/po/it/: Translated by Gabriele Renzi.
1644
+ * samples/po/it/: Translated by Gabriele Renzi.
1645
+
1646
+ 2005-04-24 Masao Mutoh <mutoh@highway.ne.jp>
1647
+
1648
+ * po/de/*.po : Translated by Detlef Reichl.
1649
+ * po/it/*.po : Translated by Gabriele Renzi.
1650
+
1651
+ 2005-04-23 Masao Mutoh <mutoh@highway.ne.jp>
1652
+
1653
+ * src/rmsgfmt.ry: Fix a bug not to unesacpe '"'.
1654
+ Support new transltations.
1655
+ * samples/cgi/*: Updated.
1656
+ * samples/cgi/po/fr/*: Translated by Laurent Sansonetti.
1657
+
1658
+ 2005-04-22 Masao Mutoh <mutoh@highway.ne.jp>
1659
+
1660
+ * lib/gettext/cgi.rb: Locale.get checks the cookie value.
1661
+ The search priority is:
1662
+ query_string(lang) > cookie(lang) > HTTP_ACCEPT_LANGUAGE > "en".
1663
+
1664
+ 2005-04-21 Masao Mutoh <mutoh@highway.ne.jp>
1665
+
1666
+ * lib/gettext/cgi.rb: Added Locale.cgi=, .cgi,
1667
+ GetText.cgi=, .cgi, .set_cgi.
1668
+
1669
+ 2005-04-20 Masao Mutoh <mutoh@highway.ne.jp>
1670
+
1671
+ * lib/gettext.rb: Defined domain name as @domainname.
1672
+ Added GetText.set_output_charset as alias of .output_charset=.
1673
+ * lib/gettext/container.rb: Added.
1674
+ * lib/gettext/erb.rb: Make ErbContainer a module not a class
1675
+ and includes GetText::Container.
1676
+ * samples/erb/*: Follow this changes.
1677
+ * samples/cgi/, erb/: Move erb/ to cgi/.
1678
+
1679
+ 2005-04-19 Masao Mutoh <mutoh@highway.ne.jp>
1680
+
1681
+ * samples/erb/*: Added sample for CGI/ERB.
1682
+
1683
+ 2005-04-18 Masao Mutoh <mutoh@highway.ne.jp>
1684
+
1685
+ * lib/gettext/erb.rb: Added for ERB support.
1686
+ * lib/gettext/cgi.rb: Added for CGI support.
1687
+ * lib/gettext.rb: Add GetText.output_charset=.
1688
+
1689
+ 2005-04-11 Masao Mutoh <mutoh@highway.ne.jp>
1690
+
1691
+ * lib/gettext.rb: Add GetText.set_locale, set_charset.
1692
+
1693
+ 2005-04-10 Masao Mutoh <mutoh@highway.ne.jp>
1694
+
1695
+ * src/rmsgfmt.ry: Remove comment_old which isn't used anymore.
1696
+
1697
+ 2005-04-09 Masao Mutoh <mutoh@highway.ne.jp>
1698
+
1699
+ * lib/gettext/gettext.rb, locale.rb, locale_default.rb:
1700
+ Fix bugs that Locale.get, Locale.codeset return wrong values.
1701
+ * test/gettext_text.rb: Add test for Locale module.
1702
+
1703
+ 2005-04-02 Masao Mutoh <mutoh@highway.ne.jp>
1704
+
1705
+ * test/gettext_test_parser.rb, test_erb.rhtml:
1706
+ Added tests for erb parser.
1707
+ * lib/gettext/textdomain.rb: print debug message to
1708
+ $stderr, not $stdout.
1709
+ * lib/gettext/parser/erb.rb: Added.
1710
+ rgettext support ERB. Inspired by Sascha Ebach.
1711
+ * lib/gettext/parser/*.rb, bin/rgettext: Code clean up.
1712
+
1713
+ 2005-03-31 Masao Mutoh <mutoh@highway.ne.jp>
1714
+
1715
+ * lib/gettext.rb, lib/gettext/textdomain.rb:
1716
+ reimplement sgettext.
1717
+ * lib/gettext.rb: Improve GetText.bindtextdomain
1718
+ * test/makemo.rb, samples/makemo.rb: Improve to run rmsgfmt.
1719
+ * pre-setup.rb: Improve to run racc.
1720
+
1721
+ 2005-03-28 Masao Mutoh <mutoh@highway.ne.jp>
1722
+
1723
+ * ext/gettext/gettext/_locale.c: Locale.codeset calls
1724
+ setlocale(LC_CTYPE, "") not LC_ALL.
1725
+ * lib/gettext.rb: Update VERSION info.
1726
+ * lib/gettext/locale.rb: Remove to read LC_CTYPE.
1727
+ Now, this uses the environment variables LC_ALL,
1728
+ LC_MESSAGES and LANG (in that order) same as GNU GetText.
1729
+ Point outed by Dafydd Harries.
1730
+ * samples/helloglade2.rb: Run correctly on the samples directory.
1731
+ * 0.8.1 released.
1732
+
1733
+ 2005-03-20 Masao Mutoh <mutoh@highway.ne.jp>
1734
+
1735
+ * src/rmsgfmt.ry: Fix a problem with \r, \t, \n.
1736
+ Reported by Guillaume Cottenceau.
1737
+
1738
+ 2004-11-27 Masao Mutoh <mutoh@highway.ne.jp>
1739
+
1740
+ * src/rmsgfmt.ry: Fix an error when #~ lines are existed.
1741
+ Pointed out by Patrick GUNDLACH.
1742
+ * lib/gettext/parser/ruby.rb: Fix rgettext ignore "\#" by Kazuhiro NISHIYAMA.
1743
+ * test/test_rubyparser.rb, gettext_test_parser.rb: Added test for "\#".
1744
+
1745
+ 2004-11-07 Masao Mutoh <mutoh@highway.ne.jp>
1746
+
1747
+ * po/pt_BR/*.po, samples/po/pt_BR/*.po: Added. Translated by Joao Pedrosa.
1748
+
1749
+ 2004-11-06 Masao Mutoh <mutoh@highway.ne.jp>
1750
+
1751
+ * README, README.ja: Revised.
1752
+ * po/sv/*.po, samples/po/sv/*.po: Added. Translated by Nikolai Weibull.
1753
+ * po/es/*.po, samples/po/es/*.po: Added. Translated by David Espada.
1754
+ * 0.8.0 released.
1755
+
1756
+ 2004-11-05 Masao Mutoh <mutoh@highway.ne.jp>
1757
+
1758
+ * po/fr/*.po, samples/po/fr/*.po: Added. Translated by Laurent Sansonetti.
1759
+ * test/test_rubyparser_N.rb: Added.
1760
+ * test/test_rubyparser.rb: Added a test.
1761
+ * lib/gettext.rb: Increment minor version.
1762
+
1763
+ 2004-11-04 Masao Mutoh <mutoh@highway.ne.jp>
1764
+
1765
+ * test/gettext_test_parser.rb: Added test for n_().
1766
+ * lib/gettext/parser/ruby.rb: Improved to parse n_().
1767
+ * test/test_rubyparser_n.rb: Added.
1768
+
1769
+ 2004-11-03 Masao Mutoh <mutoh@highway.ne.jp>
1770
+
1771
+ * lib/gettext/parser/ruby.rb: Support _("a" + "b") pattern as "ab".
1772
+
1773
+ 2004-10-23 Masao Mutoh <mutoh@highway.ne.jp>
1774
+
1775
+ * setup.rb: Update to setup.rb-3.3.1.
1776
+ * README, README.ja: Modified.
1777
+ * 0.7.0 released.
1778
+
1779
+ 2004-10-22 Masao Mutoh <mutoh@highway.ne.jp>
1780
+
1781
+ * lib/gettext/iconv.rb: Added.
1782
+ * lib/gettext/mo.rb: Requires 'gettext/iconv' instead of 'iconv'.
1783
+
1784
+ 2004-10-21 Masao Mutoh <mutoh@highway.ne.jp>
1785
+
1786
+ * lib/gettext.rb: every methods don't raise error when
1787
+ GetText.bindtextdomain isn't called first.
1788
+
1789
+ 2004-10-12 Masao Mutoh <mutoh@highway.ne.jp>
1790
+
1791
+ * bin/rgettext: Modified header like as GNU GetText.
1792
+ Escape double quote correctly.
1793
+ * test/gettext_test_parser.rb: Added tests for GetText::GladeParser.
1794
+ * test/test_gladeparser.rb: Added.
1795
+
1796
+ 2004-10-11 Masao Mutoh <mutoh@highway.ne.jp>
1797
+
1798
+ * lib/gettext/textdomain.rb: Added GETTEXT_PATH environment variable
1799
+ for searching path. This is for testing/debugging.
1800
+ Improved GetText::TextDomain#set_locale.
1801
+ Reported by Dafydd Harries from Debian Bug Tracking System #275010.
1802
+ * lib/gettext.rb, lib/gettext/textdomain.rb: Separate
1803
+ GetText::Domain to lib/gettext/textdomain.rb.
1804
+ * lib/gettext.rb: Increment GetText::VERSION.
1805
+
1806
+ 2004-08-12 Masao Mutoh <mutoh@highway.ne.jp>
1807
+
1808
+ * lib/gettext.rb: Add GetText.sgettext(msgid), .s_(msgid) .
1809
+ * bin/rgettext: Support GetText.sgettext, .s_.
1810
+ * test/gettext_test.rb, test_sgettext.rb, test/po/ja/test_sgettext.po:
1811
+ Added for GetText.sgettext, .s_ tests.
1812
+
1813
+ 2004-07-21 Masao Mutoh <mutoh@highway.ne.jp>
1814
+
1815
+ * README, README.ja: Modified some old descriptions.
1816
+ * lib/gettext.rb: Incremented revision.
1817
+ * 0.6.1 released.
1818
+
1819
+ 2004-07-11 Masao Mutoh <mutoh@highway.ne.jp>
1820
+
1821
+ * lib/gettext/parser/glade.rb: Fixed a bug for empty-string value.
1822
+ * post-setup.rb: Fixed a install problem reported by wwp.
1823
+
1824
+ 2004-07-04 Masao Mutoh <mutoh@highway.ne.jp>
1825
+
1826
+ * post-setup.rb, pre-clean.rb, pre-setup.rb: Improved
1827
+ by Nobu Nakada.
1828
+ * setup.rb: Replaced install.rb. Pointed out by Nobu Nakada.
1829
+ * README, README.ja: Follow above changes.
1830
+
1831
+ 2004-07-03 Masao Mutoh <mutoh@highway.ne.jp>
1832
+
1833
+ * test/gettext_test.rb: Added some complex cases.
1834
+ * test/gettext_runner.rb: Added.
1835
+ * test/po/ja/test_rubyparser.po: Added.
1836
+ * lib/gettext.rb: Added GetText::VERSION.
1837
+ * docs/*: Removed. See website instead.
1838
+ * 0.6.0 released.
1839
+
1840
+ 2004-06-27 Masao Mutoh <mutoh@highway.ne.jp>
1841
+
1842
+ * bin/rgettext: Support Glade-2 XML file.
1843
+ * po/ja/rgettext.po: Ditto.
1844
+ * lib/gettext/parser/ruby.rb, glade.rb: Added.
1845
+ * test/gettext_test_parser.rb, test_rubyparser.rb: Added.
1846
+ * lib/gettext/parser/ruby.rb: Improved to parse complex strings.
1847
+
1848
+ 2004-06-23 Masao Mutoh <mutoh@highway.ne.jp>
1849
+
1850
+ * lib/gettext/mo.rb: Fix a bug to save data to a file.
1851
+
1852
+ 2004-06-15 Masao Mutoh <mutoh@highway.ne.jp>
1853
+
1854
+ * src/rmsgfmt.ry: Force override if the file exist. This is the same
1855
+ behavior as GNU msgfmt.
1856
+ * lib/gettext/mo.rb: Fixed a bug that "Plural-Forms"
1857
+ part isn't defined in po-file but has plural part.
1858
+ Reported by Dafydd Harries.
1859
+ * test/po/[fr|ja|de]/plural_error.po: Added for a test of plural forms.
1860
+ * test/gettext_test.rb: ditto.
1861
+
1862
+ 2004-03-26 Masao Mutoh <mutoh@highway.ne.jp>
1863
+
1864
+ * lib/gettext.rb: Fixed to return empty strings
1865
+ when translated strings are empty.
1866
+ * 0.5.5 released.
1867
+
1868
+ 2004-02-14 Masao Mutoh <mutoh@highway.ne.jp>
1869
+
1870
+ * lib/gettext/locale.rb: Changes PLATFORM to RUBY_PLATFORM for ruby-1.9.
1871
+ * 0.5.4 released.
1872
+
1873
+ 2003-12-02 Masao Mutoh <mutoh@highway.ne.jp>
1874
+
1875
+ * lib/gettext.rb: Improve the initial speed.
1876
+ * 0.5.3 released.
1877
+
1878
+ 2003-11-27 Masao Mutoh <mutoh@highway.ne.jp>
1879
+
1880
+ * bin/rgettext: Fix bugs when \M or \C are given.
1881
+
1882
+ 2003-11-12 Masao Mutoh <mutoh@highway.ne.jp>
1883
+
1884
+ * ext/gettext/gettext/_locale.c: Fix bugs for Win32.
1885
+ Pointed out by Nobu Nakada.
1886
+ * docs/config.rb: Removed.
1887
+ * docs/rd/*/ruby-gettext.rd: Modified.
1888
+ * 0.5.2 released.
1889
+
1890
+ 2003-07-05 Masao Mutoh <mutoh@highway.ne.jp>
1891
+
1892
+ * ext/gettext/gettext/_locale.c: Define Locale.setlocale() and LC_* constants.
1893
+ * lib/gettext.rb, lib/gettext/*.rb: Code cleanup.
1894
+ * post-setup.rb: Fix mo files had not been compiled.
1895
+ * 0.5.1 released.
1896
+
1897
+ 2003-07-04 Masao Mutoh <mutoh@highway.ne.jp>
1898
+
1899
+ * samples/hello2.rb: Fix warning for ruby-1.8.x.
1900
+ * ext/gettext/gettext/_locale.c: Call setlocale(LC_NUMERIC, "C")
1901
+ for some locales which doesn't use "." as decimal-point.
1902
+ * pre-setup.rb: Removed.
1903
+ * post-setup.rb: Fix some bugs.
1904
+
1905
+ 2003-01-07 Masao Mutoh <mutoh@highway.ne.jp>
1906
+
1907
+ * samples/hellogtk2.rb: Support Ruby/GTK2.
1908
+ * gettext/mo.rb: Fix for bad mo files which don't include header part.
1909
+ * bin/rgettext: Remove ",fuzzy" for header part. Set default charset to UTF-8.
1910
+ * src/rmsgfmt.ry, po/rmsgfmt.pot, po/ja/rmsgfmt.po: Add files.
1911
+ * 0.5.0 released.
1912
+
1913
+ 2002-10-21 Masao Mutoh <mutoh@highway.ne.jp>
1914
+
1915
+ * Support ngettext(alias name is n_).
1916
+ * Change directory structure.
1917
+ * Remove *.mo from tar-ball(they are created automatically in installing).
1918
+ * bin/rgettext, po/rgettext.pot, po/ja/rgettext.po: Revise help message.
1919
+ * bin/rgettext: Fix POT-Creation-Date was localized.
1920
+ * samples/hello_plural.rb: Add a sample.
1921
+ * test/*: Add test for ngettext.
1922
+ * 0.4.0 released.
1923
+
1924
+ 2002-10-18 Masao Mutoh <mutoh@highway.ne.jp>
1925
+
1926
+ * lib/gettext/mo.rb: Fix bad return value when msgstr is not existed.
1927
+ Pointed out by Shinobu TAKANASHI <sino@e-turi.net>
1928
+ * test/*: Change RubyUnit to Test::Unit.
1929
+ * 0.3.2 released.
1930
+
1931
+ 2002-07-06 Masao Mutoh <mutoh@highway.ne.jp>
1932
+
1933
+ * lib/locale.rb: Support MinGW.
1934
+ * lib/mo.rb: Support platforms which do not support Iconv.
1935
+ * 0.3.1 released.
1936
+
1937
+ 2002-07-02 WATANABE Hirofumi <eban@os.rim.or.jp>
1938
+
1939
+ * ext/gettext/gettext/extconf.rb:Support MinGW.
1940
+
1941
+ 2002-07-01 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
1942
+
1943
+ * ext/gettext/gettext/_locale.c: Code cleanup.
1944
+ * po/ja.po: Fix typo.
1945
+ * pre-install.rb: Code cleanup.
1946
+
1947
+ 2002-06-30 Masao Mutoh <mutoh@highway.ne.jp>
1948
+
1949
+ * Support to convert output strings with charset(codeset).
1950
+ - Add 4th parameter to GetText.bindtextdomain for charset
1951
+ - Add GetText.charset=().
1952
+ - Support Environment variable OUTPUT_CHARSET.
1953
+ * samples/po/makemo.rb: support Ruby-1.6.x.
1954
+ Reported by KUMAGAI Hidetake <ggb03124@nifty.ne.jp>
1955
+ * 0.3.0 released.
1956
+
1957
+ 2002-02-22 Masao Mutoh <mutoh@highway.ne.jp>
1958
+
1959
+ * docs/rd/[ja|en]/ruby-gettext.rd: Some modified.
1960
+ * lib/gettext.rb: show more informations in debug mode(-d)
1961
+ * bin/rgettext: BugFix for bad implementation of GetText.N_(msg).
1962
+ by Masahiro Sakai<zvm01052@nifty.ne.jp>
1963
+ * po/ja.po: change charset from iso-2022-jp to euc-jp.
1964
+ by Masahiro Sakai<zvm01052@nifty.ne.jp>
1965
+ * 0.2.1 released.
1966
+
1967
+ 2002-02-21 Masao Mutoh <mutoh@highway.ne.jp>
1968
+
1969
+ * lib/gettext.rb: Implement GetText.N_(msg)
1970
+ * bin/rgettext: Apply to GetText.N_(msg)
1971
+ * samples/hello_noop.rb: Add a sample for GetText.N_(msg).
1972
+ * test/gettext_test.rb: Add test_noop.
1973
+ * docs/rd/[ja|en]/ruby-gettext.rd: Add an explanation of GetText.N_(msg).
1974
+ * 0.2.0 released.
1975
+
1976
+ 2002-02-13 Masao Mutoh <mutoh@highway.ne.jp>
1977
+ * ruby-gettext-package:
1978
+ Move pre-clean.rb to pre-install.rb.
1979
+ Reported by Yoshifumi Hiramatsu<hiramatu@boreas.dti.ne.jp>
1980
+ * lib/gettext.rb: Improve search-path(@locale_dirs).
1981
+ * bin/rgettext, samples/*.rb:
1982
+ Improve first line(Add #! line or change #!/usr/bin/env ruby to
1983
+ #!/usr/local/bin/ruby).
1984
+ * samples/hellotk.rb: add new sample for Ruby/Tk
1985
+ * 0.1.2 released.
1986
+
1987
+ 2002-02-03 Masao Mutoh <mutoh@highway.ne.jp>
1988
+
1989
+ * lib/gettext.rb: BugFix to occur an error
1990
+ when all of locale is not set.
1991
+ * README, README.ja: Modified about Bad explanation
1992
+ in Install section. Reported by
1993
+ Yoshifumi Hiramatsu<hiramatu@boreas.dti.ne.jp>
1994
+ * docs/rd/*/ruby-gettext.rd: Some improvements.
1995
+ * docs/yard2html.rb: Some improvements.
1996
+ * 0.1.1 released.
1997
+
1998
+ 2002-01-06 Masao Mutoh <mutoh@highway.ne.jp>
1999
+
2000
+ * lib/gettext.rb: Bugfix for bad scope.
2001
+ * bin/rgettext: Sort by file, lineno.
2002
+ * test/: Add one test.
2003
+ * docs/rd/*/ruby-gettext.rd: Modified about rgettext.
2004
+ * 0.1.0 released.
2005
+
2006
+ 2002-01-01 Masao Mutoh <mutoh@highway.ne.jp>
2007
+
2008
+ * docs/: Add english document and some improvements.
2009
+ * test/: Add one test.
2010
+ * samples/: Add hello2.rb.
2011
+ * 0.0.2 released.
2012
+
2013
+ 2001-12-24 Masao Mutoh <mutoh@highway.ne.jp>
2014
+
2015
+ * test release
2016
+