Allow rails > 3.2
Make the translations.js file depend on changes in the locales folder

Automatically re-generate the translations when the locales are edited.
use Rails.root.join instead of String interpolation