-
Notifications
You must be signed in to change notification settings - Fork 823
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
Update i18nTextCollector to collect strings also from themes #10685
Conversation
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.
Looks ok from my perspective, thanks for the tweaks!
I'm not too fussed if this particular PR goes to 4.12
as a bugfix or to 4
as an enhancement, what do you think @GuySartorelli?
P.S. Squash will be needed
Based on Guy's comment on #10686 I suggest this also targets |
b208564
to
af2c9c9
Compare
rebased and squashed. |
the tests didn't trigger when I rebased this. can you please trigger them manually? |
There's no way that I'm aware of to trigger tests manually on a PR. Try pushing to the branch again. |
af2c9c9
to
01d484f
Compare
Sorry, I haven't had time to look at this again - at the very least this will need to target the |
ddebe77
to
7f7079a
Compare
7f7079a
to
d5fae7b
Compare
Thanks @GuySartorelli. This is now rebased and squashed. |
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.
Please also add some unit tests to validate that this new functionality actually collects translations from themes as expected.
Sorry there are so many changes I didn't mention last time - I should have caught these the first time around.
I've created silverstripe/developer-docs#263 which will document this change. |
There have been a lot of changes since then
c8ddf88
to
4d48de3
Compare
Hey @GuySartorelli, I think this is now all cleaned up I have added a test as well. Let me know if you're happy with this and I'll squash the commits. Thank you! |
That's awesome, thank you! I haven't run it locally yet which I'll do before merging, but given the test is passing I'm pretty confident it works. The code looks good from a visual-inspection. Please go ahead and squash it, I'll try to make time either later today or tomorrow to run it locally before merging. |
4759e61
to
04266f7
Compare
Done, thank you! |
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.
Works great locally, thank you! Between this and the ORM change, this has been a significant contribution.
Thank you! It has been bugging me since 4.0, when the themes functionality was removed... 🙃 And with a few non-english projects over the last few months I finally had enough... 😉 |
Fixes #8491