I have released an i18n module for Rails under the Apache license. I am in the process of porting my open source j2ee WorkEffort application to ROR (https://workeffort.dev.java.net) and since it requires i18n support I put together this simple i18n module. It is similar to how i18n is supported in java web frameworks. The i18n module and documentation can be found at http://www.logicden.com/site/downloads The completed ROR version of the WorkEffort application will be available sometime next month and yes it will be open sourced. Antony Joseph http://www.logicden.com https://workeffort.dev.java.net http://www.detroitjug.org -- _______________________________________________ NEW! Lycos Dating Search. The only place to search multiple dating sites at once. http://datingsearch.lycos.com
In the docs for I18n::MessageResources under the Notes bullet: # All translation files are loaded during initialization. When is initialization when running in Development environment? When the file changes or when the (webrick) server starts? /Marcus Ps. Like it -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Antony Joseph Sent: den 26 juli 2005 13:15 To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] [ANN] i18n module for Rails released. I have released an i18n module for Rails under the Apache license. I am in the process of porting my open source j2ee WorkEffort application to ROR (https://workeffort.dev.java.net) and since it requires i18n support I put together this simple i18n module. It is similar to how i18n is supported in java web frameworks. The i18n module and documentation can be found at http://www.logicden.com/site/downloads The completed ROR version of the WorkEffort application will be available sometime next month and yes it will be open sourced. Antony Joseph http://www.logicden.com https://workeffort.dev.java.net http://www.detroitjug.org -- _______________________________________________ NEW! Lycos Dating Search. The only place to search multiple dating sites at once. http://datingsearch.lycos.com _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
The initialization occurs when the first time I18n::MessageResources.instance() is called. The way it is written now , if you change the translation files and want to see the changes you will have to bounce Webrick. ----- Original Message ----- From: "Marcus Andersson" <ma-F/E6tIDLPvR6nIa31vAvqA@public.gmane.org> To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: RE: [Rails] [ANN] i18n module for Rails released. Date: Tue, 26 Jul 2005 13:53:01 +0200> > In the docs for I18n::MessageResources under the Notes bullet: > > # All translation files are loaded during initialization. > > When is initialization when running in Development environment? When the > file changes or when the (webrick) server starts? > > /Marcus > > Ps. Like it > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Antony Joseph > Sent: den 26 juli 2005 13:15 > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails] [ANN] i18n module for Rails released. > > I have released an i18n module for Rails under the Apache license. I am > in the process of porting my open source j2ee WorkEffort application to > ROR (https://workeffort.dev.java.net) and since it requires i18n support > I put together this simple i18n module. > It is similar to how i18n is supported in java web frameworks. > > The i18n module and documentation can be found at > http://www.logicden.com/site/downloads > > The completed ROR version of the WorkEffort application will be > available sometime next month and yes it will be open sourced. > > > > Antony Joseph > http://www.logicden.com > https://workeffort.dev.java.net > http://www.detroitjug.org > > > -- > _______________________________________________ > NEW! Lycos Dating Search. The only place to search multiple dating sites > at once. > http://datingsearch.lycos.com > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/railsAntony Joseph http://www.logicden.com https://workeffort.dev.java.net -- _______________________________________________ NEW! Lycos Dating Search. The only place to search multiple dating sites at once. http://datingsearch.lycos.com
I was just wondering why you didn''t use gettext to do the i18n stuff? It seems like a lot of people are coming up with their own way of doing i18n when I believe gettext is a perfectly good solution. Just my opinion of course. Use whatever you like, I just happen to like gettext. http://manuals.rubyonrails.com/read/book/16 On 7/26/05, Marcus Andersson <ma-F/E6tIDLPvR6nIa31vAvqA@public.gmane.org> wrote:> > In the docs for I18n::MessageResources under the Notes bullet: > > # All translation files are loaded during initialization. > > When is initialization when running in Development environment? When the > file changes or when the (webrick) server starts? > > /Marcus > > Ps. Like it > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Antony Joseph > Sent: den 26 juli 2005 13:15 > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails] [ANN] i18n module for Rails released. > > I have released an i18n module for Rails under the Apache license. I am > in the process of porting my open source j2ee WorkEffort application to > ROR (https://workeffort.dev.java.net) and since it requires i18n support > I put together this simple i18n module. > It is similar to how i18n is supported in java web frameworks. > > The i18n module and documentation can be found at > http://www.logicden.com/site/downloads > > The completed ROR version of the WorkEffort application will be > available sometime next month and yes it will be open sourced. > > > > Antony Joseph > http://www.logicden.com > https://workeffort.dev.java.net > http://www.detroitjug.org > > > -- > _______________________________________________ > NEW! Lycos Dating Search. The only place to search multiple dating sites > at once. > http://datingsearch.lycos.com > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
In the other recent i18n thread, someone mentioned that the current Ruby gettext implementation is dependent on iconv, and that this can be a problem (I''m paraphrasing, I don''t have any personal experience here). Curt Ramin wrote:> I was just wondering why you didn''t use gettext to do the i18n stuff? It > seems like a lot of people are coming up with their own way of doing > i18n when I believe gettext is a perfectly good solution. Just my > opinion of course. Use whatever you like, I just happen to like gettext. > > http://manuals.rubyonrails.com/read/book/16 > > > On 7/26/05, *Marcus Andersson* <ma-F/E6tIDLPvR6nIa31vAvqA@public.gmane.org > <mailto:ma-F/E6tIDLPvR6nIa31vAvqA@public.gmane.org>> wrote: > > In the docs for I18n::MessageResources under the Notes bullet: > > # All translation files are loaded during initialization. > > When is initialization when running in Development environment? When the > file changes or when the (webrick) server starts? > > /Marcus > > Ps. Like it > > -----Original Message----- > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > [mailto: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>] On Behalf Of Antony Joseph > Sent: den 26 juli 2005 13:15 > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > Subject: [Rails] [ANN] i18n module for Rails released. > > I have released an i18n module for Rails under the Apache license. I am > in the process of porting my open source j2ee WorkEffort application to > ROR (https://workeffort.dev.java.net > <https://workeffort.dev.java.net>) and since it requires i18n support > I put together this simple i18n module. > It is similar to how i18n is supported in java web frameworks. > > The i18n module and documentation can be found at > http://www.logicden.com/site/downloads > > The completed ROR version of the WorkEffort application will be > available sometime next month and yes it will be open sourced. > > > > Antony Joseph > http://www.logicden.com > https://workeffort.dev.java.net > http://www.detroitjug.org > > > -- > _______________________________________________ > NEW! Lycos Dating Search. The only place to search multiple dating sites > at once. > http://datingsearch.lycos.com > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails > <http://lists.rubyonrails.org/mailman/listinfo/rails> > > > > > -- > - Ramin > http://www.getintothis.com/blog > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails
The requirements as mentionned on the ruby/gettext page : * Ruby 1.8.2 or later<URL:http://www.ruby-lang.org/> * Iconv module(and iconv) Iconv is standard library but it isn''t supported by One-Click Ruby Installer for Win32. If you install Ruby-GNOME2 for Win32 binary, Ruby-GetText-Pacakge uses Ruby/GLib instead of Iconv. * GNU gettext 0.10.35 or later(If you are developer of application which use Ruby-GetText-Pacakge) <URL:http://www.gnu.org/software/gettext/gettext.html> * Racc-1.4.3 or later <URL:http://www.ruby-lang.org/raa/list.rhtml?name=racc> A pure ruby implementation would definitely be easier to install and deploy. Jean On 7/26/05, Curt Hibbs <curt-fk6st7iWb8MAvxtiuMwx3w@public.gmane.org> wrote:> In the other recent i18n thread, someone mentioned that the current Ruby > gettext implementation is dependent on iconv, and that this can be a > problem (I''m paraphrasing, I don''t have any personal experience here). > > Curt > > Ramin wrote: > > I was just wondering why you didn''t use gettext to do the i18n stuff? It > > seems like a lot of people are coming up with their own way of doing > > i18n when I believe gettext is a perfectly good solution. Just my > > opinion of course. Use whatever you like, I just happen to like gettext. > > > > http://manuals.rubyonrails.com/read/book/16 > > > > > > On 7/26/05, *Marcus Andersson* <ma-F/E6tIDLPvR6nIa31vAvqA@public.gmane.org > > <mailto:ma-F/E6tIDLPvR6nIa31vAvqA@public.gmane.org>> wrote: > > > > In the docs for I18n::MessageResources under the Notes bullet: > > > > # All translation files are loaded during initialization. > > > > When is initialization when running in Development environment? When the > > file changes or when the (webrick) server starts? > > > > /Marcus > > > > Ps. Like it > > > > -----Original Message----- > > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > <mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > [mailto: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > <mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>] On Behalf Of Antony Joseph > > Sent: den 26 juli 2005 13:15 > > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > Subject: [Rails] [ANN] i18n module for Rails released. > > > > I have released an i18n module for Rails under the Apache license. I am > > in the process of porting my open source j2ee WorkEffort application to > > ROR (https://workeffort.dev.java.net > > <https://workeffort.dev.java.net>) and since it requires i18n support > > I put together this simple i18n module. > > It is similar to how i18n is supported in java web frameworks. > > > > The i18n module and documentation can be found at > > http://www.logicden.com/site/downloads > > > > The completed ROR version of the WorkEffort application will be > > available sometime next month and yes it will be open sourced. > > > > > > > > Antony Joseph > > http://www.logicden.com > > https://workeffort.dev.java.net > > http://www.detroitjug.org > > > > > > -- > > _______________________________________________ > > NEW! Lycos Dating Search. The only place to search multiple dating sites > > at once. > > http://datingsearch.lycos.com > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org <mailto:Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > http://lists.rubyonrails.org/mailman/listinfo/rails > > <http://lists.rubyonrails.org/mailman/listinfo/rails> > > > > > > > > > > -- > > - Ramin > > http://www.getintothis.com/blog > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
The reason I went looking for another solution (and it looks like a whole bunch of other people are also) is that you need to use other tools to support i18n using gettext. Also I believe some of these tools are operating system dependant. There is also the extra step of creating mo files. The i18n::MessageResources module does not need any extraneous tools. The concept of writting an application to keys is how web frameworks in the java world support i18n and is not something new. ----- Original Message ----- From: Ramin <i8ramin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] [ANN] i18n module for Rails released. Date: Tue, 26 Jul 2005 09:45:57 -0400> > I was just wondering why you didn''t use gettext to do the i18n stuff? It > seems like a lot of people are coming up with their own way of doing i18n > when I believe gettext is a perfectly good solution. Just my opinion of > course. Use whatever you like, I just happen to like gettext. > > http://manuals.rubyonrails.com/read/book/16 > > > On 7/26/05, Marcus Andersson <ma-F/E6tIDLPvR6nIa31vAvqA@public.gmane.org> wrote: > > > > In the docs for I18n::MessageResources under the Notes bullet: > > > > # All translation files are loaded during initialization. > > > > When is initialization when running in Development environment? When the > > file changes or when the (webrick) server starts? > > > > /Marcus > > > > Ps. Like it > > > > -----Original Message----- > > From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Antony Joseph > > Sent: den 26 juli 2005 13:15 > > To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > Subject: [Rails] [ANN] i18n module for Rails released. > > > > I have released an i18n module for Rails under the Apache license. I am > > in the process of porting my open source j2ee WorkEffort application to > > ROR (https://workeffort.dev.java.net) and since it requires i18n support > > I put together this simple i18n module. > > It is similar to how i18n is supported in java web frameworks. > > > > The i18n module and documentation can be found at > > http://www.logicden.com/site/downloads > > > > The completed ROR version of the WorkEffort application will be > > available sometime next month and yes it will be open sourced. > > > > > > > > Antony Joseph > > http://www.logicden.com > > https://workeffort.dev.java.net > > http://www.detroitjug.org > > > > > > -- > > _______________________________________________ > > NEW! Lycos Dating Search. The only place to search multiple dating sites > > at once. > > http://datingsearch.lycos.com > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > -- > - Ramin > http://www.getintothis.com/blog> > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/railsAntony Joseph http://www.logicden.com https://workeffort.dev.java.net http://www.detroitjug.org -- _______________________________________________ NEW! Lycos Dating Search. The only place to search multiple dating sites at once. http://datingsearch.lycos.com
Le 05-07-26 à 05:15, Antony Joseph a écrit :> I have released an i18n module for Rails under the Apache > license. I am in the process of porting my open source j2ee > WorkEffort application to ROR (https://workeffort.dev.java.net) and > since it requires i18n support I put together this simple i18n module.Thanks, Antony. I can''t wait to try it out.> It is similar to how i18n is supported in java web frameworks.Java frameworks may be 10x as slow as Rails 8^}, but Java has some of the best support for i18n that I''ve seen. btw, it''s very exciting to see such a vibrant community here. david> > The i18n module and documentation can be found at > http://www.logicden.com/site/downloads > > The completed ROR version of the WorkEffort application will be > available sometime next month and yes it will be open sourced. > > > > Antony Joseph > http://www.logicden.com > https://workeffort.dev.java.net > http://www.detroitjug.org > > > -- > _______________________________________________ > NEW! Lycos Dating Search. The only place to search multiple dating > sites at once. > http://datingsearch.lycos.com > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Antony, great job! This looks very promising. The vast bulk of my web app work has been in Java, so this looks great to me as well, and being fully Ruby native is nice. The Java approach to this has been the best I''ve seen to date (it''s even nicer that it''s actually part of the base language), and it seems smart to leverage that experience. On 7/26/05 4:15 AM, "Antony Joseph" <ajoseph-mi-DVq+YeWbj7cAvxtiuMwx3w@public.gmane.org> wrote:> I have released an i18n module for Rails under the Apache > license. I am in the process of porting my open source j2ee > WorkEffort application to ROR (https://workeffort.dev.java.net) and > since it requires i18n support I put together this simple i18n module. > It is similar to how i18n is supported in java web frameworks. > > The i18n module and documentation can be found at > http://www.logicden.com/site/downloads > > The completed ROR version of the WorkEffort application will be > available sometime next month and yes it will be open sourced. > > > > Antony Joseph > http://www.logicden.com > https://workeffort.dev.java.net > http://www.detroitjug.org >