From ttopper at gmail.com Tue Aug 12 17:23:25 2008 From: ttopper at gmail.com (Anthony Topper) Date: Tue, 12 Aug 2008 23:23:25 +0200 Subject: [Rails I18n] How to capitalize UTF8 string without downcasing In-Reply-To: References: Message-ID: <47c9f4bdbfa6f2b9ae8dcb109df5af61@ruby-forum.com> I am having the same problem. What's the best solution sans-migrating to a new version of Ruby? -- Posted via http://www.ruby-forum.com/. From jmfaber at faberix.com Tue Aug 12 17:34:39 2008 From: jmfaber at faberix.com (Jan Faber) Date: Tue, 12 Aug 2008 23:34:39 +0200 Subject: [Rails I18n] How to capitalize UTF8 string without downcasing In-Reply-To: <47c9f4bdbfa6f2b9ae8dcb109df5af61@ruby-forum.com> References: <47c9f4bdbfa6f2b9ae8dcb109df5af61@ruby-forum.com> Message-ID: <447d686e9538d4df3d49b9eb2c7066a8@ruby-forum.com> I ended up doing it like this: Class ::String def firstcap self.gsub(/^(\w)/) { $1.chars.capitalize } # /^([a-z])/ end end -- Posted via http://www.ruby-forum.com/. From ocen at mail.com Tue Aug 26 06:34:14 2008 From: ocen at mail.com (Nick Leichty) Date: Tue, 26 Aug 2008 12:34:14 +0200 Subject: [Rails I18n] Postgresql search Message-ID: What do you think is the best plugin to make a heavily-trafficked postgre database searchable? -- Posted via http://www.ruby-forum.com/. From edgar.js at gmail.com Fri Aug 29 21:12:39 2008 From: edgar.js at gmail.com (Edgar J. Suarez) Date: Sat, 30 Aug 2008 03:12:39 +0200 Subject: [Rails I18n] About I18n performance in rails 2.2 Message-ID: <9f3a719501db5d91b49eea09d1929d39@ruby-forum.com> Hello, I'm trying the new I18n feature that will be included in Rails 2.2 But I have a doubt running in my head: What's faster(better, more performance)?: 1. Put a I18n.load_translations in an initializer that loads all available locales when the server starts. 2. Put a I18n.load_translations in the ApplicationController that loads only the locale proper to the current request. I hope I was clear.. :S Regards, and thanks in advance. -- Posted via http://www.ruby-forum.com/.