O'Reilly logo

Crafting Rails 4 Applications, 2nd Edition by José Valim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8Translating Applications Using Key-Value Back Ends

  • The I18n framework

  • The Sinatra web framework

  • The Rails router

  • Devise (for authentication) and Capybara (for integration testing) gems

The internationalization framework (I18n) added in Rails 2.2 played a key role in increasing Rails adoption around the world. Although we can easily make an application available in different languages, the biggest issue is maintaining this translation data. Some companies have a team of translators available, while others choose a collaborative approach and allow their own users to translate the web app. In both cases, it is common to develop a web interface to aid with the translation process.

By default I18n stores translation data in YAML files, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required