aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAyrton De Craene <ayrton.decraene@gmail.com>2012-05-14 13:24:32 +0200
committerAyrton De Craene <ayrton.decraene@gmail.com>2012-05-14 13:24:32 +0200
commitee4e48eab06659b3fea64c70590e8d260a230445 (patch)
tree1252b8b5229df5fe06fa5eea85ebc6fd9d52ab00 /guides
parent8ef67de03409d0d21e42605e063e501d3ee764cf (diff)
downloadrails-ee4e48eab06659b3fea64c70590e8d260a230445.tar.gz
rails-ee4e48eab06659b3fea64c70590e8d260a230445.tar.bz2
rails-ee4e48eab06659b3fea64c70590e8d260a230445.zip
Improved the readability of some sentences [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/i18n.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/i18n.textile b/guides/source/i18n.textile
index 6179694c40..a9da843d04 100644
--- a/guides/source/i18n.textile
+++ b/guides/source/i18n.textile
@@ -127,7 +127,7 @@ If you want to translate your Rails application to a *single language other than
However, you would probably like to *provide support for more locales* in your application. In such case, you need to set and pass the locale between requests.
-WARNING: You may be tempted to store the chosen locale in a _session_ or a <em>cookie</em>. *Do not do so*. The locale should be transparent and a part of the URL. This way you don't break people's basic assumptions about the web itself: if you send a URL of some page to a friend, she should see the same page, same content. A fancy word for this would be that you're being "<em>RESTful</em>":http://en.wikipedia.org/wiki/Representational_State_Transfer. Read more about the RESTful approach in "Stefan Tilkov's articles":http://www.infoq.com/articles/rest-introduction. There may be some exceptions to this rule, which are discussed below.
+WARNING: You may be tempted to store the chosen locale in a _session_ or a <em>cookie</em>, however *do not do this*. The locale should be transparent and a part of the URL. This way you won't break people's basic assumptions about the web itself: if you send a URL to a friend, they should see the same page and content as you. A fancy word for this would be that you're being "<em>RESTful</em>":http://en.wikipedia.org/wiki/Representational_State_Transfer. Read more about the RESTful approach in "Stefan Tilkov's articles":http://www.infoq.com/articles/rest-introduction. Sometimes there are exceptions to this rule and those are discussed below.
The _setting part_ is easy. You can set the locale in a +before_filter+ in the +ApplicationController+ like this: