2007-07-06 Masao Mutoh * 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 * src/poparser.ry, lib/gettext/poparser.rb: Fixed a bug of previous change. 2007-07-04 Masao Mutoh * 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 * 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 * 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 * 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 * 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 * test/rails/*: Added tests for ActionMailer. 2007-04-17 Masao Mutoh * test/rails/* : Added tests for rails. 2007-04-16 Masao Mutoh * lib/gettext/rails.rb: TestRequest#cgi returns GetTextMockGGI, not CGI. 2007-04-08 Masao Mutoh * 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 * **/po/nb/*.po: Added nb locales by Runar Ingebrigtsen. 2007-03-24 Masao Mutoh * **/po/(bs|hr)/*.po: Added bs/hr locales by Sanjin Sehic. 2007-03-23 Masao Mutoh * **/po/vi/*.po: Added vi locale by Ngoc Dao. 2007-02-11 Masao Mutoh * 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 * po/nl/rails.po: Fixed wrong translations. Reported by Bart ten Brinke [Bug #8449] 2007-01-30 Masao Mutoh * po/nl/rails.po: Fixed wrong translations. Reported by Dirkjan Bussink 2007-01-25 Masao Mutoh * lib/gettext/active_record.rb: Fixed #columns again. [Feature Requests #7428] 2007-01-22 Masao Mutoh * 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 * lib/gettext/parser/active_record.rb: Don't duplicate "file:-". 2007-01-14 Masao Mutoh * 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 * po/zh/*.po, po/zh_TW/*.po: Updated by Yang Bob. 2006-12-22 Masao Mutoh * samples/rails/po/eo/blog.po: Fixed some typos by Malte Milatz. 2006-12-22 Masao Mutoh * **/po/ca/*.po: Added ca(Catalan) locale by Ramon Salvad坦. 2006-12-17 Masao Mutoh * po/cs/*.po: Updated by Karel Miarka. * **/po/eo/*.po: Added eo(Esperanto) locale by Malte Milatz. 2006-12-15 Masao Mutoh * po/ko/*.po: Updated by Gyoung-Yoon Noh. 2006-12-10 Masao Mutoh * 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 * po/pt_BR/*.po: Updated by Joao Pedrosa. * po/ru/*.po: Updated by Yuri Kozlov. * po/ja/*.po: Updated. 2006-12-08 Masao Mutoh * lib/gettext/rgettext.rb: Improve option messages. 2006-12-07 Masao Mutoh * lib/gettext/erb.rb: Removed the dependency to GetText::Container which was deprecated. 2006-12-05 Masao Mutoh * lib/gettext/poparser.rb: Added. 2006-12-03 Masao Mutoh * 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 * 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 * lib/gettext/rails.rb: Fix the deprecated accessing to instance variables directly for rails 1.2RC1. 2006-11-06 Masao Mutoh * 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 * po/fr/rails.po: Improved by David Sulc. 2006-10-15 Masao Mutoh * lib/gettext/parser/active_record.rb: Work updatepo task with rails_edge. 2006-10-08 Masao Mutoh * lib/gettext/parser/active_record.rb: Fixed an error using hbtm. Reported by Mihnea Capraru. 2006-10-04 Masao Mutoh * README, lib/gettext/rgettext.rb: Changed the author e-mail address. 2006-09-24 Masao Mutoh * 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 * 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 * 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 * lib/gettext/active_record.rb: Works rails_edge again. Reported by Donald Piret. (http://dev.rubyonrails.org/ticket/5810) 2006-09-07 Masao Mutoh * 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 * README, NEWS: Updated. 2006-09-04 Masao Mutoh * 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 * test/gettext_test_active_record.rb: Added tests. 2006-08-31 Masao Mutoh * 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 * test/Rakefile, test/db/*sql: Added. 2006-08-29 Masao Mutoh * 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 * 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 * README: Updated. * **/po/zh_TW/*.po: Added zh_TW locale by LIN CHUNG-YI. 2006-08-18 Masao Mutoh * 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 * po/de/rails.po, rgettext.po: Updated by Partick Lenz. 2006-08-13 Masao Mutoh * 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 * lib/gettext/parser/active_record.rb: Improved to find ActiveRecord class by steve dp. 2006-08-09 Masao Mutoh * 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 * lib/gettext/active_record.rb: Fixed on, error_messages_for. by Andreas Neuhaus. 2006-08-04 Masao Mutoh * 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 * 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 * lib/gettext/active_record.rb: Separate from rails.rb. 2006-07-23 Masao Mutoh * lib/gettext/rails.rb: init_gettext manages plural textdomains. bindtextdomain binds a domainname to ActionMailer::Base and ActionView::Base. 2006-07-22 Masao Mutoh * 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 * lib/gettext/rails.rb: bind the textdomain same with ApplictionController to the class which includes ActiveRecord::Validations. 2006-07-16 Masao Mutoh * 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 * lib/gettext/rails.rb: Localize ActiveRecord::Errors#on. Now error_message_on is localized. Reported by kdmsnr. 2006-07-14 Masao Mutoh * 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 * 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 * po/ko/rails.po, rgettext.po: Updated by Gyoung-Yoon Noh. 2006-07-11 Masao Mutoh * 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 * po/es/rails.po, rgettext.po: Updated by David Espada. * lib/gettext/rails.rb: Increment minor version. * README: Updated. 2006-06-14 Masao Mutoh * lib/gettext/rails.rb: Fix a problem N_() isn't found in ActiveRecord. Reported by arton. 2006-06-12 Masao Mutoh * 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 * 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 * samples/*.rb, samples/po/*: Code cleanup 2. 2006-06-08 Masao Mutoh * lib/gettext/version.rb: Increment minor version. * lib/gettext/locale_posix.rb: Code cleanup. * test/testlib5.rb: Added. 2006-06-07 Masao Mutoh * 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 * 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 * 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 * 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 * 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 * lib/gettext/rails.rb: Remove GetText::Rails.use_localized_templates. 2006-05-24 Masao Mutoh * lib/gettext/locale_win32.rb: Fix to work with environment variables. 2006-05-22 Masao Mutoh * lib/gettext.rb, lib/gettext/textdomain.rb: Keep a textdomain per a class instead of per a file. 2006-05-21 Masao Mutoh * lib/gettext/rails.rb: Problem when ActionMailer isn't defined. Reported by Gudao Luo. 2006-05-20 Masao Mutoh * lib/gettext/mo.rb: Improved to compare the file time stamps. by Nobu Nakada. 2006-05-18 Masao Mutoh * 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 * Rakefile: Remove dependency - makemo => poparser. Reported by Marco Lazzeri. 2006-05-14 Masao Mutoh * 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 * 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 * 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 * lib/gettext/version.rb: Increment revision number. * NEWS: Updated. 2006-05-06 Masao Mutoh * lib/gettext/rails.rb: error_messages_for works same as actionpack-1.12.1 when nil or symbol are given as @object_name. By arton. * test/gettext_test_rails.rb: Works again. 2006-05-05 Masao Mutoh * lib/gettext/parser/activerecord.rb: Fixed again. 2006-05-04 Masao Mutoh * lib/gettext/parser/activerecord.rb: Fixed "duplicate message definition" error in rake updatepo task using ActiveRecord::Base.set_table_name. Reported by Karel Miarka. 2006-05-02 Masao Mutoh * lib/gettext/rails.rb: Fixed an abort when Rails::Info isn't required like as Typo. Reported by Masayoshi Takahashi. 2006-04-30 Masao Mutoh * lib/gettext/textdomain.rb: Added GetText::TextDomain#check_mo=, #check_mo?. When the value is true, check the MOFile and if it's updated, reload MOFile again. This is usefule for development time. * lib/gettext/rails.rb: When development mode, check mo files and reload it if it's updated. * lib/gettext/mo.rb: Added MOFile#update!. * lib/gettext/string.rb: String#% doesn't raise ArgumentError when execute ruby with -d option. 2006-04-21 Masao Mutoh * samples/po/ru/*.po, samples/cgi/po/ru/*.po, samples/rails/po/ru/*.po, po/rgettext.po, rails.po: Added Russian locale by Yuri Kozlov. * README: Revised. 2006-04-15 Masao Mutoh * NEWS: Updated. * lib/gettext/version.rb: Increment minor version. * test/gettext_test_rails.rb: Works with Rails-1.1.2. * test/gettext_test_locale.rb: Works on OpenBSD 3.8. * ext/gettext/locale_system.c: Set nil instead of "UTF-8" when nl_langinfo is not found. * samples/rails/README: Updated. 2006-04-05 Masao Mutoh * ext/gettext/locale_system.c: Fix compilation problem when /usr/include/langinfo.h doesn't have CODESET such as OpenBSD. You may need to set OUTPUT_CHARSET to ENV variable in such environment. Reported by Johan Allard. 2006-03-25 Masao Mutoh * lib/gettext/rails.rb: Revised docs. 2006-03-24 Masao Mutoh * lib/gettext/rails.rb: Support ActionWebService. Reported by Nick Snels. 2006-03-19 Masao Mutoh * lib/gettext/rails.rb: Improve multipart-mail in ja locale by Nobuhiro IMAI. 2006-03-16 Masao Mutoh * lib/gettext/rails.rb: ActiveMailer works with multipart-mail in ja locale. Reported by Nobuhiro IMAI. * lib/gettext/textdomain.rb: GetText::TextDomain.gettext returns "" when arg is "" or nil. * lib/gettext.rb, locale.rb: Fix the problem to switch the locale again. * test/gettext_test.rb: Add the test for above problem. * test/gettext_test_rails.rb: Added, too. * test/test.sh: ditto. 2006-03-12 Masao Mutoh * lib/gettext.rb: GetText.locale= reset Locale's default locale. Reported by Donald Piret. 2006-03-11 Masao Mutoh * lib/gettext/rails.rb: ActiveRecord::Column.human_name translates the column name using s_("Model|fieldname"). Pointed out by Kazuhiro NISHIYAMA. * samples/rails/lib/tasks/gettext.rake: Move from Rakefile. Pointed out by Kazuhiro NISHIYAMA. * samples/rails/Rakefile: Move gettext tasks to lib/tasks/gettext.rake. * samples/rails/*: Updates files to which generated with rails 1.0. * NEWS: Updated. 2006-03-10 Masao Mutoh * lib/gettext/rails.rb: Localized ActiveRecord::Base.validates_* works correctly under production mode. Reported by Nickolay Kolev. ActionView::Base#render_file supports localized template such as foo_ja.rhml, foo_ja_JP.rhtml. Revert Action::Controller::Base#render. * NEWS: follow this change. 2006-03-09 Masao Mutoh * lib/gettext/rails.rb: ActiveRecord::Base.error_message_(title|explanation) works production mode. 2006-03-08 Masao Mutoh * NEWS: Updated. * lib/gettext/rails.rb: Fix a problem of ActionMailer in "ja". * lib/gettext/version.rb: Incremented version number. 2006-03-04 Masao Mutoh * lib/gettext/rails.rb: @params["lang"] is treated as cgi["lang"]. Reported by Erkki Eilonen. 2006-03-03 Masao Mutoh * lib/gettext/locale_cgi.rb: Remove debug code. * lib/gettext/locale_object.rb: - Fix a memory leak. Reported by Jonas Schwertfeger. - Locale::Object.parser improved. - Rename Locale::Object#sort_order to #variant. - "POSIX" and "C" locale strings are converted to "en". - Add Locale::Object#to_general. * test/gettext_test_locale.rb: Add tests follow the changes. * lib/gettext/rails.rb: - ActionMailer sends a mail - in ISO-2022-JP if the language is japanese. The idea from Iso2022Mailer by drawnboy. - ActionController::Base.render_text is overrided to find localized templates such as foo_ja.rhml, foo_ja_JP.rhtml. You can reject this to set false to GetText::Rails.use_localized_templates. The idea is from Yugui. 2006-03-02 Masao Mutoh * samples/rails/app/models/article.rb: Add a sample of ActiveRecord::Base.set_error_message_(title|explanation). * lib/gettext/rails.rb: Fix a non-translated problem on production mode. ActionMailer supported by Albert Ramstedt. ActiveRecord::Base.set_error_message_(title|explanation) accepts Nn_() value(Array). 2006-02-25 Masao Mutoh * lib/gettext/locale.rb: Fix to return system value when @@default is unset. * lib/gettext/rails.rb: Fix a problem with Locale.default=. 2006-02-24 Masao Mutoh * lib/gettext.rb: Fix a typo. 2006-02-23 Masao Mutoh * Rakefile: Fix a problem to make package on Win32. * lib/gettext/textdomain.rb: Rename @mo to @current_mo and add a attr_reader for @current_mo. * README, NEWS: updated. * lib/gettext/rails.rb: Fix to translate error message title/explanation. * lib/gettext/parser/activerecord.rb: Fix an abort when config/database.xml is not defined. 2006-02-22 Masao Mutoh * lib/gettext/rmsgfmt.rb, string.rb, iconv.rb, utils.rb, rgettext.rb, lib/gettext/parser/*.rb: Apply RDoc. * lib/gettext/version.rb: Increment minor version. 2006-02-21 Masao Mutoh * test/test.bat: Added for Win32. * test/gettext_test_locale.rb: Added Win32 tests. * lib/gettext/locale_win32.rb: Fix problems. * lib/gettext/locale_object.rb: Added Locale::Object#to_win 2006-02-20 Masao Mutoh * src/poparser.ry: Added ignore_fuzzy as the 3rd parameter of GetText::PoParser#parse to parse fuzzy comments. Pointed out by speakillof. * lib/gettext/rmsgmerge.rb: Follow the PoParser change below. * test/gettext_test_locale.rb: Apply Locale.clear. * lib/gettext/locale.rb: Added Locale.clear. 2006-02-18 Masao Mutoh * lib/gettext/locale_cgi.rb: Separate from cgi.rb. * lib/gettext/locale_posix.rb: Rename from locale_default.rb. 2006-02-16 Masao Mutoh * lib/gettext/textdomain.rb: Add comments. * lib/gettext.rb: Apply Locale::Object. Code cleanup. Add RDoc. * test/gettext_test.rb: Apply gettext.rb changes * test/test.sh: Remove OUTPUT_CHARSET setting. 2006-02-15 Masao Mutoh * lib/gettext/locale_win32.rb, locale_default.rb, locale.rb: A first argument of Locale::System.get_charset becomes Locale::Object. * lib/gettext/textdomain.rb: Apply Locale::Object, Code cleanup. * lib/gettext.rb: Add GetText.add_default_locale_path. * lib/gettext/locale_object.rb: Add Locale::Object#==. * lib/gettext/textdomain.rb: Add GetText::TextDomain.add_default_locale_path. Pointed out at Bug#3510. 2006-02-14 Masao Mutoh * Rakefile: Fix compilation problems on mswin32. * ext/gettext/locale_system.c: locale_id returns language ID not LCID. 2006-02-13 Masao Mutoh * lib/gettext/locale_table_win32.rb: Replace the table and add charset info. * lib/gettext/locale_win32.rb: ditto. 2006-02-10 Masao Mutoh * lib/gettext/locale_object.rb: Add script, sort_order properties. 2006-02-09 Masao Mutoh * test/gettext_test_locale.rb: Added modifier test. * lib/gettext/locale_object.rb: Added to parse modifier. * lib/gettext/locale.rb: Fixed bug of Locale#set_current. * test/gettext_test_cgi.rb: Added tests. * lib/gettext/cgi.rb: Apply RDoc. * lib/gettext/locale_default.rb, locale.rb: Modify RDoc. * lib/gettext/locale_win32.rb: Imprement pseudo Locale::System.get_charset(). 2006-02-07 Masao Mutoh * test/gettext_test_locale.rb: Added for new Locale. * lib/gettext/locale.rb: Refactored. Follow to support Locale::Object. Add Locale.set_default, .default=, .system, .default, .current, .set_current, .current=, .current_charset. Reimplemented .get/.set. Locale.set(loctype, localestr) is deprecated. Use Locale.set(localestr) instead. Locale.setlocale(loctype, localestr) is deprecated. Use Locale.set(localestr) instead. Locale.get(loctype) is deprecated. Use Locale.get instead. 2006-02-05 Masao Mutoh * test/test_rubyparser_n_.rb: Rename from test/test_rubyparser_n.rb. This has a problem on Windows with test/test_rubyparser_N.rb. 2006-02-04 Masao Mutoh * pre-setup.rb: Remove previous installed files first. * ext/gettext/gettext: Removed. * ext/gettext/locale_system.c: Added as Accessor to system(win32/posix). (Move from ext/gettext/gettext/_locale.c) * ext/gettext/extconf.rb: ditto. * lib/gettext/locale_default.rb: Follow above changes. Apply RDoc. * lib/gettext/locale_win32.rb: Follow above changes. Apply RDoc. * lib/gettext/locale.rb: Code cleanup. Apply RDoc. * lib/gettext/locale_object.rb: Added Locale::Object. Apply RDoc. * setup.rb: Update to 3.4.1. 2006-01-25 Masao Mutoh * lib/gettext/rmsgmerge.rb: Fixed bugs. Follow the comment messages to GNU GetText. By speakillof. 2006-01-20 Masao Mutoh * lib/gettext/rails.rb: Added ActiveRecord::Base#error_message_(title|explanation). Reimplement ActionView::Helpers::ActiveRecordHelper::L10n.error_messages_for to separate error_message_(title|explanation) to be able to be overrided by user. The idea is from Trung Tran. * samples/rails/app/models/article.rb: Add a sample of ActiveRecord::Base#error_message_(title|explanation). 2006-01-19 Masao Mutoh * lib/gettext.rb: n_() accepts first arguments as an Array([msgid, msgid_plural]). * test/gettext_test.rb: Add tests for n_(ary, n), Nn_(). * lib/gettext/parser/ruby.rb: Added Nn_() is same purpose with N_, but for n_. * lib/gettext.rb: Added Nn_(msgid, msgid_plural). 2006-01-14 Masao Mutoh * samples/rails/po/*/blog.po: Updated. * NEWS: Updated. 2006-01-10 Masao Mutoh * lib/gettext/parser/activerecord.rb: Fixed to fail loading YAML file. By Karel Miarka. 2006-01-08 Masao Mutoh * *po/el/*.po: Convert to UTF-8. By damphyr. 2006-01-07 Masao Mutoh * test/gettext_test_parser.rb: Add test_rgettext_parse. * test/test_erb.rxml: Added. * lib/gettext/rails.rb: Added ActionController::TestRequest for testing. Reported by Nick Snels. * samples/rails/README: Added test information. * samples/rails/test/functional/blog_controller_test.rb: Implemented. * **/*po[t]: Revised headers. * samples/po/el/*.po, samples/cgi/po/el/*.po, samples/rails/po/el/*.po, po/el/rgettext.po, rails.po: Added Greek locale by damphyr. * README: Updated. * lib/gettext/version.rb: Increment micro version. 2006-01-02 Masao Mutoh * lib/gettext/parser/activerecord.rb: Fixed to read configuration correctly. Reported by Donald Piret. Prevent to output duplicate msgid. Reported by Nick Snels. 2005-12-31 Masao Mutoh * lib/gettext/rails.rb: Check @@gettext_domainname is set first to avoid set the wrong value to the Content-Type when init_gettext is not called. Pointed out by Kazuhiro NISHIYAMA. 2005-12-29 Masao Mutoh * lib/gettext/locale_win32.rb: Fixed a syntax error. * po/{it,sv}/rgettext.po: Updated. * samples/rails/po/ja/blog.po: Fixed a fuzzy message. * po/de/rgettext.po: Fixed a compilingproblem. * README, NEWS: Updated. * lib/gettext/rails.rb: Fix a problem when http://localhost:3000/rails_info/properties is called. Pointed out by Kazuhiro NISHIYAMA. * po/de/rails.po: Added by Sasa Ebach. * po/de/rgettext.po, samples/rails/po/de/*.po: Updated by Sasa Ebach. 2005-12-28 Masao Mutoh * NEWS: Updated. * README: Updated. * po/es/rails.po: Added by David Espada. * po/es/rgettext.po, samples/rails/po/es/*.po: Updated by David Espada. 2005-12-27 Masao Mutoh * test/gettext_test_string.rb: Add a test. 2005-12-26 Masao Mutoh * samples/rails/app/controllers/blog_controller.rb: Updated. 2005-12-25 Masao Mutoh * NEWS: Updated. * README: Updated. * lib/gettext/parser/activerecord.rb: Don't show the messages when ActiveRecord and its subclasses are not found. * po/ja/rgettext.po: Updated. 2005-12-24 Masao Mutoh * samples/po/nl/*.po, samples/cgi/po/nl/*.po, samples/rails/po/nl/*.po, po/nl/rgettext.po, rails.po: Added Dutch locale by Menno Jonkers. 2005-12-23 Masao Mutoh * README: Updated. * README.ja: Removed. * po/ko/rails.po: Added by Gyoung-Yoon Noh. * po/ko/rgettext.po, samples/po/ko/*.po, samples/cgi/po/ko/*.po, samples/rails/po/ko/*.po: Updated by Gyoung-Yoon Noh. * lib/gettext/textdomain.rb: Fixed a bug when mo-files are not found. * samples/rails/po/en/blog.po: Added for English. You can change the table names, field names of ActiveRecord even you use English. * lib/gettext/textdomain.rb: Code cleanup. * samples/rails/vendor/plugins/gettext/lib/gettext_plugin.rb: begin a new line each 6 language. * samples/rails/vendor/plugins/gettext/po/*: Update version info. 2005-12-21 Masao Mutoh * samples/rails/README: Updated. * lib/gettext/utils.rb: Added. GetText.update_pofiles. * Rakefile, samples/rails/Rakefile: Use GetText.update_pofiles. 2005-12-20 Masao Mutoh * lib/gettext/utils.rb: Added. Implement GetText.updatepo. * Rakefile: 2005-12-19 Masao Mutoh * samples/po/cs/*.po, samples/cgi/po/cs/*.po, samples/rails/po/cs/*.po, po/cs/rgettext.po, rails.po: Added Czech locale by Karel Miarka. 2005-12-18 Masao Mutoh * po/fr/rgettext.po, samples/cgi/po/fr/main.po: Updated by Laurent Sansonetti. * po/fr/rails.po: Added by Laurent Sansonetti. * po/pt_BR/rails.po, samples/cgi/po/pt_BR/*.po, samples/rails/po/pt_BR/*.po: Added by Joao Pedrosa. * po/pt_BR/rgettext.po, samples/po/pt_BR/*.po: Updated by Joao Pedrosa. 2005-12-17 Masao Mutoh * po/rails.pot, po/ja/rails.po: Added. * test/gettext_test_string.rb: Added. 2005-12-12 Masao Mutoh * samples/rails/Rakefile: Added "updatepo" task. * lib/gettext/parser/activerecord.rb: Added a parser for ActiveRecord. 2005-12-10 Masao Mutoh * lib/gettext/rails.rb: Added GetText information to Rails::Info. 2005-12-08 Masao Mutoh * test/gettext_test_cgi.rb: Added tests for Locale.normalize. * lib/gettext/cgi.rb: Fix a problem of Locale.normalize. 2005-12-07 Masao Mutoh * lib/gettext/cgi.rb: Separate Locale.normalize. 2005-12-06 Masao Mutoh * test/gettext_test.rb, test/po/{da,fr}/plural_error.po: Fix test_plural_format_invalid. 2005-12-05 Masao Mutoh * test/gettext_test.rb, test/po/*/plural.po: Fix test case. 2005-12-04 Masao Mutoh * samples/rails/vendor/plugins/gettext/lib/gettext_plugin.rb: Revised comments. 2005-12-01 Masao Mutoh * lib/gettext/rails.rb: Improved to support L10n for ActiveRecord::Errors. Improve ActionController::Base.init_gettext(_main). * samples/rails/app/controller/application.rb: Improved comments. * samples/rails/app/views/blog/_form.rhtml: Add information to validate. 2005-11-27 Masao Mutoh * lib/gettext/string.rb: Added. New syntax ":{foo} is bar." % {:foo => "foo"} is supported. * lib/gettext/rmsgmerge.rb: Added. * lib/gettext.rb, lib/gettext/textdomain.rb: Fix a bug of GetText.ngettext. 2005-11-25 Masao Mutoh * samples/rails/app/*: Rewrite for RoR 0.14.x. * lib/gettext/rails.rb: Added ActionController::Base.init_gettext. * samples/rails/app/controllers/application.rb: ditto. 2005-11-23 Masao Mutoh * samples/rails/app/controllers/application.rb: Use GetText.output_charset to set the Content-Type. * lib/gettext/rails.rb: Call bindtextdomain in models(ActiveRecord) when bindtextdomain is called in before_filter of ActionController. Inspired from Simon Santoro. * samples/rails/app/models/article.rb: Added to validate description with localized message. 2005-10-22 Masao Mutoh * po/*: Merge rmsgfmt to rgettext. * po/**/rmsgfmt.po[t]: Removed(merge to rgettext.po[t]). * lib/gettext/rmsgmerge.rb: Added by speakillof. * bin/rmsgmerge: Added. * src/poparser.ry: Renamed rmsgfmt.ry to poparser.ry. * lib/gettext/rmsgfmt.rb: Added. Separate code from rmsgfmt.ry. * Rakefile: Check racc is existed or not. * lib/gettext/mo.rb: Follow poparser.ry changes. 2005-09-16 Masao Mutoh * lib/gettext/rgettext.rb: Fixed a header of time strings. Reported by Karel Miarka. 2005-09-12 speakillof * lib/gettext/parser/ruby.rb: Added "here document" support. 2005-09-05 Masao Mutoh * lib/gettext.rb: Added GetText.locale. Both of GetText.locale= and GetText.locale behaves "global". If you set this once, follow bindtextdomain(s) use this value. * lib/gettext/cgi.rb: Added Locale.set. * lib/gettext/locale_win32.rb: ENV value is prior to native locale. Added Locale.set. * test/gettext_test.rb: Follow above changes. 2005-09-04 Masao Mutoh * Rakefile: move test task to testunit task. * samples/cgi/*.cgi: Support rubygems. * lib/gettext/rails.rb: The default of "charset" parameter becomes nil instead of "UTF-8". You need to call GetText.output_charset=() first. * samples/rails/app/controllers/application.rb: Call GetText.output_charset = "UTF-8" first. 2005-09-03 Masao Mutoh * src/rmsgfmt.ry: Fixed VERSION info. * Rakefile: Update to make package correctly. Call create_mofiles for test/po/ Add test task. Create win32 package correctly on Win32. * test/makemo.rb: Removed. Use rake makemo instead. * NEWS: Added. * 1.0.0 released. 2005-08-31 Masao Mutoh * samples/cgi/Rakefile: Added. * samples/cgi/README: Modified. * samples/README: Modified. * samples/po/ko/*.po: Added Korean by Gyoung-Yoon Noh. * src/rmsgfmt.ry, po/**/rmsgfmt.po: Fix a typo. * samples/makemo.rb: Re-add for creating mo-files. * po/es/*.po: Updated by David Espada. * po/samples/rails/es/*.po: Added by David Espada. * po/de/*.po: Updated by Sven Herzberg. * po/samples/rails/de/*.po: Added by Sven Herzberg. * po/fr/*.po: Updated by Laurent Sansonetti. * po/samples/rails/fr/*.po: Added by Laurent Sansonetti. * README, README.ja: Updated. * samples/rails/*.[rb|rhtml]: Modified header informations. * lib/gettext/version.rb: Modified header information. * samples/rails/README: Revised. * samples/rails/db/postgresql.sql: Added. 2005-08-30 Masao Mutoh * po/ko/*.po, samples/cgi/po/ko/*.po, samples/rails/po/ko/*.po: Added Korean by Gyoung-Yoon Noh. * lib/gettext/textdomain.rb: Improve to print error message when No mo files were found. 2005-08-28 Masao Mutoh * samples/rails/*: Added a sample for Ruby on Rails. 2005-08-27 Masao Mutoh * lib/gettext/textdomain.rb: Added search mo-path: #{gems_path}/#{app}/locale/#{lang}/ * lib/gettext/cgi.rb: Fix an alias bug(set_cgi is an alias of cgi=, not cgi). 2005-08-23 Masao Mutoh * samples/cgi/helloerb1.cgi, helloerb2.cgi: Set @domainname obviously. * pre-clean.rb: Removed. * samples/makemo.rb, samples/cgi/makemo.rb: Removed. Use "rake makemo" instead. * post-setup.rb: Added "lib" to library path. * lib/gettext/locale.rb: Added pseudo Locale module when no _locale.so is found.(installation time by rake only) 2005-08-21 Masao Mutoh * src/rmsgfmt.ry: Added GetText.create_mofiles. * test/gettext_test.rb, testlib4.rb: Added tests for GetText.textdomain. * samples/hello_textdomain.rb: Added a sample for GetText.textdomain. * lib/gettext/locale_default.rb: Call setlocale first. * lib/gettext.rb: Added GetText.textdomain. Added NoboundTextDomainError. * lib/gettext/textdomain.rb: Added TextDomain#charset. * lib/gettext/container.rb: Rename @domainname to @gettext_container_domainname. Pointed out by speakillof. * pre-setup.rb: call rake setup. 2005-08-20 Masao Mutoh * lib/gettext/locale.rb: require '_locale' if 'gettext/_locale' failed to load(for rubygems). 2005-08-18 Masao Mutoh * lib/gettext/textdomain.rb: Add Gem paths as search paths. 2005-08-15 Masao Mutoh * bin/rmsgfmt: Move methods to src/rmsgfmt.ry. * src/rmsgfmt.ry: Improved. Added GetText.rmsgfmt. 2005-08-14 Masao Mutoh * Rakefile: Added. * lib/gettext/version.rb: Added. * lib/pre-setup.rb: Removed. * lib/gettext/rgettext.rb: Added. Added GetText.rgettext. 2005-08-13 Masao Mutoh * README, REAMDE.ja: Updated informations. * The project moves to rubyforge. 2005-05-01 Masao Mutoh * lib/gettext/locale_win32.rb: Added pseudo constants of setlocale. * samples/cgi/ruby.bat: Added for Win32. * samples/cgi/README: Modified. * samples/cgi/http.rb: Support Win32. * 0.9.0 released. 2005-04-30 Masao Mutoh * lib/gettext/cgi.rb: Added Locale.set_cgi() as alias of .cgi=. 2005-04-25 Masao Mutoh * samples/cgi/po/de/: Translated by Detlef Reichl. * samples/cgi/po/es/: Translated by David Moreno Garza. * samples/cgi/po/it/: Translated by Gabriele Renzi. * samples/po/it/: Translated by Gabriele Renzi. 2005-04-24 Masao Mutoh * po/de/*.po : Translated by Detlef Reichl. * po/it/*.po : Translated by Gabriele Renzi. 2005-04-23 Masao Mutoh * src/rmsgfmt.ry: Fix a bug not to unesacpe '"'. Support new transltations. * samples/cgi/*: Updated. * samples/cgi/po/fr/*: Translated by Laurent Sansonetti. 2005-04-22 Masao Mutoh * lib/gettext/cgi.rb: Locale.get checks the cookie value. The search priority is: query_string(lang) > cookie(lang) > HTTP_ACCEPT_LANGUAGE > "en". 2005-04-21 Masao Mutoh * lib/gettext/cgi.rb: Added Locale.cgi=, .cgi, GetText.cgi=, .cgi, .set_cgi. 2005-04-20 Masao Mutoh * lib/gettext.rb: Defined domain name as @domainname. Added GetText.set_output_charset as alias of .output_charset=. * lib/gettext/container.rb: Added. * lib/gettext/erb.rb: Make ErbContainer a module not a class and includes GetText::Container. * samples/erb/*: Follow this changes. * samples/cgi/, erb/: Move erb/ to cgi/. 2005-04-19 Masao Mutoh * samples/erb/*: Added sample for CGI/ERB. 2005-04-18 Masao Mutoh * lib/gettext/erb.rb: Added for ERB support. * lib/gettext/cgi.rb: Added for CGI support. * lib/gettext.rb: Add GetText.output_charset=. 2005-04-11 Masao Mutoh * lib/gettext.rb: Add GetText.set_locale, set_charset. 2005-04-10 Masao Mutoh * src/rmsgfmt.ry: Remove comment_old which isn't used anymore. 2005-04-09 Masao Mutoh * lib/gettext/gettext.rb, locale.rb, locale_default.rb: Fix bugs that Locale.get, Locale.codeset return wrong values. * test/gettext_text.rb: Add test for Locale module. 2005-04-02 Masao Mutoh * test/gettext_test_parser.rb, test_erb.rhtml: Added tests for erb parser. * lib/gettext/textdomain.rb: print debug message to $stderr, not $stdout. * lib/gettext/parser/erb.rb: Added. rgettext support ERB. Inspired by Sascha Ebach. * lib/gettext/parser/*.rb, bin/rgettext: Code clean up. 2005-03-31 Masao Mutoh * lib/gettext.rb, lib/gettext/textdomain.rb: reimplement sgettext. * lib/gettext.rb: Improve GetText.bindtextdomain * test/makemo.rb, samples/makemo.rb: Improve to run rmsgfmt. * pre-setup.rb: Improve to run racc. 2005-03-28 Masao Mutoh * ext/gettext/gettext/_locale.c: Locale.codeset calls setlocale(LC_CTYPE, "") not LC_ALL. * lib/gettext.rb: Update VERSION info. * lib/gettext/locale.rb: Remove to read LC_CTYPE. Now, this uses the environment variables LC_ALL, LC_MESSAGES and LANG (in that order) same as GNU GetText. Point outed by Dafydd Harries. * samples/helloglade2.rb: Run correctly on the samples directory. * 0.8.1 released. 2005-03-20 Masao Mutoh * src/rmsgfmt.ry: Fix a problem with \r, \t, \n. Reported by Guillaume Cottenceau. 2004-11-27 Masao Mutoh * src/rmsgfmt.ry: Fix an error when #~ lines are existed. Pointed out by Patrick GUNDLACH. * lib/gettext/parser/ruby.rb: Fix rgettext ignore "\#" by Kazuhiro NISHIYAMA. * test/test_rubyparser.rb, gettext_test_parser.rb: Added test for "\#". 2004-11-07 Masao Mutoh * po/pt_BR/*.po, samples/po/pt_BR/*.po: Added. Translated by Joao Pedrosa. 2004-11-06 Masao Mutoh * README, README.ja: Revised. * po/sv/*.po, samples/po/sv/*.po: Added. Translated by Nikolai Weibull. * po/es/*.po, samples/po/es/*.po: Added. Translated by David Espada. * 0.8.0 released. 2004-11-05 Masao Mutoh * po/fr/*.po, samples/po/fr/*.po: Added. Translated by Laurent Sansonetti. * test/test_rubyparser_N.rb: Added. * test/test_rubyparser.rb: Added a test. * lib/gettext.rb: Increment minor version. 2004-11-04 Masao Mutoh * test/gettext_test_parser.rb: Added test for n_(). * lib/gettext/parser/ruby.rb: Improved to parse n_(). * test/test_rubyparser_n.rb: Added. 2004-11-03 Masao Mutoh * lib/gettext/parser/ruby.rb: Support _("a" + "b") pattern as "ab". 2004-10-23 Masao Mutoh * setup.rb: Update to setup.rb-3.3.1. * README, README.ja: Modified. * 0.7.0 released. 2004-10-22 Masao Mutoh * lib/gettext/iconv.rb: Added. * lib/gettext/mo.rb: Requires 'gettext/iconv' instead of 'iconv'. 2004-10-21 Masao Mutoh * lib/gettext.rb: every methods don't raise error when GetText.bindtextdomain isn't called first. 2004-10-12 Masao Mutoh * bin/rgettext: Modified header like as GNU GetText. Escape double quote correctly. * test/gettext_test_parser.rb: Added tests for GetText::GladeParser. * test/test_gladeparser.rb: Added. 2004-10-11 Masao Mutoh * lib/gettext/textdomain.rb: Added GETTEXT_PATH environment variable for searching path. This is for testing/debugging. Improved GetText::TextDomain#set_locale. Reported by Dafydd Harries from Debian Bug Tracking System #275010. * lib/gettext.rb, lib/gettext/textdomain.rb: Separate GetText::Domain to lib/gettext/textdomain.rb. * lib/gettext.rb: Increment GetText::VERSION. 2004-08-12 Masao Mutoh * lib/gettext.rb: Add GetText.sgettext(msgid), .s_(msgid) . * bin/rgettext: Support GetText.sgettext, .s_. * test/gettext_test.rb, test_sgettext.rb, test/po/ja/test_sgettext.po: Added for GetText.sgettext, .s_ tests. 2004-07-21 Masao Mutoh * README, README.ja: Modified some old descriptions. * lib/gettext.rb: Incremented revision. * 0.6.1 released. 2004-07-11 Masao Mutoh * lib/gettext/parser/glade.rb: Fixed a bug for empty-string value. * post-setup.rb: Fixed a install problem reported by wwp. 2004-07-04 Masao Mutoh * post-setup.rb, pre-clean.rb, pre-setup.rb: Improved by Nobu Nakada. * setup.rb: Replaced install.rb. Pointed out by Nobu Nakada. * README, README.ja: Follow above changes. 2004-07-03 Masao Mutoh * test/gettext_test.rb: Added some complex cases. * test/gettext_runner.rb: Added. * test/po/ja/test_rubyparser.po: Added. * lib/gettext.rb: Added GetText::VERSION. * docs/*: Removed. See website instead. * 0.6.0 released. 2004-06-27 Masao Mutoh * bin/rgettext: Support Glade-2 XML file. * po/ja/rgettext.po: Ditto. * lib/gettext/parser/ruby.rb, glade.rb: Added. * test/gettext_test_parser.rb, test_rubyparser.rb: Added. * lib/gettext/parser/ruby.rb: Improved to parse complex strings. 2004-06-23 Masao Mutoh * lib/gettext/mo.rb: Fix a bug to save data to a file. 2004-06-15 Masao Mutoh * src/rmsgfmt.ry: Force override if the file exist. This is the same behavior as GNU msgfmt. * lib/gettext/mo.rb: Fixed a bug that "Plural-Forms" part isn't defined in po-file but has plural part. Reported by Dafydd Harries. * test/po/[fr|ja|de]/plural_error.po: Added for a test of plural forms. * test/gettext_test.rb: ditto. 2004-03-26 Masao Mutoh * lib/gettext.rb: Fixed to return empty strings when translated strings are empty. * 0.5.5 released. 2004-02-14 Masao Mutoh * lib/gettext/locale.rb: Changes PLATFORM to RUBY_PLATFORM for ruby-1.9. * 0.5.4 released. 2003-12-02 Masao Mutoh * lib/gettext.rb: Improve the initial speed. * 0.5.3 released. 2003-11-27 Masao Mutoh * bin/rgettext: Fix bugs when \M or \C are given. 2003-11-12 Masao Mutoh * ext/gettext/gettext/_locale.c: Fix bugs for Win32. Pointed out by Nobu Nakada. * docs/config.rb: Removed. * docs/rd/*/ruby-gettext.rd: Modified. * 0.5.2 released. 2003-07-05 Masao Mutoh * ext/gettext/gettext/_locale.c: Define Locale.setlocale() and LC_* constants. * lib/gettext.rb, lib/gettext/*.rb: Code cleanup. * post-setup.rb: Fix mo files had not been compiled. * 0.5.1 released. 2003-07-04 Masao Mutoh * samples/hello2.rb: Fix warning for ruby-1.8.x. * ext/gettext/gettext/_locale.c: Call setlocale(LC_NUMERIC, "C") for some locales which doesn't use "." as decimal-point. * pre-setup.rb: Removed. * post-setup.rb: Fix some bugs. 2003-01-07 Masao Mutoh * samples/hellogtk2.rb: Support Ruby/GTK2. * gettext/mo.rb: Fix for bad mo files which don't include header part. * bin/rgettext: Remove ",fuzzy" for header part. Set default charset to UTF-8. * src/rmsgfmt.ry, po/rmsgfmt.pot, po/ja/rmsgfmt.po: Add files. * 0.5.0 released. 2002-10-21 Masao Mutoh * Support ngettext(alias name is n_). * Change directory structure. * Remove *.mo from tar-ball(they are created automatically in installing). * bin/rgettext, po/rgettext.pot, po/ja/rgettext.po: Revise help message. * bin/rgettext: Fix POT-Creation-Date was localized. * samples/hello_plural.rb: Add a sample. * test/*: Add test for ngettext. * 0.4.0 released. 2002-10-18 Masao Mutoh * lib/gettext/mo.rb: Fix bad return value when msgstr is not existed. Pointed out by Shinobu TAKANASHI * test/*: Change RubyUnit to Test::Unit. * 0.3.2 released. 2002-07-06 Masao Mutoh * lib/locale.rb: Support MinGW. * lib/mo.rb: Support platforms which do not support Iconv. * 0.3.1 released. 2002-07-02 WATANABE Hirofumi * ext/gettext/gettext/extconf.rb:Support MinGW. 2002-07-01 Nobuyoshi Nakada * ext/gettext/gettext/_locale.c: Code cleanup. * po/ja.po: Fix typo. * pre-install.rb: Code cleanup. 2002-06-30 Masao Mutoh * Support to convert output strings with charset(codeset). - Add 4th parameter to GetText.bindtextdomain for charset - Add GetText.charset=(). - Support Environment variable OUTPUT_CHARSET. * samples/po/makemo.rb: support Ruby-1.6.x. Reported by KUMAGAI Hidetake * 0.3.0 released. 2002-02-22 Masao Mutoh * docs/rd/[ja|en]/ruby-gettext.rd: Some modified. * lib/gettext.rb: show more informations in debug mode(-d) * bin/rgettext: BugFix for bad implementation of GetText.N_(msg). by Masahiro Sakai * po/ja.po: change charset from iso-2022-jp to euc-jp. by Masahiro Sakai * 0.2.1 released. 2002-02-21 Masao Mutoh * lib/gettext.rb: Implement GetText.N_(msg) * bin/rgettext: Apply to GetText.N_(msg) * samples/hello_noop.rb: Add a sample for GetText.N_(msg). * test/gettext_test.rb: Add test_noop. * docs/rd/[ja|en]/ruby-gettext.rd: Add an explanation of GetText.N_(msg). * 0.2.0 released. 2002-02-13 Masao Mutoh * ruby-gettext-package: Move pre-clean.rb to pre-install.rb. Reported by Yoshifumi Hiramatsu * lib/gettext.rb: Improve search-path(@locale_dirs). * bin/rgettext, samples/*.rb: Improve first line(Add #! line or change #!/usr/bin/env ruby to #!/usr/local/bin/ruby). * samples/hellotk.rb: add new sample for Ruby/Tk * 0.1.2 released. 2002-02-03 Masao Mutoh * lib/gettext.rb: BugFix to occur an error when all of locale is not set. * README, README.ja: Modified about Bad explanation in Install section. Reported by Yoshifumi Hiramatsu * docs/rd/*/ruby-gettext.rd: Some improvements. * docs/yard2html.rb: Some improvements. * 0.1.1 released. 2002-01-06 Masao Mutoh * lib/gettext.rb: Bugfix for bad scope. * bin/rgettext: Sort by file, lineno. * test/: Add one test. * docs/rd/*/ruby-gettext.rd: Modified about rgettext. * 0.1.0 released. 2002-01-01 Masao Mutoh * docs/: Add english document and some improvements. * test/: Add one test. * samples/: Add hello2.rb. * 0.0.2 released. 2001-12-24 Masao Mutoh * test release