Permalink
Browse files

Mention how to modify locale paths in the README

  • Loading branch information...
1 parent 4fabbfe commit 66aa18e49776bcad18c4ba25556b98d13c8e43e1 @jim committed Sep 11, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
@@ -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]
+```

0 comments on commit 66aa18e

Please sign in to comment.