francesc / rails-translate-routes

MIT License
147 stars 50 forks source link

Having routes.yml in config/locales/ potentially interferes with other translations/dictionaries #22

Closed GSI closed 12 years ago

GSI commented 12 years ago

Consider this contact.de.yml (Github formatting?):

de: contact: form: h2: Schreib uns!

... and these lines in config/locales/routes.yml (Github formatting?):

de: contact: kontakt

Result: translation missing upon trying to get de.contact.form.h2, because de.confact now is the final definition in the chain.

I have prepared a PR with all paths changed to config/routes.yml

francesc commented 12 years ago

Will make a new release in a few hours to avoid the collision bug with another solution, I want translations to stay in /locales/ ;)

GSI commented 12 years ago

Good approach.