-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Separates the default language for contacts from the site language #20214
Conversation
(Standard links)
|
@mlutfy can you check this one? |
Makes sense. Only minor review items on the code comments. |
Thanks @mlutfy , I'll sort this out tomorrow! |
If you think that the fixes are good to go, I can squash the 2 commits and force-push it. |
Thank you @VangelisP, looks good to me! I will leave open a few days to see if @bjendres has any feedback. |
Looks like a thorough job to me, I don't have anything to add at this point :-) |
Recapping what we got so far:
If we are happy, let me know and I can squash the commits into 1. |
This looks correct to me know (squishing aside) |
Actually I think this can be simplified further - I don't think we need to fall back to
because that would already have been returned from getContactDefaultLanguage if appropriate |
You are right, this is being returned from getContactDefaultLanguage(), adjusting my code accordingly. Thanks ! |
Yay |
Overview
This is a PR related to the issue 2584
Before
Default language for contacts had 3 options:
After
Default language for contacts renders the 3 options above plus all the available languages.
Technical Details
This PR adds the new languages to the selector and then on the
CommunicationPreferences.php
field examines what is the value of the configuration.This works properly via the APIv3 as well.