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