This project is archived and is in readonly mode.
I18n load path needs to be setup before eager loading
-
Repository
- State changed from new to resolved
(from [c2aca3ddd78b514d099ddef5afc4cee0dd7d75f2]) Ensure I18n setup is only executed once if triggered on eager loading [#6353 I18n load path needs to be setup before eager loading state:resolved]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
https://github.com/rails/rails/commit/c2aca3ddd78b514d099ddef5afc4c... -
Repository
(from [b1ca339b53559a71958c02644e329c714037f616]) Additionally trigger i18n configuration setup before any eager loading [#6353 I18n load path needs to be setup before eager loading state:resolved]
This handles the case where config.cache_classes is true and classes
are loaded before the I18n load path has had a chance to be populated.Signed-off-by: Santiago Pastorino santiago@wyeworks.com
https://github.com/rails/rails/commit/b1ca339b53559a71958c02644e329... -
Repository
(from [979f38a4ff20f388bf75da2d1a3c7e76f1c82fc6]) Additionally trigger i18n configuration setup before any eager loading [#6353 I18n load path needs to be setup before eager loading state:resolved]
This handles the case where config.cache_classes is true and classes
are loaded before the I18n load path has had a chance to be populated.Signed-off-by: Santiago Pastorino santiago@wyeworks.com
https://github.com/rails/rails/commit/979f38a4ff20f388bf75da2d1a3c7... -
Repository
(from [effb582955e0aedd12260ca989d77083c242b072]) Ensure I18n setup is only executed once if triggered on eager loading [#6353 I18n load path needs to be setup before eager loading state:resolved]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
https://github.com/rails/rails/commit/effb582955e0aedd12260ca989d77... -
Sven Fuchs
- Importance changed from to Low
Wow, that was quick!
I just wanted to +1 on this, but it's already applied.
Thanks Saimon for looking into this! And thanks Santiago for acting so quickly :)
-
tbh
Isn't this a duplicate of #5522 Model classes are loaded before I18n is set when running tests. ?
-
Robert Pankowecki
Thank you for fixing this bug and backporting it to 3-0-stable :-)
-
tbh
Has this fix made its way into 3.0.4? I just upgraded and still have problems with mixed translations due to eagerly loaded models when using cache_classes = true.