#46803 closed defect (bug) (fixed)
Site Health: Display both site and user locale in debug information
Reported by: | desrosj | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Site Health | Keywords: | has-patch site-health commit |
Focuses: | Cc: |
Description
In some scenarios, it could be useful to know when the site's locale differs from the user's preference.
In the debug info, only one "Language" field is provided, indicating the current user's locale, either from selected preference or site default.
I propose changing this field to "User Language" and adding "Site Language". This could prove useful for debugging i18n issues.
Follow up of #46694.
Attachments (3)
Change History (10)
#2
@
5 years ago
- Keywords needs-refresh removed
Thanks for the suggestion @mukesh27, I have updated the original patch to remove $original_locale = get_user_locale();
as it is no longer required. There do not seem to be any adverse affects.
Note: See
TracTickets for help on using
tickets.
@desrosj, Patch looks good to me. one small suggestion, As we remove "language" from array list can we remove
$original_locale = get_user_locale();
from debug_data function as$original_locale
is not used any where in that function now.