aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorsukolsak <sukolsak@Sukolsaks-MacBook-Air.local>2014-03-12 14:08:57 -0700
committersukolsak <sukolsak@Sukolsaks-MacBook-Air.local>2014-03-12 15:03:04 -0700
commit69ba49dd85929dc3672bc839b647dd0a96886470 (patch)
tree93bebb4ff68ded9881ad7fb3a68607445a25f348 /guides
parent28d05f0a80e640cc66a9cf77dcc44a673e85d4eb (diff)
downloadrails-69ba49dd85929dc3672bc839b647dd0a96886470.tar.gz
rails-69ba49dd85929dc3672bc839b647dd0a96886470.tar.bz2
rails-69ba49dd85929dc3672bc839b647dd0a96886470.zip
Fix a grammatical error in the i18n guide [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/i18n.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/i18n.md b/guides/source/i18n.md
index d72717fa3b..bef738b75b 100644
--- a/guides/source/i18n.md
+++ b/guides/source/i18n.md
@@ -137,7 +137,7 @@ If you want to translate your Rails application to a **single language other tha
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>, 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.
+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_action` in the `ApplicationController` like this: