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

Added system locale support #1427

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

@renski-dev renski-dev marked this pull request as ready for review August 23, 2024 12:19
Comment on lines +101 to +105
hint.push_str(&locale.lang);
if let Some(region) = &locale.country {
hint.push('_');
hint.push_str(&region);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Feels like this should be the Display impl of Locale, also, this is missing the separating commas.

@@ -9,6 +9,8 @@ when upgrading from a version of rust-sdl2 to another.

[PR #1407](https://github.com/Rust-SDL2/rust-sdl2/pull/1407) Add new use_ios_framework for linking to SDL2.framework on iOS

[PR #1427](https://github.com/Rust-SDL2/rust-sdl2/pull/1427) Add system locale support
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be noted that this is a breaking change (a field is added to Event)

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