We need to make a Ruby on Rails application multilingual.
In this project, we'll add gettext wrappings to all the views and helpers (we'll be handling the controllers ourselves).
The application includes about 350 views (including partials) and 60 helpers.
## Deliverables
For multilingual support we use Ruby gettext. For example, here are a few pieces of code that use it:
sample: _('Text resource translation projects')
sample: N_('This is a constant)
You will need to turn text that is inline with the HTML to a Rails function. For instance:
Original: <h2>Title</h2>
Multilingual ready: <h2><%= _('Title') %></h2>
Some code includes arguments. For that you will need to use string placeholders. For example:
Original: <p>There are <%= @[login to view URL] %> apples.</p>
Multilingual ready: <p><%= _('There are %d apples')%@[login to view URL] %></p>
Due to the nature of this work, you will not be able to test things yourself. You will need to work closely with us and give frequent updates so that we can test your changes in the actual code.