This project is archived and is in readonly mode.
ActionView::Helpers::TranslationHelper#translate call I18n with different arguments depending on render method parameter
-
Robert Pankowecki
- Tag changed from action_view, i18n, partial, translate, translation_helper to action_view, i18n, partial, rails3, translate, translation_helper
-
Aditya Sanghi
- State changed from new to open
- Milestone cleared.
- Assigned user set to José Valim
- Tag changed from action_view, i18n, partial, rails3, translate, translation_helper to action_view, i18n, partial, patch, rails3, translate, translation_helper
- Importance changed from to Low
I can see the problem. Robert please confirm but i think you meant
.service.search.results.translate.me
not
.service/search/results.translate.me
What would work is t("service.search.results.translate.me")
Adding test and patch.
-
Robert Pankowecki
Yes, that's what I meant. My mistake.
Thanks for the fix.
The patch and test look fine for me. -
Aditya Sanghi
- State changed from open to verified
-
José Valim
Hey, thanks for the patch! However, it is only half of the solution! If you are rendering the same files and they are having different @virtual_path, this means we have a another bigger problem to solve.
I will take a look at this later, apply your patch and fix the counter-part.
