

Active Record validation messages, time and date formats - has been internationalized. making it easy to customize and extend everything for other languagesĪs part of this solution, every static string in the Rails framework - e.g.providing support for English and similar languages out of the box.For that reason the Rails I18n API focuses on: in pluralization rules) that it is hard to provide tools for solving all problems at once. Natural languages differ in so many ways (e.g. Internationalization is a complex problem. See the rails-i18n gem for more information. You may, also use various gems available to add additional functionality or features. The Ruby I18n framework provides you with all necessary means for internationalization/localization of your Rails application. Overview of Other Built-In Methods that Provide I18n Support.Translations for Action Mailer E-Mail Subjects.Providing Translations for Internationalized Strings.Setup the Rails Application for Internationalization.The Overall Architecture of the Library.Some other tools to go further with the translation process of your application.How to use I18n to translate Active Record errors or Action Mailer E-mail subjects.How to correctly use I18n into a RESTful application in various ways.This guide will walk you through the I18n API and contains a tutorial on how to internationalize a Rails application from the start. Store the resulting dictionaries somewhere.flash messages, static text in your views, etc. Abstract strings in your application into keyed dictionaries - e.g.date and time formats, month names, Active Record model names, etc. Replace or supplement Rails' default locale - e.g.In the process of localizing your application you'll probably want to do the following three things: Tell Rails how to set, preserve, and switch locales.Tell Rails where to find locale dictionaries.So, in the process of internationalizing your Rails application you have to: The process of "localization" means to provide translations and localized formats for these bits.

The process of "internationalization" usually means to abstract all strings and other locale specific bits (such as date or currency formats) out of 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.
