-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
Move hook_civicrm_translateFields from message_admin to core #24063
Move hook_civicrm_translateFields from message_admin to core #24063
Conversation
(Standard links)
|
@totten do you think this test can work in this context - or should we skip it? |
276d03f
to
9010096
Compare
I don't feel too strongly about where What that means is that But there are a couple other POVs, ie:
I think that the placement in From discussion, it sounded like the the "Unit test POV" is where this became important -- ie in terms of writing tests, you'd rather have the presumption that all/most deployments have translation enabled. (Presumably, for test-cases with translation disabled, then you'd have to do some extra declarations in the test to opt-out.) |
tldr: I'm OK with moving it (because I think the placement shouldn't matter too much). Just want to make sure that we're keeping that posture (it's still going to be loosely coupled in implementation, even if the default policy is shifted around a bit). |
Yeah I think the message_admin extension always felt actively wrong to me (as it should be just a UI) - although I could argue a new extension for translation config makes sense rather than core - hence I didn't think it made sense to bend over backwards to keep it there for tests to pass |
Jenkins re test this please |
This test should not have been passing prior to this... it needed the event fields declared as translatable but we got away with it until we didn't
9010096
to
b4e4a67
Compare
Overview
Move hook_civicrm_translateFields from message_admin to core
#23844
Before
The fact that message template fields are translatable is in the message admin UI extension. However, rendering translated is core functionality (well once the rest of #23844 is merged) it will be - so the right place to define it is in core where the functionality is
After
Moved
Technical Details
This is the part of #23844 that is causing test fails so I'm separating it out - also, it should be an easy merge when tests pass
Comments