-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
resource_name
does not use the host app's translation
#820
Comments
As this has to do with memoizing Resource#resource_name (in development?), maybe there is a way to initialize AA after the host app has been fully loaded it's translations. Or maybe we should keep it simple and not memoize the value at all. However, i am wondering if it is such a good idea to use the translation as a resource identifier. This is great for content like labels and headlines, but it leads to problems if the translation is used for routes, controller names and style attributes if you want to customize an admin area used with multiple locales. |
This is related to #799 |
Is your issue solved with |
@pcreux nope. Still looks like on the screenshot above. |
i have a question: how should one write a (failing) spec for this? I should add the translation via the spec/support/rails_template.rb and add a integration spec or cucumber feature, right? |
We had a couple issues with i18n. I think that adding translations via the template, updating a few existing features and adding a new feature if needed would be great! |
on it |
Any thoughts? |
If you put this in config/locales/en.yml (in the test-rails-app that's generated by ./script/local server),
then start the app with ./script/local server
and open http://localhost:3000/admin/categories/5/edit
you get this:
If you open a console you get:
Running AA edge (3c4ac59)
(this happen with both Rails 3.1.0 and 3.1.3)
The text was updated successfully, but these errors were encountered: