Skip to content
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

Log locale info to help debug i18n #40054

Merged
merged 1 commit into from
May 1, 2020

Conversation

jbytheway
Copy link
Contributor

Summary

SUMMARY: I18N "Record locales in debug.log to assist with i18n debugging"

Purpose of change

In #40041 people are reporting some very strange sorting results.

Describe the solution

To understand what's going on add logging to all the places which modify the locale so we can see what it's being set to.

Describe alternatives you've considered

Asking people to debug the issue themselves.

Testing

Ran the game; observed the logs exist for me locally.

Additional context

The way locales are handled is scattered across various files in a rather unhelpful way. Maybe this can be consolidated?..

In each of the three places where the global locale is changed, log the
results of that change to the debug log.
Copy link
Contributor

@ifreund ifreund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ifreund ifreund merged commit a8bbd72 into CleverRaven:master May 1, 2020
@jbytheway jbytheway deleted the log_locale_info branch May 1, 2020 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants