-
Notifications
You must be signed in to change notification settings - Fork 91
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
Default locale not being set #143
Comments
The Member class sets the default locale in the onBeforeWrite. does that not work? |
Doesn't seem to be. |
I can confirm this. Although I don't really understand why... |
My default locale is configured as 'en_AU' for Australian sites. But the locales provided in the Locale dropdown in the CMS only contain 'en_GB' and 'en_US' as options. So the locale of new Members is probably set corrently to 'en_AU', but this can't be displayed in the CMS. |
This is still a thing... |
I finally managed to put some time aside to run this module up and dig into this (on SS4.5), but would you believe.. I'm not seeing any issues haha. The following shows 2 users I created in the CMS, and 1 user I created using the member profile registration page: This might just be because I'm using the default locale, so I'll try something like |
Okay interesting results. So yeah, the locale dropdown for a member in the CMS doesn't contain |
So from what I can see, the module is behaving as expected, however it's not ideal that the locale dropdown in the CMS excludes certain locales. Perhaps this is something to follow through with a core issue and/or pull request? Would love to gather your thoughts before I close this however, as perhaps your issues are project specific? |
What happens if we set multiple locales, maybe the second can be used if the first is not found? e.g.;
We don't have any multilingual sites, and users will only have access to the front end, so from our point of view, we want all users to be en_GB. |
I agree with Mark. Maybe there should be a setting in the module what available CMS locale should be set for new registered users? similar to the group? |
@tardinha setting I guess it makes sense that |
@nglasl it does, but that's kind of a hack. As we should be setting our Aussie sites as en_AU (particularly for frontend stuff). I guess then we need to make sure we manually set our templates to en_AU and not use $ContentLocale :) |
I think ideally the dropdown should include any locale that's valid (including |
Seems they’re using locale and language interchangably |
When a new member is created via the registration form, their locale is not being set (it defaults to the first in the list, Afrikaans).
In SS3, this would default to the default locale.
The text was updated successfully, but these errors were encountered: