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

Fix language selector on preferences page #2794

Merged
merged 1 commit into from
May 4, 2017

Conversation

AA4ch1
Copy link
Contributor

@AA4ch1 AA4ch1 commented May 4, 2017

The user's language is detected automatically.
But the language isn't set in the language selector by default.
So when non-English users change other settings on the Preferences page (e.g. Post privacy)
and save changes, the language setting is changed to English unintentionally.

This commit fixes this issue by set detected language to the selector by default.
And maybe fix #1558.

@mjankowski
Copy link
Contributor

Oh, good catch and good change.

Is adding a blank option here to allow users to leave nothing selected better ... or is default to their i18n'd language (like your change) better?

I guess if they are on a server where the default is ok for them, it's basically the same either way, and doesn't matter if it's saved as their locale or just that they are getting it set anyway.

@mjankowski mjankowski merged commit a50a874 into mastodon:master May 4, 2017
@AA4ch1 AA4ch1 deleted the fix-language-selector branch May 11, 2017 04:25
ClearlyClaire added a commit to ClearlyClaire/mastodon that referenced this pull request Jul 25, 2024
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.

Wrong default language in settings
2 participants