diff options
author | Karel Minarik <karmi@karmi.cz> | 2009-01-22 11:47:06 +0100 |
---|---|---|
committer | Karel Minarik <karmi@karmi.cz> | 2009-01-22 11:47:06 +0100 |
commit | 0eccdd9fb6a0e4df2904b28906fd5e7598266aa9 (patch) | |
tree | 60e570e9fce494b646d19ec149d1e0df61e9f1d3 /railties/doc/guides/source/i18n.txt | |
parent | 74fd2d34f2aeb45063545fcfff9675e2dd866b5c (diff) | |
download | rails-0eccdd9fb6a0e4df2904b28906fd5e7598266aa9.tar.gz rails-0eccdd9fb6a0e4df2904b28906fd5e7598266aa9.tar.bz2 rails-0eccdd9fb6a0e4df2904b28906fd5e7598266aa9.zip |
Extended and clarified intro section of i18n guide.
Diffstat (limited to 'railties/doc/guides/source/i18n.txt')
-rw-r--r-- | railties/doc/guides/source/i18n.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/railties/doc/guides/source/i18n.txt b/railties/doc/guides/source/i18n.txt index 2638807761..415de9bdec 100644 --- a/railties/doc/guides/source/i18n.txt +++ b/railties/doc/guides/source/i18n.txt @@ -1,9 +1,16 @@ The Rails Internationalization (I18n) API ========================================= -The Ruby I18n (shorthand for _internationalization_) gem which is shipped with Ruby on Rails (starting from Rails 2.2) provides an easy-to-use and extensible framework for translating your application to a single custom language other than English or providing multi-language support in your application. +The Ruby I18n (shorthand for _internationalization_) gem which is shipped with Ruby on Rails (starting from Rails 2.2) provides an easy-to-use and extensible framework for *translating your application to a single custom language* other than English or for *providing multi-language support* in your application. -NOTE: The Ruby I18n framework provides you with all neccessary means for internationalization/localization of your Rails application. You may, however, use any of various plugins and extensions available. See Rails http://rails-i18n.org/wiki[I18n Wiki] for more information. +In the process of _localizing_ your application you'll probably want to do following two things: + +* Replace or supplement Rail's default locale -- eg. date and time formats, month names, ActiveRecord model names, etc +* Abstract texts in your application into keyed dictionaries -- eg. flash messages, static texts in your views, etc + +This guide will walk you through the I18n API and contains a tutorial how to internationalize a Rails application from the start. + +NOTE: The Ruby I18n framework provides you with all neccessary means for internationalization/localization of your Rails application. You may, however, use any of various plugins and extensions available, which add additional functionality or features. See Rails http://rails-i18n.org/wiki[I18n Wiki] for more information. == How I18n in Ruby on Rails works |