To make babilu compatible with rails 3 I18n interpolation syntax (e.g. ' you have %{amount} unread messages' (rather than the {{amount}} syntax)) I've changed the interpolatePattern in the top of babilu.js to:
var interpolatePattern = /%{([^}]+)}/g;
Maybe the interpolate regexp can be adjusted when generating locales.js based on the existence/value of RAILS_GEM_VERSION ?
To make babilu compatible with rails 3 I18n interpolation syntax (e.g. ' you have %{amount} unread messages' (rather than the {{amount}} syntax)) I've changed the interpolatePattern in the top of babilu.js to: var interpolatePattern = /%{([^}]+)}/g;
Maybe the interpolate regexp can be adjusted when generating locales.js based on the existence/value of RAILS_GEM_VERSION ?