Approximity blog home
1 of 1 article InfoSyndicate: full/short

Multilingual applications with RoR   12 Feb 06
[print link all ]
Globalize is a Ruby on Rails plugin designed to support multilingual applications. It’s under the MIT License, same as Ruby on Rails.

Globalize implements three basic types of translation:

  • Dates, currencies, etc: language dependant, but also (often) country/locale dependant. This feature provides convenient methods for relevant data types.
  • Content in the database, for specific fields in specific tables: once the translates method is added to the relevant model, the fields indicated with that method call gain the ability to have translated content sitting in the database. An operator (possibly the developer) will need to add these translated texts.
  • Arbitrary strings: any string that you would like, with added flexiblity for including parameters (for example: one in the singular form of a phrase and an actual number for the plural form)

Using these three mechanisms, all user-facing content ought to be translatable.

 

Powered by Rublog