<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Simple Localization in Rails&#160;2.2</title>
	<atom:link href="http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/feed/" rel="self" type="application/rss+xml" />
	<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/</link>
	<description></description>
	<lastBuildDate>Wed, 10 Mar 2010 01:15:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ruby on Rails Internationalization @ Ali SOGUKPINAR</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-68854</link>
		<dc:creator>Ruby on Rails Internationalization @ Ali SOGUKPINAR</dc:creator>
		<pubDate>Thu, 23 Jul 2009 04:14:36 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-68854</guid>
		<description>[...] followed this simple direct to the point tutorial. If you want to dive in to deep you can check the  Rails [...]</description>
		<content:encoded><![CDATA[<p>[...] followed this simple direct to the point tutorial. If you want to dive in to deep you can check the  Rails [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josef</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-68421</link>
		<dc:creator>Josef</dc:creator>
		<pubDate>Sat, 21 Feb 2009 18:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-68421</guid>
		<description>Hi... thanks for the tutorial - this is the degree of simplicity I need to get on board a new thing.

At the same time I agree with John Smith. For all practical purposes, HTTP content negotiation AKA request.accept_language is essential anyways, so it could as well be covered here. Would make a great piece of work even greater ;-)</description>
		<content:encoded><![CDATA[<p>Hi&#8230; thanks for the tutorial &#8211; this is the degree of simplicity I need to get on board a new thing.</p>
<p>At the same time I agree with John Smith. For all practical purposes, HTTP content negotiation AKA request.accept_language is essential anyways, so it could as well be covered here. Would make a great piece of work even greater ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-68232</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Fri, 13 Feb 2009 18:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-68232</guid>
		<description>I&#039;m not sure, Zeba. Try asking around on the Rails mailing list, perhaps?</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure, Zeba. Try asking around on the Rails mailing list, perhaps?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zeba</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-68227</link>
		<dc:creator>Zeba</dc:creator>
		<pubDate>Fri, 13 Feb 2009 07:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-68227</guid>
		<description>hi,
I tried implementing i18n by exactly following your post...but I get the following error:

You have a nil object when you didn&#039;t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.inject
</description>
		<content:encoded><![CDATA[<p>hi,<br />
I tried implementing i18n by exactly following your post&#8230;but I get the following error:</p>
<p>You have a nil object when you didn&#8217;t expect it!<br />
You might have expected an instance of Array.<br />
The error occurred while evaluating nil.inject</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aladdin With A Lamp &#187; ?Ruby on Rails?&#124;????????</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-68215</link>
		<dc:creator>Aladdin With A Lamp &#187; ?Ruby on Rails?&#124;????????</dc:creator>
		<pubDate>Thu, 12 Feb 2009 13:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-68215</guid>
		<description>[...] Rails 2.2 – Simple Localization [...]</description>
		<content:encoded><![CDATA[<p>[...] Rails 2.2 – Simple Localization [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-68181</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Tue, 10 Feb 2009 17:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-68181</guid>
		<description>Nice catch, Fannar. I&#039;ve updated the post.</description>
		<content:encoded><![CDATA[<p>Nice catch, Fannar. I&#8217;ve updated the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fannar</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-68180</link>
		<dc:creator>Fannar</dc:creator>
		<pubDate>Tue, 10 Feb 2009 17:36:53 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-68180</guid>
		<description>In the update clause where it says:

# app/controllers/application.rb
config.i18n.default_locale = :en

Should be

# config/environment.rb
config.i18n.default_locale = :en

That is put it into the environment.rb not the application.rb</description>
		<content:encoded><![CDATA[<p>In the update clause where it says:</p>
<p># app/controllers/application.rb<br />
config.i18n.default_locale = :en</p>
<p>Should be</p>
<p># config/environment.rb<br />
config.i18n.default_locale = :en</p>
<p>That is put it into the environment.rb not the application.rb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ward&#8217;s Words &#187; Blog Archive &#187; Kotoba using ActiveScaffold</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-67321</link>
		<dc:creator>Ward&#8217;s Words &#187; Blog Archive &#187; Kotoba using ActiveScaffold</dc:creator>
		<pubDate>Sun, 11 Jan 2009 09:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-67321</guid>
		<description>[...] localization ideas, but none of them as of yet have yielded much fruit.  The most promising is Rails upcoming support of i8ln.  For now I will continue to focus more on functionality till localization is more readily [...]</description>
		<content:encoded><![CDATA[<p>[...] localization ideas, but none of them as of yet have yielded much fruit.  The most promising is Rails upcoming support of i8ln.  For now I will continue to focus more on functionality till localization is more readily [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Problem installing gem rails 2.2 &#171; Fabiano Soriani&#8217;s Weblog</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-67045</link>
		<dc:creator>Problem installing gem rails 2.2 &#171; Fabiano Soriani&#8217;s Weblog</dc:creator>
		<pubDate>Fri, 12 Dec 2008 00:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-67045</guid>
		<description>[...] How to: http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/ [...]</description>
		<content:encoded><![CDATA[<p>[...] How to: <a href="http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/" rel="nofollow">http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moki Systems Blog &#187; Using Rails&#8217; New I18n Support in Real Life: Part the First</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-67040</link>
		<dc:creator>Moki Systems Blog &#187; Using Rails&#8217; New I18n Support in Real Life: Part the First</dc:creator>
		<pubDate>Thu, 11 Dec 2008 17:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-67040</guid>
		<description>[...] there are plenty of nice introductions and demos to Rails&#8217; slick new I18n features out there but I haven&#8217;t seen [...]</description>
		<content:encoded><![CDATA[<p>[...] there are plenty of nice introductions and demos to Rails&#8217; slick new I18n features out there but I haven&#8217;t seen [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saiu o Rails 2.2 &#124; Ruby Brasil</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66908</link>
		<dc:creator>Saiu o Rails 2.2 &#124; Ruby Brasil</dc:creator>
		<pubDate>Sun, 30 Nov 2008 03:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66908</guid>
		<description>[...] Internacionalização: Solicitação antiga da comunidade, Rails agora oferece ferramentas para internacionalizar sua aplicação. Veja um exemplo neste artigo. [...]</description>
		<content:encoded><![CDATA[<p>[...] Internacionalização: Solicitação antiga da comunidade, Rails agora oferece ferramentas para internacionalizar sua aplicação. Veja um exemplo neste artigo. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rails 2.2 Released - 27 Links and Resources To Get You Going</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66854</link>
		<dc:creator>Rails 2.2 Released - 27 Links and Resources To Get You Going</dc:creator>
		<pubDate>Sat, 22 Nov 2008 05:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66854</guid>
		<description>[...] Language Internationalization - It&#039;s a little old, but Simple Localization in Rails 2.2 gives a very quick, code-driven example of how basic internationalization works in Rails 2.2 (some [...]</description>
		<content:encoded><![CDATA[<p>[...] Language Internationalization &#8211; It&#8217;s a little old, but Simple Localization in Rails 2.2 gives a very quick, code-driven example of how basic internationalization works in Rails 2.2 (some [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bookmarks about Translate</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66672</link>
		<dc:creator>Bookmarks about Translate</dc:creator>
		<pubDate>Mon, 13 Oct 2008 21:30:08 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66672</guid>
		<description>[...] - bookmarked by 5 members originally found by yutzyjbear on 2008-09-21  Simple Localization in Rails 2.2  http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/ - bookmarked by 5 members [...]</description>
		<content:encoded><![CDATA[<p>[...] &#8211; bookmarked by 5 members originally found by yutzyjbear on 2008-09-21  Simple Localization in Rails 2.2  <a href="http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/" rel="nofollow">http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/</a> &#8211; bookmarked by 5 members [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ruby developer</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66670</link>
		<dc:creator>ruby developer</dc:creator>
		<pubDate>Sat, 11 Oct 2008 16:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66670</guid>
		<description>Thanx for news and example. Can I use i18n on my rails 2.1 ??</description>
		<content:encoded><![CDATA[<p>Thanx for news and example. Can I use i18n on my rails 2.1 ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rails2.1.1?????Rails2.2(beta)?????? &#187; RAILS PRESS</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66614</link>
		<dc:creator>Rails2.1.1?????Rails2.2(beta)?????? &#187; RAILS PRESS</dc:creator>
		<pubDate>Sat, 06 Sep 2008 19:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66614</guid>
		<description>[...] ??? Rails-2.1.1??????????? - Hello, world! - s21g Riding Rails: Rails 2.1.1: Lots of bug fixes ???????Ruby on Rails?????????Rails 2.2???????? &#124; ???????? &#124; ????????? Simple Localization in Rails 2.2 - almost effortless [...]</description>
		<content:encoded><![CDATA[<p>[...] ??? Rails-2.1.1??????????? &#8211; Hello, world! &#8211; s21g Riding Rails: Rails 2.1.1: Lots of bug fixes ???????Ruby on Rails?????????Rails 2.2???????? | ???????? | ????????? Simple Localization in Rails 2.2 &#8211; almost effortless [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: funfun</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66607</link>
		<dc:creator>funfun</dc:creator>
		<pubDate>Fri, 22 Aug 2008 17:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66607</guid>
		<description>Thanks for writing</description>
		<content:encoded><![CDATA[<p>Thanks for writing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juho</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66606</link>
		<dc:creator>Juho</dc:creator>
		<pubDate>Tue, 19 Aug 2008 14:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66606</guid>
		<description>Louis, thanks! That solved my problem.</description>
		<content:encoded><![CDATA[<p>Louis, thanks! That solved my problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Louis Simoneau</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66605</link>
		<dc:creator>Louis Simoneau</dc:creator>
		<pubDate>Sun, 17 Aug 2008 15:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66605</guid>
		<description>Juho, I had a similar problem. It seems to be some kind of bug, and I can&#039;t even figure out what it is well enough to file a report. However, if you provide rails with translations of all the activerecord error messages for your target locale, the error goes away.

The list of &#039;railties&#039; available for translation can be found here:

http://rails-i18n.org/wiki/pages/translations-available-in-rails

From there, just make a file with an I18n.store_translations call and all the messages you need to translate, and require it (either with a before_filter or in an initializer).  This seems a little convoluted right now, I think the ideal would be to make a plugin that grabs a YAML translation file and makes the store_translations call based on that.

While the possibilites of the new I18n as far as multilingual applications go are very impressive, I think the first thing we need to do is develop a simple framework for people who just want to localize rails to one non-english language, using the new API.  That would allow us to get all of the &quot;translating rails messages&quot; bit out of the way and allow people to focus on whatever specific translation their app requires.</description>
		<content:encoded><![CDATA[<p>Juho, I had a similar problem. It seems to be some kind of bug, and I can&#8217;t even figure out what it is well enough to file a report. However, if you provide rails with translations of all the activerecord error messages for your target locale, the error goes away.</p>
<p>The list of &#8216;railties&#8217; available for translation can be found here:</p>
<p><a href="http://rails-i18n.org/wiki/pages/translations-available-in-rails" rel="nofollow">http://rails-i18n.org/wiki/pages/translations-available-in-rails</a></p>
<p>From there, just make a file with an I18n.store_translations call and all the messages you need to translate, and require it (either with a before_filter or in an initializer).  This seems a little convoluted right now, I think the ideal would be to make a plugin that grabs a YAML translation file and makes the store_translations call based on that.</p>
<p>While the possibilites of the new I18n as far as multilingual applications go are very impressive, I think the first thing we need to do is develop a simple framework for people who just want to localize rails to one non-english language, using the new API.  That would allow us to get all of the &#8220;translating rails messages&#8221; bit out of the way and allow people to focus on whatever specific translation their app requires.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66603</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Fri, 15 Aug 2008 15:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66603</guid>
		<description>Juho, I&#039;m not sure. Check with the Rails i18n team in their Google Group:

http://groups.google.com/group/rails-i18n</description>
		<content:encoded><![CDATA[<p>Juho, I&#8217;m not sure. Check with the Rails i18n team in their Google Group:</p>
<p><a href="http://groups.google.com/group/rails-i18n" rel="nofollow">http://groups.google.com/group/rails-i18n</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juho</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66601</link>
		<dc:creator>Juho</dc:creator>
		<pubDate>Fri, 15 Aug 2008 08:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66601</guid>
		<description>Hello,

I&#039;m designing a web application that needs to be translated in English and Finnish. I am using the approach presented in this post to do the localization. However, when I try to display form error messages with  I get a &quot;can&#039;t convert Array to String&quot; error if I use any other language than English (default en-US).

I&#039;ve tried to also create fi.rb -files in active_record, active_support and action_view -folders but this seems to not be enough. What should I do?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;m designing a web application that needs to be translated in English and Finnish. I am using the approach presented in this post to do the localization. However, when I try to display form error messages with  I get a &#8220;can&#8217;t convert Array to String&#8221; error if I use any other language than English (default en-US).</p>
<p>I&#8217;ve tried to also create fi.rb -files in active_record, active_support and action_view -folders but this seems to not be enough. What should I do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karel Minarik</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66593</link>
		<dc:creator>Karel Minarik</dc:creator>
		<pubDate>Wed, 13 Aug 2008 00:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66593</guid>
		<description>_@Ryan:_ It&#039;s actually fairly easy to strip the locale loading from request cycle, see here: http://github.com/karmi/rails_i18n_demo_app/tree/master/config/initializers/locales.rb . Rails apparently loads the hash structure (available in `I18n.backend.send(:class_variable_get, :@@translations)` for inspection.)

Then you can just set the locale in the controller filter: http://github.com/karmi/rails_i18n_demo_app/tree/master/app/controllers/application.rb#L13 (and even perform some check like `available_locales.include? user_submitted_locale`

Thanks Trevor for this great write-up!

Karel</description>
		<content:encoded><![CDATA[<p>_@Ryan:_ It&#8217;s actually fairly easy to strip the locale loading from request cycle, see here: <a href="http://github.com/karmi/rails_i18n_demo_app/tree/master/config/initializers/locales.rb" rel="nofollow">http://github.com/karmi/rails_i18n_demo_app/tree/master/config/initializers/locales.rb</a> . Rails apparently loads the hash structure (available in `I18n.backend.send(:class_variable_get, :@@translations)` for inspection.)</p>
<p>Then you can just set the locale in the controller filter: <a href="http://github.com/karmi/rails_i18n_demo_app/tree/master/app/controllers/application.rb#L13" rel="nofollow">http://github.com/karmi/rails_i18n_demo_app/tree/master/app/controllers/application.rb#L13</a> (and even perform some check like `available_locales.include? user_submitted_locale`</p>
<p>Thanks Trevor for this great write-up!</p>
<p>Karel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A Fresh Cup &#187; Blog Archive &#187; Double Shot #258</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66572</link>
		<dc:creator>A Fresh Cup &#187; Blog Archive &#187; Double Shot #258</dc:creator>
		<pubDate>Tue, 29 Jul 2008 10:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66572</guid>
		<description>[...] Simple Localization in Rails 2.2 - A look at the coming feature. (via RubyFlow) [...]</description>
		<content:encoded><![CDATA[<p>[...] Simple Localization in Rails 2.2 &#8211; A look at the coming feature. (via RubyFlow) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacek Becela</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66571</link>
		<dc:creator>Jacek Becela</dc:creator>
		<pubDate>Mon, 28 Jul 2008 23:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66571</guid>
		<description>There is no &quot;t&quot; helper and you have to make your own because the authors wanted to avoid the very fruitless flamewar discussing which one of those one-letter (or two-) method names is better: t() _() or [].</description>
		<content:encoded><![CDATA[<p>There is no &#8220;t&#8221; helper and you have to make your own because the authors wanted to avoid the very fruitless flamewar discussing which one of those one-letter (or two-) method names is better: t() _() or [].</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66570</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Mon, 28 Jul 2008 22:02:53 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66570</guid>
		<description>John, this is just a simple example meant to illustrate the basics. Of course there is plenty of room for improvement. If you&#039;re really interested in localization, you should check out the Rails i18n Google Group: http://groups.google.com/group/rails-i18n</description>
		<content:encoded><![CDATA[<p>John, this is just a simple example meant to illustrate the basics. Of course there is plenty of room for improvement. If you&#8217;re really interested in localization, you should check out the Rails i18n Google Group: <a href="http://groups.google.com/group/rails-i18n" rel="nofollow">http://groups.google.com/group/rails-i18n</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Smith</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66569</link>
		<dc:creator>John Smith</dc:creator>
		<pubDate>Mon, 28 Jul 2008 21:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66569</guid>
		<description>Should set_locale not take request.accept_language into account? There&#039;s no point in serving en-US by default if the user agent specifies that it does not want to see english in the first place.</description>
		<content:encoded><![CDATA[<p>Should set_locale not take request.accept_language into account? There&#8217;s no point in serving en-US by default if the user agent specifies that it does not want to see english in the first place.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zerohalo</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66559</link>
		<dc:creator>zerohalo</dc:creator>
		<pubDate>Thu, 24 Jul 2008 15:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66559</guid>
		<description>Thanks for the writeup. I had read Sven&#039;s post but was unclear about how it was to be used. This helps a lot. 

A possible way to get around the require/params problem: Store the possible language options in an array or hash at startup. Match the user params against the array, if it exists in the array, require. Otherwise, decline.</description>
		<content:encoded><![CDATA[<p>Thanks for the writeup. I had read Sven&#8217;s post but was unclear about how it was to be used. This helps a lot. </p>
<p>A possible way to get around the require/params problem: Store the possible language options in an array or hash at startup. Match the user params against the array, if it exists in the array, require. Otherwise, decline.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luca Guidi</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66557</link>
		<dc:creator>Luca Guidi</dc:creator>
		<pubDate>Wed, 23 Jul 2008 08:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66557</guid>
		<description>Thanks for writing this tutorial: it focused the right points, it was what we need now!</description>
		<content:encoded><![CDATA[<p>Thanks for writing this tutorial: it focused the right points, it was what we need now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Júnior</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66556</link>
		<dc:creator>Carlos Júnior</dc:creator>
		<pubDate>Tue, 22 Jul 2008 18:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66556</guid>
		<description>Wouldn&#039;t be better if the translations were loaded in a initializer, and then selected in the before filter? (We would need a method to know which languages were loaded too).</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t be better if the translations were loaded in a initializer, and then selected in the before filter? (We would need a method to know which languages were loaded too).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur Carlsson</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66554</link>
		<dc:creator>Arthur Carlsson</dc:creator>
		<pubDate>Tue, 22 Jul 2008 07:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66554</guid>
		<description>Loading the translations could be done in an initializer. Then you could have an app/locales directory and in the initialized simply require all the files in that directory. But it would be nice to be able to lazy load the translation files.</description>
		<content:encoded><![CDATA[<p>Loading the translations could be done in an initializer. Then you could have an app/locales directory and in the initialized simply require all the files in that directory. But it would be nice to be able to lazy load the translation files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/comment-page-1/#comment-66553</link>
		<dc:creator>Trevor</dc:creator>
		<pubDate>Tue, 22 Jul 2008 02:46:18 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=682#comment-66553</guid>
		<description>Good point. I&#039;ll add a note in the post to make clear that this is just a proof of concept and shouldn&#039;t actually be used in production. 

I was thinking of using validates_inclusion_of to check that the language chosen was valid, and storing that as an value in the users table (as you would with a time zone).

Allowing a user selected language would mean you&#039;d need to do something like this for each request, though, I believe.  I&#039;m also not sure if the languages should just be put into a single file and loaded all at once. I&#039;m thinking that people won&#039;t change the language much, though, so having separate files probably makes sense. 

Anyway, we&#039;re making progress at least :)</description>
		<content:encoded><![CDATA[<p>Good point. I&#8217;ll add a note in the post to make clear that this is just a proof of concept and shouldn&#8217;t actually be used in production. </p>
<p>I was thinking of using validates_inclusion_of to check that the language chosen was valid, and storing that as an value in the users table (as you would with a time zone).</p>
<p>Allowing a user selected language would mean you&#8217;d need to do something like this for each request, though, I believe.  I&#8217;m also not sure if the languages should just be put into a single file and loaded all at once. I&#8217;m thinking that people won&#8217;t change the language much, though, so having separate files probably makes sense. </p>
<p>Anyway, we&#8217;re making progress at least :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
