Closed pshemek closed 12 years ago
Hey,
New version make some changes to routes.yml, now translations have to be scoped in order to avoid collisions with other translations from the app.
I updated the readme:
Important change from version 0.0.5 (Feb 2012) to 0.1.0 (June 2012): if you’re updating from an earlier version take into account that now translations defined in routes.yml are namespaced to avoid conflicts with other translations from app (thanks to cawel for the patch). To upgrade you just have to add the namespace ‘routes’ to your routes.yml (see example in the below docs).
So your routes.yml should be now:
pl:
routes:
store: sklep
books: ksiazki
new: dodaj
edit: edytuj
Sorry for the inconvenience.
It works, thank you.
In my application (Rails 3.2.6, i18n 0.6.0):
config/routes.rb:
config/routes.yml:
The controller is namespaced:
rake routes when on 0.0.5:
rake routes when on 0.1.1:
Am I missing something in configuration or there is another reason?