From jd.ri18n at kurutta.net Tue May 1 05:14:00 2007 From: jd.ri18n at kurutta.net (Jun-Dai Bates-Kobashigawa) Date: Tue, 1 May 2007 18:14:00 +0900 Subject: [Rails I18n] =?windows-1252?q?weird_characters=2C_like_=E2=80_=93?= =?windows-1252?q?=2C_displaying?= In-Reply-To: <1c8e891b29202b5b19c43715c4716dd2@ruby-forum.com> References: <6b9e1eb20704300031r696873eat4e40cf52615c1872@mail.gmail.com> <1c8e891b29202b5b19c43715c4716dd2@ruby-forum.com> Message-ID: <12ae855b0705010214p77121d73qed5979b5f07215b8@mail.gmail.com> You should also make sure that the browser is submitting the information as UTF8. If I recall, it's sufficient to declare the page with the form in it as utf8, but you might want to double-check that. Search and replace is going to be tough unless there's an existing script around for doing that. One thing you could do is try writing a script in Java (or Ruby) that reads a known bad row from the database and converts it various ways and prints it out until you know exactly what conversion you're going to need. Programmatically detecting the messed-up strings seems like it would be more difficult, though, unless there are some clear constraints on what those strings should contain (i.e., something you can run a regex on), which might be the case if it's, say, a validated form field. Jun-Dai On 4/30/07, Ben Weiner wrote: > > > Sure your browser is using the right encoding? If not, try setting the > > http Content-Type header. More reliable for me than a meta tag. > > Yes, the page seems to be set up fine. I've also tried installing the > BrowserFilters plugin, but that did not work either. > > I have a feeling it may be the case that when these characters were > originally put into the database, they were somehow entered incorrectly. > I seem to be able to enter the correct characters--i.e., curly > quotes--myself and they save and display fine. Is there any way to do > some sort of search and replace on these guys? > > Thanks for the help. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Railsi18n-discussion mailing list > Railsi18n-discussion at rubyforge.org > http://rubyforge.org/mailman/listinfo/railsi18n-discussion > From ompena at gmail.com Wed May 2 00:11:47 2007 From: ompena at gmail.com (Guest) Date: Wed, 2 May 2007 06:11:47 +0200 Subject: [Rails I18n] Gloc problem In-Reply-To: References: Message-ID: Carol wrote: > Hi! > I am new with ruby and with rails. > I have installed Gloc plugin from the svn but when I try to run webrick > server I get this error: > > C:/Programmi/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:266:in > `load_missing_constant': uninitialized constant GLoc (NameError) > from > C:/Programmi/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in > `const_missing' > from > C:/Programmi/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:464:in > `const_missing' > from ./script/../config/../config/environment.rb:16 > from > C:/Programmi/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:41:in > `run' > from ./script/../config/../config/environment.rb:13 > from > C:/Programmi/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > C:/Programmi/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from > C:/Programmi/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in > `require' > ... 8 levels... > from > C:/Programmi/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 > from > C:/Programmi/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > C:/Programmi/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from script/server:3 > > Can someone help me? > Thanks! Don't put GLoc configuration inside Rails::Initializer.run do |config| block Sorry for my english Martin -- Posted via http://www.ruby-forum.com/. From admin at immofrance.com Tue May 8 12:43:59 2007 From: admin at immofrance.com (Benoit) Date: Tue, 8 May 2007 18:43:59 +0200 Subject: [Rails I18n] Select 1 I18N solution to keep RoR full stack Message-ID: <98d3019f52b84d299d0e63e83eddf6cf@ruby-forum.com> http://wiki.rubyonrails.org/rails/pages/InternationalizationComparison is exactly what RoR is not supposed to be : something where we have to select a solution out of 5 differents packages that are mostly doing the same thing. I am new to RoR precisely because I am tired of the Perl "There is more than one way to do it" where you have to study 8 different API each time you want to do something new. Will one I18N package be integrated into RoR, and when ? Beno?t -- Posted via http://www.ruby-forum.com/. From jarkko at jlaine.net Tue May 8 13:28:22 2007 From: jarkko at jlaine.net (Jarkko Laine) Date: Tue, 8 May 2007 20:28:22 +0300 Subject: [Rails I18n] Select 1 I18N solution to keep RoR full stack In-Reply-To: <98d3019f52b84d299d0e63e83eddf6cf@ruby-forum.com> References: <98d3019f52b84d299d0e63e83eddf6cf@ruby-forum.com> Message-ID: <93AD8E34-CB16-44CB-B0CC-18BF375932B1@jlaine.net> Benoit, On 8.5.2007, at 19.43, Benoit wrote: > http://wiki.rubyonrails.org/rails/pages/InternationalizationComparison > is exactly what RoR is not supposed to be : something where we have to > select a solution out of 5 differents packages that are mostly > doing the > same thing. > > I am new to RoR precisely because I am tired of the Perl "There is > more > than one way to do it" where you have to study 8 different API each > time > you want to do something new. > > Will one I18N package be integrated into RoR, and when ? I don't think any package will be integrated into RoR any time soon. Why? Because I18N and L10N mean totally different things to different people. Some people need to create a web app that works with many different languages. Some just need a solution that works with their native language other than English. Still l others need support for time zones and currencies. I don't think anything as vague as an i18n library should be integrated into core Rails and I'm pretty sure the core people are even stronger behind that opinion than me. Don't let the "full stack" term trick you into thinking that Rails is a turn-key solution. It aims to be exactly the opposite. It doesn't include user management or authentication ? for exactly the same reasons ? either, even though they are a much tighter subject then internationalization. That said, I don't think there are really that many options for specific needs, even though the page you mention might not convey that. The most popular options have mostly different targets (even though they might overlap somewhat), and it pays to read their home pages for closer info (there's not that many of them, either). And there's always this list where you can come and ask for suggestions for your exact needs. Cheers, //jarkko -- Jarkko Laine http://jlaine.net http://dotherightthing.com http://www.railsecommerce.com http://odesign.fi -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2417 bytes Desc: not available Url : http://rubyforge.org/pipermail/railsi18n-discussion/attachments/20070508/18ab5f6f/attachment.bin From vicksfalcons05 at aol.com Sun May 13 02:01:11 2007 From: vicksfalcons05 at aol.com (Ryan Moyen) Date: Sun, 13 May 2007 08:01:11 +0200 Subject: [Rails I18n] TMW Message-ID: themobworld.com themobworld.com -- Posted via http://www.ruby-forum.com/. From registrera at gmail.com Wed May 23 09:37:20 2007 From: registrera at gmail.com (Reg) Date: Wed, 23 May 2007 15:37:20 +0200 Subject: [Rails I18n] Trouble with Ruby GetText and frozen Rails? Message-ID: <6541533c0705230637x17db3d1y6e4ba660058b47df@mail.gmail.com> I'm having trouble getting GetText to work on my Rails project. My setup: Ruby 1.8.5 (as it is used by my host) gettext 1.9.0 (win32 gem) Rails 1.2.2 (frozen through svn:externals on /vendor) As long as I have Rails frozen I can't require gettext Adding this line to environment.rb and/or application.rb: require 'gettext/rails' causes the built in server to stop after "** Starting Rails with development environment..." If I remove rails from /vendor the server starts just fine. Is this a problem with ruby gettext, or is it just not possible to use installed gems when running frozen rails? Is there anyway to make gettext it reachable for rails in vendor? Is it possible to unpack gettext in vendor and still make it possible to use the windows gem on my developer machine and the native gem on the production machine? Thank you for any advice! /Daniel From tomasz.noworyta at op.pl Mon May 28 11:03:26 2007 From: tomasz.noworyta at op.pl (Tom) Date: Mon, 28 May 2007 17:03:26 +0200 Subject: [Rails I18n] Globalize: not visible changes made to translations Message-ID: <8dda9802ba0259db8a3b1a693de4072d@ruby-forum.com> Hi, I'm using Globalize in my rails app and when I insert the translation for the first time everything is ok, but after that, any changes made to that translation are not visible in my views. They become available when I restart the server. Any ideas how to make the changes visible for views after modification without restarting the WEBrick? Best regards, Tom -- Posted via http://www.ruby-forum.com/.