From f at andreas-s.net Sat May 13 09:54:56 2006 From: f at andreas-s.net (Andreas S.) Date: Sat, 13 May 2006 15:54:56 +0200 Subject: [Rails I18n] Rails I18n forum test Message-ID: http://www.ruby-forum.com/forum/20 -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Sun May 14 04:37:32 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Sun, 14 May 2006 10:37:32 +0200 Subject: [Rails I18n] Welcome Message-ID: <1eac442ec58380111b9dec0e331e200d@ruby-forum.com> Hi all, on suggestion of Per-Olof Hermansson (http://www.ruby-forum.com/topic/64320) and with great help by Andreas Schwarz (www.ruby-forum.com) this new mailing list (and project site and forum) has been set up on rubyforge (http://railsi18n.rubyforge.org). A rails wiki page Internationalization Comparision (http://wiki.rubyonrails.com/rails/pages/InternationalizationComparison) has already been set up and filled with some content. I hope we have a place now for collecting information, experiences and opinions about I18n with Rails. -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Sun May 14 06:00:16 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Sun, 14 May 2006 12:00:16 +0200 Subject: [Rails I18n] Welcome In-Reply-To: <1eac442ec58380111b9dec0e331e200d@ruby-forum.com> References: <1eac442ec58380111b9dec0e331e200d@ruby-forum.com> Message-ID: <94cc67c851b6636b66b76a1288796005@ruby-forum.com> The link to register: http://rubyforge.org/mailman/listinfo/railsi18n-discussion -- Posted via http://www.ruby-forum.com/. From alainravet-spam2004 at yahoo.com Sun May 14 06:57:45 2006 From: alainravet-spam2004 at yahoo.com (Alain Ravet) Date: Sun, 14 May 2006 12:57:45 +0200 Subject: [Rails I18n] please register this list with gmane.org Message-ID: For those who don't know it, gmane.org adds a newsgroup interface to mailing lists. TIA Alain R. -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Sun May 14 07:51:21 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Sun, 14 May 2006 13:51:21 +0200 Subject: [Rails I18n] please register this list with gmane.org In-Reply-To: References: Message-ID: <9b18f83e32ce9602d39e4ce603bcd994@ruby-forum.com> Addition of the list requested (Rails Internationalization) -- Posted via http://www.ruby-forum.com/. From per-olof.hermansson at massmarketing.se Sun May 14 15:10:46 2006 From: per-olof.hermansson at massmarketing.se (Per-Olof Hermansson) Date: Sun, 14 May 2006 21:10:46 +0200 Subject: [Rails I18n] Welcome In-Reply-To: <1eac442ec58380111b9dec0e331e200d@ruby-forum.com> References: <1eac442ec58380111b9dec0e331e200d@ruby-forum.com> Message-ID: Great! Thanks for your efforts. I, and probably many more from countries with strange characters, appreciate this and hope it will help me in my RoR-programming. Per-Olof Hermansson Sweden -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Mon May 15 04:09:58 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Mon, 15 May 2006 10:09:58 +0200 Subject: [Rails I18n] Globalize DB dependencies (Oracle?) Message-ID: <457fd9a2edf7cc329bd9f4881def6cdb@ruby-forum.com> Having a look at http://wiki.rubyonrails.com/rails/pages/InternationalizationComparison there are basically three options left (Localize seems dead, Multilingual might be a duplicate of Globalize and plain ri18n is probably too low level). Unfortunatly Globalize seems to be DB dependent and there's no Oracle support (I renamed the "feature" in the list above). What are the dependencies? Would it be easy to add Oracle support? BTW: I asked this question in http://wiki.globalize-rails.org/wiki/pages/Frequently+Asked+Questions too. -- Posted via http://www.ruby-forum.com/. From joshmh at gmail.com Mon May 15 04:42:17 2006 From: joshmh at gmail.com (Joshua Harvey) Date: Mon, 15 May 2006 10:42:17 +0200 Subject: [Rails I18n] Globalize DB dependencies (Oracle?) In-Reply-To: <457fd9a2edf7cc329bd9f4881def6cdb@ruby-forum.com> References: <457fd9a2edf7cc329bd9f4881def6cdb@ruby-forum.com> Message-ID: <3527dd260605150142y5967c2cdmf1c40ae7b7499a47@mail.gmail.com> Globalize was loosely based on Multilingual, but I don't think Multilingual is still under active development. Globalize is DB dependent, but there's no DB-specific code in it. It may work on Oracle right now, it's just never been tested. It would be great if you could give it a whirl, Martin. There are no dependencies, just install the plugin (note that there's a new branch for Rails 1.1 -- details at http://globalize-rails.org/wiki), setup vendor/plugin/globalize/test/config/database.yml (you'll want to configure the "test" section), and run the tests. I'd be happy to help you out with any problems. Cheers, Josh http://shnoo.gr On 5/15/06, Martin Bernd Schmeil wrote: > > Having a look at > http://wiki.rubyonrails.com/rails/pages/InternationalizationComparison > there are basically three options left (Localize seems dead, > Multilingual might be a duplicate of Globalize and plain ri18n is > probably too low level). > > Unfortunatly Globalize seems to be DB dependent and there's no Oracle > support (I renamed the "feature" in the list above). What are the > dependencies? Would it be easy to add Oracle support? > > BTW: I asked this question in > http://wiki.globalize-rails.org/wiki/pages/Frequently+Asked+Questions > too. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Railsi18n-discussion mailing list > Railsi18n-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/railsi18n-discussion > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/railsi18n-discussion/attachments/20060515/ba1d92da/attachment.htm From g0nzo at o2.pl Mon May 15 05:25:44 2006 From: g0nzo at o2.pl (szymek) Date: Mon, 15 May 2006 11:25:44 +0200 Subject: [Rails I18n] Gettext or globalize? Message-ID: Hi! I'm finishing my page and soon i'll need to translate (or rather deliver possibility of translation for site owner) it to 3 additional languages (now it's in polish): english, spanish and french. Like on every page there's some static text, but most of the content is read from the database. I need to provide translation of the whole content through www, so the site owner will be able to translate it by himself. What are pros/cons of gettext and globalize? -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Mon May 15 08:44:35 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Mon, 15 May 2006 14:44:35 +0200 Subject: [Rails I18n] Globalize DB dependencies (Oracle?) In-Reply-To: <3527dd260605150142y5967c2cdmf1c40ae7b7499a47@mail.gmail.com> References: <457fd9a2edf7cc329bd9f4881def6cdb@ruby-forum.com> <3527dd260605150142y5967c2cdmf1c40ae7b7499a47@mail.gmail.com> Message-ID: <13d312d99471818fc4ea1da210fc8034@ruby-forum.com> Hi Joshua, thanks for the answer. I'll give it a try and post the results here. -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Mon May 15 10:52:34 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Mon, 15 May 2006 16:52:34 +0200 Subject: [Rails I18n] please register this list with gmane.org In-Reply-To: <9b18f83e32ce9602d39e4ce603bcd994@ruby-forum.com> References: <9b18f83e32ce9602d39e4ce603bcd994@ruby-forum.com> Message-ID: <9f0baae3124c745bdbe38ae7c5d70ce2@ruby-forum.com> ...as gmane.comp.lang.ruby.rails.i18n (it's not set up yet) -- Posted via http://www.ruby-forum.com/. From eugenol at gmail.com Mon May 15 17:19:37 2006 From: eugenol at gmail.com (Eugenol) Date: Mon, 15 May 2006 23:19:37 +0200 Subject: [Rails I18n] Suggested code for auto finding the client locale Message-ID: <8a7ce02e0605151419n1f02fa1x262c11833b3eecf9@mail.gmail.com> # Put in your environment.rb :# ----------------------------ENV['APP_AVAILABLE_LOCALES'] = /^fr|en|es/ # suggestion...ENV['APP_DEFAULT_LOCALE'] = 'fr' # YASuggestion # And in application.rb :# ----------------------- before_filter :set_locale def set_locale # if user clicked on a link for selecting his locale if locale = params[:locale].match( ENV['APP_AVAILABLE_LOCALES'] ) session[:locale] = locale[0] # or if the locale is already set in the session elsif session[:locale].match( ENV['APP_AVAILABLE_LOCALES'] ) # or if the browser sends its locale elsif locale = ENV['HTTP_ACCEPT_LANGUAGE'].match(ENV['APP_AVAILABLE_LOCALES'] ) session[:locale] = locale[0] # else we're not lucky else session[:locale] = ENV['APP_DEFAULT_LOCALE'] endend From marco.lazzeri at gmail.com Mon May 15 19:06:47 2006 From: marco.lazzeri at gmail.com (Marco Lazzeri) Date: Tue, 16 May 2006 01:06:47 +0200 Subject: [Rails I18n] Overriding default error messages with Ruby GetText Message-ID: <8696dc540605151606v404aad2aw9ead807379c2f115@mail.gmail.com> Did anyone achieve translating/overriding the default error messages with Ruby-GetText? Marco From mutoh at highway.ne.jp Tue May 16 01:40:13 2006 From: mutoh at highway.ne.jp (mutoh at highway.ne.jp) Date: Tue, 16 May 2006 14:40:13 +0900 Subject: [Rails I18n] Overriding default error messages with Ruby GetText Message-ID: <20060516144013.mutoh@highway.ne.jp> Hi, > Did anyone achieve translating/overriding the default error messages > with Ruby-GetText? What's your problem? From japgolly at gmail.com Tue May 16 02:34:59 2006 From: japgolly at gmail.com (David Barri) Date: Tue, 16 May 2006 16:34:59 +1000 Subject: [Rails I18n] Railsi18n-discussion Digest, Vol 1, Issue 1 In-Reply-To: References: Message-ID: Hello all. My name is David Barri but all my friends call me Golly (please feel free to use whichever ur comfortable with). I am Australian and work for a Japanese company, mostly developing all kinds of interesting webapps, and also writing in-house software for translation projects. I also do translation sometimes. I am the author of the GLoc Localization Library. Although I've been using in religiously for over six months I only just released it publicly last month. I look forward to talking with other developers, specially those who deal with multiple languages often like I do. Thanks for creating this mailing list. Great idea. (^_-)m Golly From bschmeil at autoscout24.com Tue May 16 11:45:50 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Tue, 16 May 2006 17:45:50 +0200 Subject: [Rails I18n] Globalize for Rails 1.1 setup (MySQL) Message-ID: <56f2948569a25cd2e57c771e7684d7b5@ruby-forum.com> Before I check if I can use Globalize with Oracle I'm trying a test on MySQL first. I'm using Rails 1.1.2. with Ruby 1.8.2 (Linux). > ruby script/plugin install http://svn.globalize-rails.org/svn/globalize/globalize/branches/for-1.1/ > cd vendor/plugins/ > mv for-1.1/ globalize > rake globalize:setup Up to that poiint everything seems fine. Globalize_countries / _languages / _translations have been created and populated. But when I run > rake test_plugins I get this [...] /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/mysql_adapter.rb:331:in `real_connect': Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (Mysql::Error) [...] Am I on the right track or did I do something wrong? Am I using the correct URL? Do I have to "mv for-1.1/ globalize"? Did anyone manage to set up Globalize with Rails 1.1 (and MySQL)? TIA! - Bernd -- Posted via http://www.ruby-forum.com/. From joshmh at gmail.com Tue May 16 15:08:14 2006 From: joshmh at gmail.com (Joshua Harvey) Date: Tue, 16 May 2006 21:08:14 +0200 Subject: [Rails I18n] Globalize for Rails 1.1 setup (MySQL) In-Reply-To: <56f2948569a25cd2e57c771e7684d7b5@ruby-forum.com> References: <56f2948569a25cd2e57c771e7684d7b5@ruby-forum.com> Message-ID: <3527dd260605161208i157e6ef1med82e32137c6c6f4@mail.gmail.com> Are you sure that mysql socket exists? It's also a good idea to renamefor-1.1 to globalize, as you mentioned, but I don't think that'scausing the problem. Josh On 5/16/06, Martin Bernd Schmeil wrote:> Before I check if I can use Globalize with Oracle I'm trying a test on> MySQL first. I'm using Rails 1.1.2. with Ruby 1.8.2 (Linux).>> > ruby script/plugin install http://svn.globalize-rails.org/svn/globalize/globalize/branches/for-1.1/> > cd vendor/plugins/> > mv for-1.1/ globalize> > rake globalize:setup>> Up to that poiint everything seems fine. Globalize_countries /> _languages / _translations have been created and populated.>> But when I run>> > rake test_plugins>> I get this>> [...]> /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/mysql_adapter.rb:331:in> `real_connect': Can't connect to local MySQL server through socket> '/var/lib/mysql/mysql.sock' (2) (Mysql::Error)> [...]>> Am I on the right track or did I do something wrong?> Am I using the correct URL?> Do I have to "mv for-1.1/ globalize"?> Did anyone manage to set up Globalize with Rails 1.1 (and MySQL)?>> TIA! - Bernd>>> --> Posted via http://www.ruby-forum.com/.> _______________________________________________> Railsi18n-discussion mailing list> Railsi18n-discussion at rubyforge.org> http://rubyforge.org/mailman/listinfo/railsi18n-discussion> From bschmeil at autoscout24.com Thu May 18 04:49:21 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Thu, 18 May 2006 10:49:21 +0200 Subject: [Rails I18n] Multilingual = Globalize ? Message-ID: <2cee7b2cf9ad1794dc8bcb7f97d1a9ff@ruby-forum.com> Please help me to clean up the information in http://wiki.rubyonrails.com/rails/pages/InternationalizationComparison and answer the following questions: Is Multilingual a (depricated) pre-version of Globalize? If not, is it dead? If one of the above is true I'd like to remove Multilingual from the feature comparision table. Thanks! - Bernd -- Posted via http://www.ruby-forum.com/. From joshmh at gmail.com Thu May 18 07:04:06 2006 From: joshmh at gmail.com (Joshua Harvey) Date: Thu, 18 May 2006 13:04:06 +0200 Subject: [Rails I18n] Multilingual = Globalize ? In-Reply-To: <2cee7b2cf9ad1794dc8bcb7f97d1a9ff@ruby-forum.com> References: <2cee7b2cf9ad1794dc8bcb7f97d1a9ff@ruby-forum.com> Message-ID: <3527dd260605180404v71c1e46ei294d939fe9f8c474@mail.gmail.com> Multilingual is a project by Per Wigren that does not seem to havebeen in active development for some time. Globalize took many ideasfrom Multilingual and was at one early stage called "Multilingual",but the two projects have little in common now. Since Multilingual does not seem to be in active development, I thinkyou can remove it from the table, unless anybody knows differently.Keep up the great work! Joshhttp://shnoo.gr On 5/18/06, Martin Bernd Schmeil wrote:> Please help me to clean up the information in> http://wiki.rubyonrails.com/rails/pages/InternationalizationComparison> and answer the following questions:>> Is Multilingual a (depricated) pre-version of Globalize?>> If not, is it dead?>> If one of the above is true I'd like to remove Multilingual from the> feature comparision table.>> Thanks! - Bernd>> --> Posted via http://www.ruby-forum.com/.> _______________________________________________> Railsi18n-discussion mailing list> Railsi18n-discussion at rubyforge.org> http://rubyforge.org/mailman/listinfo/railsi18n-discussion> From bschmeil at autoscout24.com Fri May 19 11:15:53 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Fri, 19 May 2006 17:15:53 +0200 Subject: [Rails I18n] Globalize Mailing List Archives? Message-ID: <35d55b1b7bd3ab98d91760f1f130ae7e@ruby-forum.com> Are these available anywhere? I'd link them if they are and you tell me where. Thanks! - Bernd -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Fri May 19 12:23:59 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Fri, 19 May 2006 18:23:59 +0200 Subject: [Rails I18n] Globalize for Rails 1.1 setup (MySQL) In-Reply-To: <3527dd260605161208i157e6ef1med82e32137c6c6f4@mail.gmail.com> References: <56f2948569a25cd2e57c771e7684d7b5@ruby-forum.com> <3527dd260605161208i157e6ef1med82e32137c6c6f4@mail.gmail.com> Message-ID: <1f896ab8972c983896823d0775542a1b@ruby-forum.com> I'm currently stuck somewhere else. Using the code from the Rails Recipes book http://media.pragprog.com/titles/fr_rr/Localize.pdf, I'm getting a Globalize::WrongLanguageError. This is the current code: conf/environment.rb: require File.join(File.dirname(__FILE__), 'boot') Rails::Initializer.run do |config| end # $KCODE = 'u' # require 'jcode' include Globalize Locale.set_base_language 'en-US' Locale.set 'en-US' app/models/product.rb: class Product < ActiveRecord::Base translates :name, :description end globalize_controller.rb: def init_data logger.debug("INIT DATA!!!") Locale.set 'en-US' prod = Product.create(:name => "Yemenese Coffee" , :description => "Coffee from the South of Yemen" ) Locale.set 'de-DE' prod.name = "S?djemenitischer Kaffee" prod.description = "Kaffee aus S?djemen" prod.save end The Locale.set 'de-DE' causes the trouble (I tried other locales as well). BTW - the rfc_3066 columns in globalize_languages are all NULL. Thanks for any help! - Bernd -- Posted via http://www.ruby-forum.com/. From joshmh at gmail.com Fri May 19 13:29:10 2006 From: joshmh at gmail.com (Joshua Harvey) Date: Fri, 19 May 2006 19:29:10 +0200 Subject: [Rails I18n] Globalize for Rails 1.1 setup (MySQL) In-Reply-To: <1f896ab8972c983896823d0775542a1b@ruby-forum.com> References: <56f2948569a25cd2e57c771e7684d7b5@ruby-forum.com> <3527dd260605161208i157e6ef1med82e32137c6c6f4@mail.gmail.com> <1f896ab8972c983896823d0775542a1b@ruby-forum.com> Message-ID: <3527dd260605191029l3ad2b0d6tfe47f384a429f010@mail.gmail.com> It's weird that that made it into the book, it shouldn't work. Locale.set 'en-US' prod = Product.create(:name => "Yemenese Coffee" , :description => "Coffee from the South of Yemen" ) Locale.set 'de-DE' prod.name = "S?djemenitischer Kaffee" prod.description = "Kaffee aus S?djemen" prod.save should be: Locale.set 'en-US' prod = Product.create(:name => "Yemenese Coffee" , :description => "Coffee from the South of Yemen" ) Locale.set 'de-DE' prod.reload # You need this prod.name = "S?djemenitischer Kaffee" prod.description = "Kaffee aus S?djemen" prod.save The reason you need the reload is that Globalize only loads thetranslation of the current language, so it doesn't have the Germantranslation in this case. In a future version we might want toautomatically reload the translated object instead of throwing theexception. The rfc_3066 column is meant primarily for user-defined dialects,although there are some common ones that should probably be there,like pt-BR. -- Josh On 5/19/06, Martin Bernd Schmeil wrote:> I'm currently stuck somewhere else. Using the code from the Rails> Recipes book http://media.pragprog.com/titles/fr_rr/Localize.pdf, I'm> getting a>> Globalize::WrongLanguageError.>>> This is the current code:>>> conf/environment.rb:>> require File.join(File.dirname(__FILE__), 'boot')>> Rails::Initializer.run do |config|> end>> # $KCODE = 'u'> # require 'jcode'>> include Globalize> Locale.set_base_language 'en-US'> Locale.set 'en-US'>>> app/models/product.rb:>> class Product < ActiveRecord::Base> translates :name, :description> end>>> globalize_controller.rb:>> def init_data> logger.debug("INIT DATA!!!")> Locale.set 'en-US'> prod = Product.create(:name => "Yemenese Coffee" ,> :description => "Coffee from the South of Yemen"> )> Locale.set 'de-DE'> prod.name = "S?djemenitischer Kaffee"> prod.description = "Kaffee aus S?djemen"> prod.save> end>>> The Locale.set 'de-DE' causes the trouble (I tried other locales as> well).>> BTW - the rfc_3066 columns in globalize_languages are all NULL.>> Thanks for any help! - Bernd>> --> Posted via http://www.ruby-forum.com/.> _______________________________________________> Railsi18n-discussion mailing list> Railsi18n-discussion at rubyforge.org> http://rubyforge.org/mailman/listinfo/railsi18n-discussion From bschmeil at autoscout24.com Fri May 19 23:58:59 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Sat, 20 May 2006 05:58:59 +0200 Subject: [Rails I18n] Globalize for Rails 1.1 setup (MySQL) In-Reply-To: <3527dd260605191029l3ad2b0d6tfe47f384a429f010@mail.gmail.com> References: <56f2948569a25cd2e57c771e7684d7b5@ruby-forum.com> <3527dd260605161208i157e6ef1med82e32137c6c6f4@mail.gmail.com> <1f896ab8972c983896823d0775542a1b@ruby-forum.com> <3527dd260605191029l3ad2b0d6tfe47f384a429f010@mail.gmail.com> Message-ID: <612a3e9a08f31f5f6ba1178ca04b0bf1@ruby-forum.com> Joshua Harvey wrote: > Locale.set 'en-US' > prod = Product.create(:name => "Yemenese Coffee", > :description => "Coffee from the South of Yemen") > Locale.set 'de-DE' > prod.reload # You need this > prod.name = "S?djemenitischer Kaffee" > prod.description = "Kaffee aus S?djemen" > prod.save > > The reason you need the reload is that Globalize only loads > the translation of the current language, so it doesn't have the > German translation in this case. In a future version we might want > to automatically reload the translated object instead of throwing > theexception. > The rfc_3066 column is meant primarily for user-defined > dialects, although there are some common ones that should probably be > there,like pt-BR. > -- Josh Hi Josh, thanks a lot! I'll check again. This recipe if from the website and might have been fixed for the book already (or it was me who skipped the reload). I'll contact the author about this. -- Posted via http://www.ruby-forum.com/. From bschmeil at autoscout24.com Fri May 26 05:02:01 2006 From: bschmeil at autoscout24.com (Martin Bernd Schmeil) Date: Fri, 26 May 2006 11:02:01 +0200 Subject: [Rails I18n] Globalize Mailing List Archives? In-Reply-To: <35d55b1b7bd3ab98d91760f1f130ae7e@ruby-forum.com> References: <35d55b1b7bd3ab98d91760f1f130ae7e@ruby-forum.com> Message-ID: <6368fd2f122df99c51e5a1230a4f21e7@ruby-forum.com> Since my (and others) questions about a globalize mailing list ARCHIVE are still unanswered and I still did not not find one: May I request to subscribe this railsi18n list to the globalize list? This way we would have an archive (actually several archives) and would have an easier access to the globalize mailing list. -- Posted via http://www.ruby-forum.com/. From weibel at gmail.com Fri May 26 07:38:08 2006 From: weibel at gmail.com (Kasper Weibel) Date: Fri, 26 May 2006 13:38:08 +0200 Subject: [Rails I18n] Globalize Mailing List Archives? In-Reply-To: <6368fd2f122df99c51e5a1230a4f21e7@ruby-forum.com> References: <35d55b1b7bd3ab98d91760f1f130ae7e@ruby-forum.com> <6368fd2f122df99c51e5a1230a4f21e7@ruby-forum.com> Message-ID: <3e41f3d6cec9ec07d8da408cd6fe60a7@ruby-forum.com> http://rubyforge.org/pipermail/railsi18n-discussion/ Martin Bernd Schmeil wrote: > Since my (and others) questions about a globalize mailing list ARCHIVE > are still unanswered and I still did not not find one: May I request to > subscribe this railsi18n list to the globalize list? > > This way we would have an archive (actually several archives) and would > have an easier access to the globalize mailing list. -- Posted via http://www.ruby-forum.com/. From japgolly at gmail.com Sun May 28 01:36:31 2006 From: japgolly at gmail.com (David Barri) Date: Sun, 28 May 2006 15:36:31 +1000 Subject: [Rails I18n] GLoc Localization Library v1.1 Released Message-ID: For those interested, I have released v1.1 of GLoc today. Head on over to http://rubyforge.org/projects/gloc/ to download it, or do an 'svn update' if you're using trunk. Here's a list of what's new: * The charset for each and/or all languages can now be easily configured. * Added a ActionController filter that auto-detects the client language. * The rake task "sort" now merges lines that match 100%, and warns if duplicate keys are found. * Rule support. Create flexible rules to handle issues such as pluralization. * Massive speed and stability improvements to development mode. * Added Russian strings. (Thanks to Evgeny Lineytsev) * Complete RDoc documentation. * Improved helpers. * GLoc now configurable via get_config and set_config * Added an option to tell GLoc to output various verbose information. * More useful functions such as set_language_if_valid, similar_language * GLoc's entire internal state can now be backed up and restored. Enjoy :-) Golly From g0nzo at o2.pl Mon May 29 10:59:29 2006 From: g0nzo at o2.pl (szymek) Date: Mon, 29 May 2006 16:59:29 +0200 Subject: [Rails I18n] Problem with globalize Message-ID: <0ea02ce7f24b7c274acaf2ace5087a5c@ruby-forum.com> Hi! I've downloaded globalize (Revision 196: /globalize/branches/for-1.1), run rake globalize:setup, which created new tables, set Locale.set_base_language 'pl-PL' in enviroment.rb, but when i start the server, i get this error: C:/.../active_support/dependencies.rb:123:in `const_missing': uninitialized constant Locale (NameError) When i try to run rake test:plugins i get the same error. Why is Locale not initialized? Do i have to do something more to initialize this plugin? -- Posted via http://www.ruby-forum.com/. From andre at boaideia.inf.br Mon May 29 11:43:43 2006 From: andre at boaideia.inf.br (=?ISO-8859-1?Q?Andr=E9_Camargo?=) Date: Mon, 29 May 2006 12:43:43 -0300 Subject: [Rails I18n] Problem with globalize In-Reply-To: <0ea02ce7f24b7c274acaf2ace5087a5c@ruby-forum.com> References: <0ea02ce7f24b7c274acaf2ace5087a5c@ruby-forum.com> Message-ID: <884a25770605290843j766c014eo16e8297a2be93c84@mail.gmail.com> hello! put: include Globalize into config/environment.rb I think better you set Locale.set_base_language 'en-US' in your environment.rb and Locale.set 'pl-PL' on a controller filter. good luck :-) 2006/5/29, szymek : > Hi! > > I've downloaded globalize (Revision 196: /globalize/branches/for-1.1), > run rake globalize:setup, which created new tables, set > Locale.set_base_language 'pl-PL' in enviroment.rb, but when i start the > server, i get this error: > C:/.../active_support/dependencies.rb:123:in `const_missing': > uninitialized constant Locale (NameError) > > When i try to run rake test:plugins i get the same error. Why is Locale > not initialized? Do i have to do something more to initialize this > plugin? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Railsi18n-discussion mailing list > Railsi18n-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/railsi18n-discussion > -- andr? ribeiro camargo propriet?rio boa id?ia software livre :: boaideia.inf.br --- SOFTWARE LIVRE socialmente justo econ?micamente vi?vel tecnologicamente sustent?vel