Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More RDoc formatting; README_FOR_APP as symlink

  • Loading branch information...
commit 0cad399cd9c86d2f09de217e0e474b3aab9dba6b 1 parent 5c8f29e
@karmi authored
Showing with 4 additions and 42 deletions.
  1. +3 −3 README.rdoc
  2. +0 −39 doc/README_FOR_APP
  3. +1 −0  doc/README_FOR_APP
View
6 README.rdoc
@@ -7,7 +7,7 @@ It shows how you can override Rails default locale/language ('en') in views, in
Tries to set some reasonable pattern to load translation files and set locale
either from request domain (.com, .de, etc) or request params. Do not ever set locale to cookie or session, as it breaks basic assumptions about web. Read this discussion for context: http://groups.google.com/group/rails-i18n/browse_thread/thread/de73dbd1309ae640/
-*Includes translation file* for Czech language so you can easily roll your own Spanish, German, Polish,
+Includes translation file for Czech language so you can easily roll your own Spanish, German, Polish,
etc version just by duplicating the file, renaming it and changing the translation strings.
After server restart you should see your language in language bar at the top of the page.
@@ -17,11 +17,11 @@ After server restart you should see your language in language bar at the top of
* The application <b>requires Rails version 2.2 or later</b>. Either upgrade your Rails gem by running
- $ sudo gem update rails
+ $ sudo gem update rails
* or just download and freeze Rails into <tt>vendor/rails</tt>
- $ rake rails:freeze:edge RELEASE=2.2.2
+ $ rake rails:freeze:edge RELEASE=2.2.2
* Run migrations (to be able to test ActiveRecord message localizations) by <tt>rake db:migrate</tt>
View
39 doc/README_FOR_APP
@@ -1,39 +0,0 @@
-= Demo application for Rails internalization API
-
-Simple & minimal Rails application to test the new Rails internationalization and localization API
-
-It evolved from following excellent review from Trevor Turk, available at
-http://www.almosteffortless.com/2008/07/21/simple-localization-in-rails-22
-
-Tries to set some reasonable pattern to load translation files and set locale
-either from request domain (.com, .de, etc) or request params.
-
-*Includes translation file* for Czech language so you can easily roll your own Spanish, German, Polish,
-etc version just by duplicating the file, renaming it and changing the translation strings.
-After server restart you should see your language in language bar at the top of the page.
-
-== Requirements
-
-You <b>have to to run edge Rails</b> for this app to work. Run this command in the app directory:
-
- rake rails:freeze:edge
-
-== About setting the locale from the request domain
-
-Usually the most sane approach to setting locale/language version of the application is
-from the domain: <tt>application.com</tt> loads English, <tt>application.es</tt> Spanish. This works best
-for content heavy websites and search engines love it.
-
-The <tt>ApplicationController#extract_locale_from_uri</tt> sets locale from the domain.
-To test this, you have to edit <tt>/etc/hosts</tt> by inserting lines like:
-
- 127.0.0.1 application.com
- 127.0.0.1 application.cz
-
-Then just load your application as usual at <tt>http://application.cz:3000</tt> or <tt>http://application.com:3000</tt>
-and you should see the locale being switched
-
-
-== About Rails i18n
-
-See http://www.rails-i18n.org and get in touch at http://groups.google.com/group/rails-i18n
View
1  doc/README_FOR_APP
Please sign in to comment.
Something went wrong with that request. Please try again.