forked from mutoh/gettext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog-1
2016 lines (1411 loc) · 68.6 KB
/
ChangeLog-1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(OBSOLETE: Move to ChangeLog since 2.0.0)
2009-02-05 Masao Mutoh <[email protected]>
* bin/*: Apply all changes.
2009-02-04 Masao Mutoh <[email protected]>
* lib/gettext/parser/ruby.rb: Removed "\000" of plural messages.
2009-01-22 Masao Mutoh <[email protected]>
* lib/gettext/rails_compat.rb, container.rb: Removed.
* lib/gettext/erb.rb: Removed.
* samples/cgi/*.cgi: Updated.
* test/test_parser.rb: Removed the part of active_record.
2009-01-17 Masao Mutoh <[email protected]>
* README, *: Remove files for rails. They will move to gettext_rails.
2008-12-31 Masao Mutoh <[email protected]>
* lib/gettext/*.rb: Reimplemented.
* lib/gettext/tools.rb: Added for replacing lib/gettext/utils.rb
* lib/gettext/utils.rb: Deprecated. Use tools.rb instead.
* lib/gettext/tools/rgettext.rb, rmsgfmt.rb: Move from
lib/gettext/rgettext.rb, rmsgfmt.rb.
2008-12-30 Masao Mutoh <[email protected]>
* lib/gettext.rb: Reimplemented.
* lib/gettext/textdomain_manager.rb: Reimplemented.
* lib/gettext/class_info.rb: Move from lib/gettext.rb.
* lib/gettext/core_ext/string.rb, iconv.rb:
Move from lib/gettext/string.rb, iconv.rb.
2008-12-12 Masao Mutoh <[email protected]>
* lib/gettext/textdomain.rb: Reimplemented.
2008-12-07 Masao Mutoh <[email protected]>
* lib/gettext/mofile.rb: Rename mo.rb to mofile.rb.
2008-12-06 Masao Mutoh <[email protected]>
* lib/locale.rb, lib/locale/*: Removed(Move to locale.rubyforge.org).
2008-12-02 Masao Mutoh <[email protected]>
* po/de/rails.po, po/ru/rails.po: Improve translations.
By Vladimir Dobriakov
2008-12-01 Masao Mutoh <[email protected]>
* lib/gettext/parser/ruby.rb: exit 1 if it occurs parsing error.
Reported by Morus Walter.
2008-11-13 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Fixed error_messages_for with Array argument.
By Tuptus.
2008-11-02 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Fixed GetText::Rails::normalized_locale returns
wrong value. Bug#22651. Reported by Fabio M.A.
* test/test_rails.rb: Add the test for normalized_locale.
2008-10-11 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Fixed (before|after)_init_gettext to work under
production mode. Reported by Kazuhiro NISHIYAMA.
2008-09-14 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Fixed expire_fragment with rails < 2.1.(Bug#21712).
* lib/gettext.rb: Remove p_ method when xx("double x") library is loaded
because of conflicting the method name.(Bug#21532) Reported by
Rémy-Christophe Schermesser, Donald Piret.
* lib/gettext/utils.rb: Remove UTF-8 BOM from po-file before executeing
msgmerge which doesn't accept BOM. Suggested by César Duque Calle.
* po/eo/rgettext.po: Fixed a typo.
2008-09-13 Masao Mutoh <[email protected]>
* lib/gettext/utils.rb: Use msgmerge --help instead of --version to
check msgmerge is existed. Suggested by César Duque Calle.
* **/po/bg/*.po: Added by Sava Chankov.
2008-08-24 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: render_file_with_gettext catch Exception and use
render_file_without_gettext if render_file_with_gettext is failed.
Suggested by Vladimir Dobriakov.
* lib/locale/posix.rb: Call "locale charmap" to get the system locale charset.
Reported by Tatsuki Sugiura.
2008-08-20 Masao Mutoh <[email protected]>
* lib/locale/object.rb: Locale::Object.parse accept nil or "" as locale_name.
It replaces to "en". By Vladimir Dobriakov.
* test/test_locale.rb: Add the test above.
2008-08-16 Masao Mutoh <[email protected]>
* po/ja/rails.po: Fixed a wrong translation.
2008-08-10 Masao Mutoh <[email protected]>
* po/et/rails.po: Updated by Erkki Eilonen.
* po/et/rgettext.po: Added by Erkki Eilonen.
2008-08-07 Masao Mutoh <[email protected]>
* README: Updated.
* po/fr/*.po: Updated by Vincent Isambart.
* test/test_gettext.rb, test/testlib/npgettext.rb, test/po/ja/test_npgettext.po:
Add test for np_(npgettext).
2008-08-03 Masao Mutoh <[email protected]>
* lib/gettext/rgettext.rb, lib/gettext/parser/ruby.rb:
Add npgettext support.
2008-07-31 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Works on rails-2.0.2 again.
2008-07-27 Masao Mutoh <[email protected]>
* src/poparser.ry: msgctxt/pgettext support.
* test/test_gettext.rb: Add pgettext test.
2008-07-26 Masao Mutoh <[email protected]>
* lib/gettext/utils.rb: Improve create_mofiles to show the file which has errors.
* lib/gettext/parser/ruby.rb,
lib/gettext/rgettext.rb: msgctxt/pgettext support.
* test/testlib/pgettext.rb, test/po/ja/test_pgettext.po: Added for msgctxt/pgettext.
* **/po/lv/*.po: Added lv locales by Aivars Akots.
2008-07-25 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Fixed render_partial localization.
(Localize ActionView::TemplateFinder#pick_template) [Bug #20248]
* test/rails/config/boot.rb, environment.rb: Follow rails-2.1.0.
* test/rails/app/views/articles/_form_fr.html.erb: Added for
render_partial.
* test/rails/test/result/fr/new.html: Ditto.
* samples/rails/*: Update to rails-2.1.0.
2008-07-20 Masao Mutoh <[email protected]>
* test/test_active_record.rb: Add tests for activerecord-2.1.0.
2008-07-17 Masao Mutoh <[email protected]>
* lib/gettext/active_record.rb: validates_(format|inclusion)_of accepts %{val} as the value
(ex)
User.validates_inclusion_of :name, :in => %w(a, b), :message => N_("%{fn} can't be %{val}")
* test/test_active_record.rb: Added test for rails-2.1.0.
* lib/gettext/active_record.rb: Works localization with ActiveRecord::Errors#[]
* po/el/rails.po, rgettext.po: Updated by damphyr.
* po/ca/rails.po, rgettext.po: Updated by Ramon Salvadó.
* **/po/**/ua/*.po: Updated by Alex Rootoff.
2008-07-15 Masao Mutoh <[email protected]>
* po/hu/rails.po, rgettext.po: Updated by Tamás Tompa.
* po/zh/rails.po, rgettext.po: Updated by Yang Bob.
* po/zh_TW/rails.po, rgettext.po: Updated by Yang Bob.
* test/fixtures/wizard.rb, inept_wizard.rb: Added.
2008-07-14 Masao Mutoh <[email protected]>
* README: Updated.
* lib/gettext/parser/active_record.rb: Support ActiveRecord::Base.abstract_class.
* po/pt_BR/rails.po, rgettext.po: Updated by Antonio S. de A. Terceiro.
* po/es/rails.po: Updated by David Espada.
* **/po/**/nb/*.po: Updated by Runar Ingebrigtsen.
2008-07-13 Masao Mutoh <[email protected]>
* po/ru/rails.po, rgettext.po: Updated by Yuri Kozlov.
* po/de/rails.po, rgettext.po: Updated by Patrick Lenz.
* po/eo/rails.po, rgettext.po: Updated by Malte Milatz.
* po/vi/rails.po, rgettext.po: Updated by Ngoc DAO Thanh.
* po/es/rgettext.po: Updated by David Espada.
* po/ja/rgettext.po: Updated.
2008-07-11 Masao Mutoh <[email protected]>
* test/test_active_record.rb, test/fixtures/people.yml, warehouse-thing.rb:
Add rails-2.1.0 tests.
(ValidationsTest::test_validate_uniqueness_with_non_standard_table_names):
* po/ja/rails.po: Apply rails-2.1.0 messages.
2008-07-09 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Fixed ActionController::Caching::Fragments.expire_fragment
to work with rails-2.1.0 by Loiseleur Michel.
* lib/gettext/active_record.rb: Added validation options for activerecord-2.1.0.
(:greater_than, :greater_than_or_equal_to, :equal_to, :less_than, :less_than_or_equal_to,
:odd, :even)
* test/*: Apply rails-2.1.0.
2008-06-30 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Works with rails-2.1.0.
Reported by Andreas Neuhaus(Bug #17990)
2008-06-28 Masao Mutoh <[email protected]>
* bin/*: Fixed shebang line. (Bug: #20150)
2008-06-25 Masao Mutoh <[email protected]>
* lib/gettext.rb: Fixed cache algorithm of bound_targets again.
2008-06-18 Masao Mutoh <[email protected]>
* lib/gettext/mo.rb: Support revision 1 of mo-file format.
* lib/gettext/mo.rb, test/test_gettext.rb:
Freeze msgstrs by Tatsuki Sugiura (Bug: #19193)
* **/po/sr/*.po: Replace sr locales to Cyrillic script
from Latin script by Slobodan Paunović.
2008-05-24 Masao Mutoh <[email protected]>
* README: update to support Rails-1.2.x to Rails-2.0.x(Rails-1.2.x aren't
not supported now). Reported by Hans de Graaff.
2008-05-11 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Localize ActionView::Helpers::FormBuilder#label.
The idea from craccho (http://d.hatena.ne.jp/craccho/20071211/1197398747).
* lib/gettext/version.rb: Increment minor version.
* README, **/po/sr/*.po: Added sr locales by Slobodan Paunović.
* NEWS: Updated.
2008-05-07 Masao Mutoh <[email protected]>
* lib/gettext/utils.rb: Check msgmerge command is existed. And show error
messages more helpful.
2008-05-06 Masao Mutoh <[email protected]>
* test/test_locale.rb: Removed the condition for OpenBSD
by Bernd Ahlers.
* lib/gettext.rb: Fixed that bindtextdomain doesn't work on toplevel.
Reported by Tatsuki Sugiura (Bug: #19056).
* test/test_gettext.rb: Follow the change.
* test/test_gettext_toplevel.rb: Added.
2008-05-05 Masao Mutoh <[email protected]>
* lib/gettext.rb: Add GetText.remove_all_textdomains for testing.
inspired a test code by Tatsuki Sugiura (Bug #19056)
* lib/gettext/active_record.rb, test/test_active_record.rb:
Fixed validates_length_of by Karl Palmskog (Bug: #19761)
2008-04-15 Masao Mutoh <[email protected]>
* test/test_gettext.rb, lib/gettext.rb, lib/gettext/textdomain.rb,
lib/gettext/rails.rb: Fixed distance_of_time_in_words. Reported by Dao Ngoc (Bug: #17808)
* po/*/rails.po: Updated.
2008-04-13 Masao Mutoh <[email protected]>
* lib/gettext.rb, lib/gettext/textdomain.rb: Fixed memory leaks.
Reported by Simone Carletti(#18392)
2008-03-21 Masao Mutoh <[email protected]>
* lib/locale/win32.rb, win32_table.rb, jruby.rb: Rename SystemWin32Table to
SystemWin32 again. Reported by Locomotyphus (Bug: #18938)
2008-02-02 Masao Mutoh <[email protected]>
* po/ja/rails.po: Revised. Reported by Paul Clegg.
2008-01-30 Masao Mutoh <[email protected]>
* lib/locale/win32.rb, win32_table.rb: Rename SystemWin32Table to SystemWin32.
* samples/cgi/http.rb, index.cgi: Works on Windows.
2008-01-28 Masao Mutoh <[email protected]>
* lib/gettext.rb: Fixed GetText.output_charset to return current
locale's charset not nil.
Fixed to work with JRuby.(Bug: http://jira.codehaus.org/browse/JRUBY-1281)
2008-01-27 Masao Mutoh <[email protected]>
* lib/gettext/string.rb: String#% doesn't raise an ArgumentError in Debug mode.
Because String#% method shouldn't raise ArgumentError in Debug mode.
* lib/gettext/rgettext.rb: rgettext fixed to work with similer messages in n_().
Reported by Toine Diepstraten.
* samples/cgi/*: Works again. Set CGI object explicit.
* lib/gettext/textdomainmanager.rb: GetText::TextDomainManager.output_charset returns
system locale when nil is set.
2008-01-24 Masao Mutoh <[email protected]>
* lib/locale/object.rb: Speedup (cache messages and object hash value)
2008-01-21 Masao Mutoh <[email protected]>
* lib/gettext.rb: Fixed to reload messages in debug mode
(development mode in rails). Reported by Reynard,
Ernesto Jiménez Caballero
2008-01-19 Masao Mutoh <[email protected]>
* **/po/hu/*.po: Added hu locales by Tamás Tompa.
* Rakefile: Add deploypo task(for me).
2008-01-18 Masao Mutoh <[email protected]>
* lib/locale/win32.rb: Removed duplicated function.
2008-01-16 Masao Mutoh <[email protected]>
* samples/rails/*: Rewrite to work on Rails-2.0.
* lib/gettext/string.rb: Raises ArgumentError when the format are wrong.
Bug #16959 by Stephan.
2007-12-25 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Fixed an error when expire_fragment_with_gettext
is called with the name as a Regexp object.Bug #12803 by Hans de Graaff.
2007-12-24 Masao Mutoh <[email protected]>
* **/po/ua/*.po: Added ua locales by Alex Rootoff.
2007-12-16 Masao Mutoh <[email protected]>
* NEWS: Updated.
* README: Updated.
2007-12-15 Masao Mutoh <[email protected]>
* test/rails/*: Updated to work with Rails-2.0.
Add the test for custom error messages/titles.
* lib/gettext/rails.rb: Fixed
ActionView::Helpers::ActiveRecordHelper::L10n::error_messages_for
that plural messages didn't translated.
ActionView::Helpers::ActiveRecordHelper.error_messages_for can accept
:message_title, :message_explanation as the error dialog messages.
You can set the error dialog messages in the each pages.
Add GetText::Rails.normalized_locale.
2007-12-08 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Add GetText::Rails::available_locales.
It returns the locales in RAILS_ROOT/locale directory.
fragment_cache_key_with_gettext and expire_fragment_with_gettext uses
GetText::Rails::available_locales to select the current locale string.
The cache files are created for available locales only.
2007-11-10 Masao Mutoh <[email protected]>
* lib/gettext.rb: Fix to work :charset option.
[Bug #15513] Reoported by boud indymedia.
* lib/gettext/mo.rb: Works with JRuby.
2007-11-09 Masao Mutoh <[email protected]>
* lib/locale/cgi.rb: Removed Locale::SystemCGI.default=, set_default.
* lib/locale/win32_table.rb: Rename SystemWin32 to SystemWin32Table.
* lib/locale/win32.rb, win32_table.rb: Move get_charset to win32_table.rb.
* lib/locale/jruby.rb: Require win32_table.rb on Win32.
* lib/locale/base.rb: Added as the common module of other LocaleSystem classes.
* lib/locale/posix.rb, win32.rb, jruby.rb, cgi.rb: Require locale/base.rb.
And Remove the common methods.
2007-11-08 Masao Mutoh <[email protected]>
* lib/gettext/iconv.rb: Support JRuby.
* lib/locale/jruby.rb: Added. Support JRuby.
* test/*.rb: Rename files.
* lib/locale/object.rb: Add fallback attribute(a fallback locale).
* ext/*: Removed.
* Rakefile: Remove tasks for ext.
* lib/locale/win32.rb: Removed Locale::SystemWin32.set_default_locale,
default_locale=, default_locale.
Use Win32API instead of locale_system.so.
* lib/locale/posix.rb: Removed Locale::SystemPosix.get_charset, .set_default_locale
default_locale=, default_locale and all LC types.
Now Posix localed doesn't depend on locale_system.so.
# UTF-8 is set as the default charset.
* lib/gettext/locale.rb: Move to lib/locale.rb. Now locale class starts to
prepare to be separated from gettext.
* lib/gettext/locale_*.rb: Move to lib/locale/*.rb. Removed deprecated methods.
* Start preparing to release 2.0.
- System locales become "read only"(Locale module keeps the current
locale).
- Don't depend locale_system.so.
2007-08-01 Masao Mutoh <[email protected]>
* lib/gettext/utils.rb: Raise exception when msgmerge aren't found.
And show error message more helpful. Reported by Vít Ondruch (Bug#12737)
* lib/gettext/parser/erb.rb: Add ".erb" as the extname.
Reported by Andreas Neuhaus (Bug#12721)
* test/gettext_benchmark.rb: Added.
2007-07-29 Masao Mutoh <[email protected]>
* lib/gettext.rb: Replace .keys.include? to .has_key? to reduce
CPU usage and speed up. Reported by olivier ruffin.
2007-07-22 Masao Mutoh <[email protected]>
* lib/gettext/locale_cgi.rb: Fixed to break rails(r7116).
Reported by OZAWA Sakuro.
2007-07-16 Masao Mutoh <[email protected]>
* lib/gettext.rb: Fixed to support anonymous classes/modules, again.
2007-07-11 Masao Mutoh <[email protected]>
* lib/gettext.rb: Support anonymous classes/modules.
Pointed out by Yaohan Chen.
* test/gettext_test.rb: Add test for anonmous classes/modules.
2007-07-08 Masao Mutoh <[email protected]>
* README, Rakefile: Add RDoc support.
2007-07-06 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Add to support Action/Fragment caching.
* test/gettext_test_rails_caching.rb, test.sh: Added the test for caching.
* NEWS: Updated.
2007-07-05 Masao Mutoh <[email protected]>
* src/poparser.ry, lib/gettext/poparser.rb:
Fixed a bug of previous change.
2007-07-04 Masao Mutoh <[email protected]>
* NEWS: Updated.
* lib/gettext/version.rb: Increment minor version.
* lib/gettext/active_record.rb: Work with script/generate
scaffold_resource. Reported by Bart ten Brinke(Bug#8308)
* lib/gettext/utils.rb: On the Win32 default environment,
use "msgmerge" program provided by Ruby-GNOME2 Win32 Installer.
* lib/gettext/locale_win32.rb: Fix to find a charset from a locale.
2007-07-03 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb:error_messages_for accept plural models.
Reported by Florian Hufsky.
Fixed set_error_message_title|explanation.
* test/rails/app/model/users.rb, test/rails/test/*: Add tests for
error_messages_for with plural models.
* lib/gettext/parser/active_record.rb:
remove to require 'application.rb' to avoid the effect
of application.rb when parse models. Pointed out by Michel Loiseleur.
* po/ca/rails.po: Updated by Ramon Salvadテウ.
* src/poparser.ry, lib/gettext/poparser.rb: Don't append
msgids/msgstrs if the msgstrs don't set.
* lib/gettext.rb, lib/gettext/parser/ruby.rb:
Added GetText.nsgettext, ns_. This method has n_ + s_ function.
(e.g.) ns_("File|A file", "%{num} files", i).
* test/test_nsgettext.rb, test/po/ja/test_nsgettext.po: Added for
the test ns_(), nsgettext.
* lib/gettext/rgettext.rb: Normalize msgids.
_("Foo") and n_("Foo", "Foos", i) become same msgid "Foo\000Foos".
This is the same behavior with xgettext.
Reported by Sava Chankov.
* lib/gettext/textdomain.rb: Follow above changes.
_("Foo") matches the single msgid of n_("Foo", "Foos", i).
2007-06-29 Masao Mutoh <[email protected]>
* lib/gettext.rb: Add GetText.cached=, .cached?, clear_cache.
messages are cached in default. If the value is false
or $DEBUG = true then messages are not cached.
_ and n_ become 1.2-1.9 times faster than older versions.
* lib/gettext/textdomain.rb, rails.rb: follow the changes
below.
2007-06-28 Masao Mutoh <[email protected]>
* README: Updated.
* po/vi/rails.po: Updated by Ngoc Dao.
* po/(zh|zh_TW)/rails.po: Updated by Yang Bob.
2007-06-27 Masao Mutoh <[email protected]>
* po/nl/rails.po: Updated by Menno Jonker
* po/(bs|hr)/rails.po: Updated by Sanjin Sehic.
* po/pt_BR/rails.po: Updated by Joao Pedrosa.
* po/eo/rails.po: Updated by Malte Milatz.
* po/de/rails.po: Updated by Patrick Lenz.
* po/fr/rgettext.po, rails.po: Updated by David Sulc.
* po/et/rails.po: Updated by Erkki Eilonen .
*
2007-06-26 Masao Mutoh <[email protected]>
* test/rails/*: Added tests for ActionMailer.
2007-04-17 Masao Mutoh <[email protected]>
* test/rails/* : Added tests for rails.
2007-04-16 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: TestRequest#cgi returns GetTextMockGGI, not CGI.
2007-04-08 Masao Mutoh <[email protected]>
* lib/gettext/active_record.rb: Work ActiveRecord::Base::Validation
with non ActiveRecord::Base object again. Reported by Maksim Bartenev.
* test/gettext_test_activerecord.rb: Add a test for the above change.
2007-04-07 Masao Mutoh <[email protected]>
* **/po/nb/*.po: Added nb locales by Runar Ingebrigtsen.
2007-03-24 Masao Mutoh <[email protected]>
* **/po/(bs|hr)/*.po: Added bs/hr locales by Sanjin Sehic.
2007-03-23 Masao Mutoh <[email protected]>
* **/po/vi/*.po: Added vi locale by Ngoc Dao.
2007-02-11 Masao Mutoh <[email protected]>
* lib/gettext/rails_compat.rb: Added for Rails-1.1.6.
(Works with both Rails-1.1.6 and 1.2.2)
2007-02-09 Masao Mutoh <[email protected]>
* po/nl/rails.po: Fixed wrong translations.
Reported by Bart ten Brinke [Bug #8449]
2007-01-30 Masao Mutoh <[email protected]>
* po/nl/rails.po: Fixed wrong translations.
Reported by Dirkjan Bussink
2007-01-25 Masao Mutoh <[email protected]>
* lib/gettext/active_record.rb: Fixed #columns again.
[Feature Requests #7428]
2007-01-22 Masao Mutoh <[email protected]>
* NEWS: Updated.
* lib/gettext/active_record.rb: Use alias_method_chain not to
override original methods directly(again). [Feature Requests #7428]
* test/gettext_test_parser.rb: Add tests for activerecord parser.
* lib/gettext/rails.rb: Require action_controller instead of activesupport
for Rails-1.2.1.
* po/el/*.po: Updated by Vassilis Rizopoulos.
* po/ja/rails.po: Fixed typos by NANKI Haruo.
2007-01-16 Masao Mutoh <[email protected]>
* lib/gettext/parser/active_record.rb: Don't duplicate "file:-".
2007-01-14 Masao Mutoh <[email protected]>
* lib/gettext/active_record.rb: Use alias_method_chain not to
override original methods directly. [Feature Requests #7428]
* test/gettext_test_active_record.rb: Update to work Rails-1.2RC2.
2006-12-26 Masao Mutoh <[email protected]>
* po/zh/*.po, po/zh_TW/*.po: Updated by Yang Bob.
2006-12-22 Masao Mutoh <[email protected]>
* samples/rails/po/eo/blog.po: Fixed some typos by Malte Milatz.
2006-12-22 Masao Mutoh <[email protected]>
* **/po/ca/*.po: Added ca(Catalan) locale by Ramon Salvad蝮ヲ.
2006-12-17 Masao Mutoh <[email protected]>
* po/cs/*.po: Updated by Karel Miarka.
* **/po/eo/*.po: Added eo(Esperanto) locale by Malte Milatz.
2006-12-15 Masao Mutoh <[email protected]>
* po/ko/*.po: Updated by Gyoung-Yoon Noh.
2006-12-10 Masao Mutoh <[email protected]>
* po/de/*.po: Updated by Patrick Lenz.
* po/nl/*.po: Updated by Menno Jonkers.
* po/es/*.po: Updated by David Espada.
2006-12-09 Masao Mutoh <[email protected]>
* po/pt_BR/*.po: Updated by Joao Pedrosa.
* po/ru/*.po: Updated by Yuri Kozlov.
* po/ja/*.po: Updated.
2006-12-08 Masao Mutoh <[email protected]>
* lib/gettext/rgettext.rb: Improve option messages.
2006-12-07 Masao Mutoh <[email protected]>
* lib/gettext/erb.rb: Removed the dependency to GetText::Container which was
deprecated.
2006-12-05 Masao Mutoh <[email protected]>
* lib/gettext/poparser.rb: Added.
2006-12-03 Masao Mutoh <[email protected]>
* lib/gettext.rb: Changed GetText.locale= to set not only current locale
to all Textdomains but also default locale.
* lib/gettext/locale.rb: Locale.set_default accept locale as String.
* test/gettext_test_active_record.rb: Update to test activerecord-1.14.4.6657.
2006-12-02 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Unit test works on 1.2RC1. Reported by KAKUTANI Shintaro.
* lib/gettext.rb: Updates default locale when using GetText.set_locale_all
* po/**/rails.po[t]: Updated.
2006-11-27 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Fix the deprecated accessing to instance variables
directly for rails 1.2RC1.
2006-11-06 Masao Mutoh <[email protected]>
* lib/gettext/utils.rb: Skip to create new po-files.
It avoids the po-files become empty when GNU msgmerge was failed.
By Fabian Kreutz.
2006-10-21 Masao Mutoh <[email protected]>
* po/fr/rails.po: Improved by David Sulc.
2006-10-15 Masao Mutoh <[email protected]>
* lib/gettext/parser/active_record.rb: Work updatepo task with rails_edge.
2006-10-08 Masao Mutoh <[email protected]>
* lib/gettext/parser/active_record.rb: Fixed an error using hbtm.
Reported by Mihnea Capraru.
2006-10-04 Masao Mutoh <[email protected]>
* README, lib/gettext/rgettext.rb: Changed the author e-mail address.
2006-09-24 Masao Mutoh <[email protected]>
* lib/gettext/active_record.rb: Re-fix to work rails_edge again.
Reported by Isak Hansen.
* po/pt_BR/rails.po: Updated by Antonio S. de A. Terceiro.
2006-09-21 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Fixed a bug init_gettext can't accept
any options correctly and locale_path was set wrong value.
Reported by pedro palazon.
2006-09-12 Masao Mutoh <[email protected]>
* lib/gettext/textdomain.rb: Fixed a bug of add_default_locale_path.
* lib/gettext/parser/ruby.rb: Improve to output error messages.
2006-09-11 Masao Mutoh <[email protected]>
* lib/gettext/active_record.rb: Works rails_edge again.
Reported by Donald Piret. (http://dev.rubyonrails.org/ticket/5810)
2006-09-07 Masao Mutoh <[email protected]>
* lib/gettext/locale_cgi.rb, locale_object.rb: Speed up.
* lib/gettext.rb: Fixed to extract correct textdomains in each_textdomain.
2006-09-05 Masao Mutoh <[email protected]>
* README, NEWS: Updated.
2006-09-04 Masao Mutoh <[email protected]>
* lib/gettext/rgettext.rb: Raise error when parsing was failed.
* lib/gettext.rb: GetText.locale= is the alias of GetText.set_locale_all instead
of GetText.set_locale.
* test/gettext_test_active_record.rb: Added tests.
* test/fixtures/*.rb: updated.
* test/po/active_record.pot, test/po/ja/active_record.po: updated.
2006-09-01 Masao Mutoh <[email protected]>
* test/gettext_test_active_record.rb: Added tests.
2006-08-31 Masao Mutoh <[email protected]>
* lib/gettext/active_record.rb: Fix the custom messages of validates_length_of
with :too_long, :too_short, :wrong_length.
2006-08-30 Masao Mutoh <[email protected]>
* test/Rakefile, test/db/*sql: Added.
2006-08-29 Masao Mutoh <[email protected]>
* test/gettext_test_active_record.rb, test/fixtures/*, test/po/active_record.pot,
test/po/ja/active_record.po: Added tests for ActiveRecord with GetText.
* lib/gettext/active_record.rb: Messages updated.
* po/*/rails.po[t]: ditto.
2006-08-22 Masao Mutoh <[email protected]>
* samples/rails/db/schema.rb: Added.
* samples/rails/db/*.sql: Removed. Use rake db:schema:load instead.
* samples/rails/README: Follow above changes.
* samples/rails/po/*: Updated.
* lib/gettext/active_record.rb: Fixed the problem of untranslate(_all).
Reported by Tsutomu Kuroda.
2006-08-21 Masao Mutoh <[email protected]>
* README: Updated.
* **/po/zh_TW/*.po: Added zh_TW locale by LIN CHUNG-YI.
2006-08-18 Masao Mutoh <[email protected]>
* lib/gettext/version.rb: Increment minor version.
* po/et/rails.po: Added Estonian by Erkki Eilonen.
* README: ditto.
* lib/gettext/rails.rb: Add ActionController::Base.(before|after)_init_gettext.
2006-08-15 Masao Mutoh <[email protected]>
* po/de/rails.po, rgettext.po: Updated by Partick Lenz.
2006-08-13 Masao Mutoh <[email protected]>
* lib/gettext/locale.rb: Add Locale.system_module.
* lib/gettext/rails.rb: Remove ActionController::Base.textdomainname
* lib/gettext.rb, lib/gettext/rails.rb, locale_cgi.rb,
locale_object.rb, string.rb:
Speed up. Improve CPU usages.
2006-08-10 Masao Mutoh <[email protected]>
* lib/gettext/parser/active_record.rb: Improved to find ActiveRecord class
by steve dp.
2006-08-09 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Code clean up.
* lib/gettext.rb: Code clean up.
* lib/gettext/active_record.rb: Removed to call bindtextdomain in Validations.
It's called in bindtextdomain of init_gettext.
* lib/gettext/parser/active_record.rb: Rename from activerecord.rb.
2006-08-08 Masao Mutoh <[email protected]>
* lib/gettext/active_record.rb: Fixed on, error_messages_for.
by Andreas Neuhaus.
2006-08-04 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Move bindtextdomain_to to lib/gettext.rb.
New overrideable callback methods (before|after)_init_gettext(cgi).
These methods is called on the each WWW request.
* lib/gettext.rb: Add bindtextdomain_to, textdomain_to.
* samples/rails/app/controllers/application.rb: Add a sample of
(before|after)_init_gettext(cgi).
2006-07-29 Masao Mutoh <[email protected]>
* lib/gettext/rgettext.rb: Added -r, -d options.
-r is to set an option parser. -d is for debugging mode.
(e.g.) $ rgettext -r fooparser test.foo
The idea is from Kobayashi Noritada.
Fix a trivial bug by Kobayashi Noritada.
2006-07-25 Masao Mutoh <[email protected]>
* lib/gettext/active_record.rb: Separate from rails.rb.
2006-07-23 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: init_gettext manages plural textdomains.
bindtextdomain binds a domainname to ActionMailer::Base and ActionView::Base.
2006-07-22 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: init_gettext finds the locale path with caller
not RAILS_ROOT now for supporting plugins which has app/controller directory
such as Rails Engines.
And init_gettext accepts :locale_path option to be able to set the locale
path manually.
* po/pt_BR/rails.po, rgettext.po: Updated by Joao Pedrosa.
2006-07-17 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: bind the textdomain same with ApplictionController
to the class which includes ActiveRecord::Validations.
2006-07-16 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Code cleanup.
ActiveRecord::Base.set_error_message_(title|explanation) have been deprecated.
Use ActionView::Helpers::ActiveRecordHelper::L10n.set_error_message_(title|explanation)
instead. Suggested by Kouhei Sutou
* po/zh/rails.po, rgettext.po: Updated by Yingfeng.
* NEWS: Updated.
2006-07-15 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Localize ActiveRecord::Errors#on.
Now error_message_on is localized.
Reported by kdmsnr.
2006-07-14 Masao Mutoh <[email protected]>
* lib/gettext/parser/activerecord.rb: Add "untranslate" feature.
* lib/gettext/rails.rb: ditto. Add ActiveRecord::Base.untranslate
.untranslate_all, .unstranslate?
The idea is from Gyoung-Yoon Noh.
2006-07-13 Masao Mutoh <[email protected]>
* po/nl/rails.po, rgettext.po: Updated by Menno Jonkers.
* lib/gettext/rails.rb: Support ActiveRecord::Migration.
Suggested by OZAWA Sakuro.
2006-07-12 Masao Mutoh <[email protected]>
* po/ko/rails.po, rgettext.po: Updated by Gyoung-Yoon Noh.
2006-07-11 Masao Mutoh <[email protected]>
* po/ru/rails.po, rgettext.po: Updated by Yuri Kozlov.
* po/fr/rails.po, rgettext.po: Updated by Laurent Sansonetti.
* po/cs/rails.po, rgettext.po: Updated by Karel Miarka.
2006-07-09 Masao Mutoh <[email protected]>
* po/es/rails.po, rgettext.po: Updated by David Espada.
* lib/gettext/rails.rb: Increment minor version.
* README: Updated.
2006-06-14 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Fix a problem N_() isn't found in
ActiveRecord. Reported by arton.
2006-06-12 Masao Mutoh <[email protected]>
* lib/gettext/parser/glade.rb: Show error message correctly.
* Rakefile: Added src/poparse.ry as the target for updatepo.
* po/rgettext.pot, po/*/rgettext.po: Updated.
2006-06-11 Masao Mutoh <[email protected]>
* lib/gettext/parser/ruby.rb: Fixed to extract duplicated messages when "\n"
was used in msgid.
* lib/gettext/rails.rb, po/rails.pot, po/*/rails.po: Localize
ActionView::Helpers::DateHelper.distance_of_time_in_words.
* lib/gettext.rb: Added GetText.current_textdomain_info for debuging.
* lib/gettext/textdomain.rb: Break if the first mo-file found.
* lib/gettext/mo.rb: Added to accessor(r) to filename.
2006-06-09 Masao Mutoh <[email protected]>
* samples/*.rb, samples/po/*: Code cleanup 2.
2006-06-08 Masao Mutoh <[email protected]>
* lib/gettext/version.rb: Increment minor version.
* lib/gettext/locale_posix.rb: Code cleanup.
* test/testlib5.rb: Added.
2006-06-07 Masao Mutoh <[email protected]>
* lib/gettext.rb: GetText.set_locale accept 2nd parameter.
* test/testlib6.rb, test/po/{ja|fr}/test6.po: Added previous test.
* samples/*.rb, samples/po/*: Code cleanup.
2006-06-05 Masao Mutoh <[email protected]>
* samples/hello.rb: Code cleanup.
* lib/gettext/rgettext.rb: Show ruby version with -v option.
* lib/gettext/rmsgfmt.rb: ditto.
* lib/gettext/rmsgmerge.rb: ditto.
2006-06-04 Masao Mutoh <[email protected]>
* lib/gettext.rb: Fixed a bug when options is set nil.
* lib/gettext/locale_posix.rb: Fixed the search order of environment
variables. Reported by markus koller.
* ext/gettext/locale_system.c: Returns nil if locale is not set.
* Rakefile: Added makemo task for samples/rails/vendor/plugins/gettext/po.
* test/gettext_test_multi_textdomain.rb: Added.
2006-05-31 Masao Mutoh <[email protected]>
* samples/rails/vendor/plugins/gettext/lib/gettext_plugin.rb: Rewrite
to support new bindtextdomain.
* samples/rails/vendor/plugins/gettext/{po|locale}/*: Move gettext_plugin.{po|mo}
from samples/rails/{po|locale}/*. Now Rails plugins can release their po/mo-files
under their own directory(/vendor/plugins/plugindir/{po|locale}).
* samples/rails/vendor/plugins/gettext/Rakefile, README: Added.
* samples/rails/lib/tasks/gettext.rake. Move gettext_plugin target to
/vendor/plugins/gettext/Rakefile.
* samples/rails/README: Updated.
2006-05-30 Masao Mutoh <[email protected]>
* lib/gettext.rb: The scope of a textdomain becomes a class/module base
instead of a file base.
Accept plural textdomains in a class/module.
Changed bindtextdomain arguments with backward compatibility.
* lib/gettext/textdomainmanager.rb: Added for manage plural textdomains.
* lib/gettext/textdomain.rb: Fix wrong DEFAULT_LOCALE_PATHS if ruby is
installed non-standard path.
* lib/gettext/rails.rb: Changed arguments of bindtextdomain, init_gettext
with backward compatibility.
2006-05-29 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb:
Remove GetText::Rails.use_localized_templates.
2006-05-24 Masao Mutoh <[email protected]>
* lib/gettext/locale_win32.rb: Fix to work with environment
variables.
2006-05-22 Masao Mutoh <[email protected]>
* lib/gettext.rb, lib/gettext/textdomain.rb: Keep a textdomain
per a class instead of per a file.
2006-05-21 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Problem when ActionMailer isn't defined.
Reported by Gudao Luo.
2006-05-20 Masao Mutoh <[email protected]>
* lib/gettext/mo.rb: Improved to compare the file time stamps.
by Nobu Nakada.
2006-05-18 Masao Mutoh <[email protected]>
* lib/gettext/mo.rb: Fix MOFile#update! works on MS Windows.
* po/it/rails.po, samples/rails/po/it/*.po: Added by Marco Lazzeri.
2006-05-16 Masao Mutoh <[email protected]>
* Rakefile: Remove dependency - makemo => poparser.
Reported by Marco Lazzeri.
2006-05-14 Masao Mutoh <[email protected]>
* README: Updated.
* **/po/zh/*.po: Added zh_CN locale by Yingfeng.
* pre-setup.rb: Remove to call "rails setup" now needless.
Reported by Hiroyuki Iwatsuki.
2006-05-11 Masao Mutoh <[email protected]>
* Rakefile: Make samples/rails/log if it's not exisited in
makemo task.
* lib/gettext/parser/activerecord.rb: Fixed to work
Gem-less environment.
Reported by Nobuhiro IMAI.
2006-05-10 Masao Mutoh <[email protected]>
* lib/gettext/rails.rb: Fixed custom messages was not
translated of validation_length_of.
Reported by babie, charlie.
* po/ja/rails.po: Separate plural/single messages.
2006-05-07 Masao Mutoh <[email protected]>
* lib/gettext/version.rb: Increment revision number.
* NEWS: Updated.
2006-05-06 Masao Mutoh <[email protected]>