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

Use fallback locale from project settings instead of hardcoded "en" for TextServer. #102649

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Feb 10, 2025

TextServer use locale for some features (line breaking, number formatting, contextual shaping, case conversion, fallback font selection, base direction detection). If translation files are missing, it was using hardcode "en". This PR changes it to use user controllable internationalization/locale/fallback project setting (defaults to "en") instead.

Should allow workaround for issues like #100642 without adding translation files (this is not a full fix, which should be based on #97918 and involve some API changes).

@bruvzg bruvzg added this to the 4.4 milestone Feb 10, 2025
@bruvzg bruvzg requested a review from a team as a code owner February 10, 2025 07:13
@akien-mga akien-mga merged commit 261e7d3 into godotengine:master Feb 10, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants