From 66aa18e49776bcad18c4ba25556b98d13c8e43e1 Mon Sep 17 00:00:00 2001 From: Jim Benton Date: Tue, 11 Sep 2012 13:29:56 -0500 Subject: [PATCH] Mention how to modify locale paths in the README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index f5bfa42..9a6ef1e 100644 --- a/README.md +++ b/README.md @@ -50,3 +50,13 @@ carmen-rails [have been thoroughly TomDoc'ed](https://github.com/jim/carmen-rail There is a [live demo app](http://carmen-rails-demo.herokuapp.com) that shows carmen-rails in action, and includes a [step-by-step setup guide](https://github.com/jim/carmen-demo-app#readme). + +## Configuration + +Using this library will automatically set Carmen to use [Rails' built-in I18n functionality](http://guides.rubyonrails.org/i18n.html). This means that changing +some configuration should be done through Rails and not Carmen. For example, adding paths for additional locale files +should be done inside `config/application.rb`: + +``` ruby +config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] +``` \ No newline at end of file