Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I18n in the view_form generator #24

Open
fuse opened this issue Feb 24, 2011 · 0 comments
Open

I18n in the view_form generator #24

fuse opened this issue Feb 24, 2011 · 0 comments

Comments

@fuse
Copy link

fuse commented Feb 24, 2011

I don't understand why you specify I18n in the view_form generator.

Rails can handle this. It causes some problem for me, because it doesn't use the standard api in rails 3, ie. human_attribute_name.

In my case I have a model inside a module, so the code is looking for module/model in my yml file when rails is looking for module.model. I can override the translation module/model but I will translate my attribute twice, which is not DRY.

It can even look into views.labels.model.attribute, so I don't think you need to specify i18n manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant