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, ...

Get Crafting Rails 4 Applications, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.