Hi, Ruby-GetText-Package-1.1.0 is now available. This release enhances many features for Ruby on Rails. I hope this release make your Application support L10n. And thanks for many helps! Highlights ---------- * Added some functions which managed po/mo files easily. * GetText.update_pofiles creates/updates pot/po files. The idea is from Sascha Ebach. * String% is extended to accept named argument. "%{file} is selected." % {:file => "foo.rb"} Proposed by Sascha Ebach and Kazuhiro NISHIYAMA. * Enhanced Ruby on Rails support. * ActiveRecord support. Inspired from Simon Santoro(rgtrans). * the error messages are localized. Also, you can add your own messages with _(""). * You can use gettext methods in the models unless preparing anything. * rgettext extracts the table names/field names of the subclass of ActiveRecord::Base as the msgid. You don''t need to add anything to your model classes by yourself. Even for the English developers who don''t need to localize their application, this function is useful because the developer can rename the table/field names using "en" locale. * More simple to set up ApplicationController. Now, you need to call just init_gettext only. class ApplicationController < ActionController::Base init_gettext "myapp" #Easy! end This "myapp" domain affects all of the controllers/views/models. * Sample "blog" application with rails. Improved the sample application on RoR. See: samples/rails/*. * New/Updated translations: Czech - Karel Miarka (NEW) Dutch - Menno Jonkers (NEW) French - Laurent Sansonetti German - Sasa Ebach Japanese - Masao Mutoh Korean - Gyoung-Yoon Noh Portuguese(Brazil) - Joao Pedrosa Spanish - David Espada * bugfixes. Website ------- http://rubyforge.org/projects/gettext/ * Download http://rubyforge.org/frs/?group_id=855&release_id=2856 * Ruby-GetText-Package HOWTOs http://ponx.s5.xrea.com/hiki/ruby-gettext-howto.html * Ruby-GetText-Package HOWTO for CGI/ERB http://ponx.s5.xrea.com/hiki/ruby-gettext-howto-cgi.html * Ruby-GetText-Package HOWTO for Ruby on Rails (NEW) http://ponx.s5.xrea.com/hiki/ruby-gettext-howto-rails.html * Ruby-GetText-Package API Reference http://ponx.s5.xrea.com/hiki/ruby-gettext-api.html What''s this? ------------- Ruby GetText Package is a Native Language Support Library and Tools which modeled after GNU gettext package. * Simple APIs(similar GNU gettext) * rgettext command for creating po-files from files below: o ruby scripts o glade-2 XML file(.glade) o ERB file(.rhtml) o ActiveRecord (.rb) * rmsgfmt command for creating a mo-file from a po-file. * The po-file is compatible to GNU gettext. You can maintain these files to use GNU getext tools. * The mo-file is compatible to GNU gettext(msgfmt). * multi-textdomain supported. You can select two kind of textdomain''s scope: o A file base (default: recommanded) o A Class/Module base (GetText::Container, GetText::ErbContainer, GetText::Rails) * CGI support (gettext/cgi) * ERB support (gettext/erb) * Ruby on Rails support (gettext/rails) Status of translations ---------------------- cs - 1.1.0 fr - 1.1.0 de - 1.1.0 es - 1.1.0 it - 1.0.0 (still old) ja - 1.1.0 ko - 1.1.0 nl - 1.1.0 pt_BR - 1.1.0 sv - 0.8.0 (still old) Can you help us?/ Can we help you? ---------------------------------- I''ve started gettext-users-en mailing list. http://rubyforge.org/mail/?group_id=855 Join us if you are interested in: * Improve Ruby-GetText-Package. * Translators. * Application/library owners who think to make your apps/libs L10n. If you send us your po-files, we''ll translate it! # At least, a Japanese translator is available ;). Regards, -- .:% Masao Mutoh<mutoh-+e5RZkbjevhHfZP73Gtkiw@public.gmane.org>
Hi, I mailed a patch for the document[1] to Sascha Ebach (who is the author of the document). It will be updated soon. [1] "Using Gettext To Translate Your Rails Application" http://manuals.rubyonrails.com/read/chapter/105 And also, I wrote a simple document for Ruby-GetText/RoR. See http://ponx.s5.xrea.com/hiki/ruby-gettext-howto-rails.html Regards, Masao. On Thu, 29 Dec 2005 17:06:21 +0900 Masao Mutoh <mutoh-+e5RZkbjevhHfZP73Gtkiw@public.gmane.org> wrote:> Hi, > > Ruby-GetText-Package-1.1.0 is now available. > > This release enhances many features for Ruby on Rails. > I hope this release make your Application support L10n. > > And thanks for many helps! > > Highlights > ---------- > * Added some functions which managed po/mo files easily. > * GetText.update_pofiles creates/updates pot/po files. > The idea is from Sascha Ebach. > > * String% is extended to accept named argument. > "%{file} is selected." % {:file => "foo.rb"} > Proposed by Sascha Ebach and Kazuhiro NISHIYAMA. > > * Enhanced Ruby on Rails support. > * ActiveRecord support. Inspired from Simon Santoro(rgtrans). > * the error messages are localized. > Also, you can add your own messages with _(""). > > * You can use gettext methods in the models unless > preparing anything. > > * rgettext extracts the table names/field names > of the subclass of ActiveRecord::Base as the msgid. > You don''t need to add anything to your model classes > by yourself. > > Even for the English developers who don''t need > to localize their application, this function is > useful because the developer can rename > the table/field names using "en" locale. > > * More simple to set up ApplicationController. > Now, you need to call just init_gettext only. > > class ApplicationController < ActionController::Base > init_gettext "myapp" #Easy! > end > > This "myapp" domain affects all of the controllers/views/models. > > * Sample "blog" application with rails. > Improved the sample application on RoR. See: samples/rails/*. > > > * New/Updated translations: > Czech - Karel Miarka (NEW) > Dutch - Menno Jonkers (NEW) > French - Laurent Sansonetti > German - Sasa Ebach > Japanese - Masao Mutoh > Korean - Gyoung-Yoon Noh > Portuguese(Brazil) - Joao Pedrosa > Spanish - David Espada > > * bugfixes. > > > Website > ------- > http://rubyforge.org/projects/gettext/ > > * Download > http://rubyforge.org/frs/?group_id=855&release_id=2856 > > * Ruby-GetText-Package HOWTOs > http://ponx.s5.xrea.com/hiki/ruby-gettext-howto.html > * Ruby-GetText-Package HOWTO for CGI/ERB > http://ponx.s5.xrea.com/hiki/ruby-gettext-howto-cgi.html > * Ruby-GetText-Package HOWTO for Ruby on Rails (NEW) > http://ponx.s5.xrea.com/hiki/ruby-gettext-howto-rails.html > * Ruby-GetText-Package API Reference > http://ponx.s5.xrea.com/hiki/ruby-gettext-api.html > > What''s this? > ------------- > Ruby GetText Package is a Native Language Support Library and > Tools which modeled after GNU gettext package. > > * Simple APIs(similar GNU gettext) > * rgettext command for creating po-files from files below: > o ruby scripts > o glade-2 XML file(.glade) > o ERB file(.rhtml) > o ActiveRecord (.rb) > * rmsgfmt command for creating a mo-file from a po-file. > * The po-file is compatible to GNU gettext. > You can maintain these files to use GNU getext tools. > * The mo-file is compatible to GNU gettext(msgfmt). > * multi-textdomain supported. > You can select two kind of textdomain''s scope: > o A file base (default: recommanded) > o A Class/Module base (GetText::Container, GetText::ErbContainer, GetText::Rails) > * CGI support (gettext/cgi) > * ERB support (gettext/erb) > * Ruby on Rails support (gettext/rails) > > > Status of translations > ---------------------- > cs - 1.1.0 > fr - 1.1.0 > de - 1.1.0 > es - 1.1.0 > it - 1.0.0 (still old) > ja - 1.1.0 > ko - 1.1.0 > nl - 1.1.0 > pt_BR - 1.1.0 > sv - 0.8.0 (still old) > > > Can you help us?/ Can we help you? > ---------------------------------- > I''ve started gettext-users-en mailing list. > > http://rubyforge.org/mail/?group_id=855 > > Join us if you are interested in: > * Improve Ruby-GetText-Package. > * Translators. > * Application/library owners who think to make your apps/libs L10n. > If you send us your po-files, we''ll translate it! > # At least, a Japanese translator is available ;). > > Regards, > > -- > .:% Masao Mutoh<mutoh-+e5RZkbjevhHfZP73Gtkiw@public.gmane.org> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- -- .:% Masao Mutoh<mutoh-+e5RZkbjevhHfZP73Gtkiw@public.gmane.org>
Hi Masao,> Ruby-GetText-Package-1.1.0 is now available.Thank you for this nice release. I hope to get around updating the Rails guide soon. Saša Ebach
Le Jeudi 29 Décembre 2005 09:06, Masao Mutoh a écrit :> Hi, > > Ruby-GetText-Package-1.1.0 is now available. > > This release enhances many features for Ruby on Rails. > I hope this release make your Application support L10n."update_po" method is a real good idea, it was the only thing I was missing. Thanks a lot for this nice lib ! -- Nicolas Cavigneaux | GPG keyID : CFE76D24 nico-DRabjd/C3MEdnm+yROfE0A@public.gmane.org | http://www.bounga.org _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Great new masao. Thank you for making a difference to a large group of rails and ruby developers. Sekhar _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails