-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[2.2 develop] [backport #19018] [issue #17833] child theme does not inherit translations from parent theme #19023
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
Conversation
…theme (cherry picked from commit 388fb45)
… theme - fix code style
Hi @vpodorozh. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
… theme (cherry picked from commit 21f5225)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @vpodorozh, please check the comments I've just added. There are just a few small changes requests :)
… theme - fix php7.0 compatibility
Hi guys, I’ve found that in 2.2 develop branch unit test for Trsnslation.php is present and it does not pass - I’m going to take a look into it on Saturday. |
… theme - take into account into "null" locale value
… theme - fix code style
Hi @sivaschenko, thank you for the review. |
…me does not inherit translations from parent theme #19023
Hi @vpodorozh. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Original pull request ( #19018 )
Description ( #17833 )
Child theme does not inherit translations from parent theme.
Theme inheritance does not work as expected with [translation dictionaries][1]. The child theme does not use any translations defined in it's parent theme's
en_US.csv
translation dictionary.Fixed Issues
Preconditions
I'm working on a Magento ver 2.2.5 installation with two websites & two corresponding theme's. Each with their own [translation dictionary][1], and one theme inheriting from the other.
Manual testing scenarios
"Create New Customer Account","Create New Account"
to the parent theme'sen_US.csv
translation dictionary.Expected result
The page title should be Create New Account
Actual result
The page title is still Create New Customer Account
"Create New Customer Account","Create New Account"
to the Child theme'sen_US.csv
translation dictionary you can see the translation string applied corectly on the website with the child theme applied.Is this a bug with Magento or am I doing something wrong?
Is the [translation dictionary][1] documentation incorrect and this is actually the correct behaviour?
Contribution checklist