-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Clarify the behavior of Control.layout_direction
in the documentation
#102716
Clarify the behavior of Control.layout_direction
in the documentation
#102716
Conversation
1907aa4
to
c7e0e2c
Compare
c7e0e2c
to
8217cda
Compare
8217cda
to
65c795e
Compare
@@ -1372,7 +1372,7 @@ | |||
Automatic layout direction, determined from the parent control layout direction. | |||
</constant> | |||
<constant name="LAYOUT_DIRECTION_APPLICATION_LOCALE" value="1" enum="LayoutDirection"> | |||
Automatic layout direction, determined from the current locale. | |||
Automatic layout direction, determined from the current locale. Right-to-left layout direction is automatically used for languages that require it such as Arabic and Hebrew., but only if a valid translation file is loaded for the given language. For all other languages (or if no valid translation file is found by Godot), left-to-right layout direction is used. If using [TextServerFallback] ([member ProjectSettings.internationalization/rendering/text_driver]), left-to-right layout direction is always used regardless of the language. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but only if a valid translation file is loaded for the given language
After #102649, it's also possible to set internationalization/locale/fallback
to RTL language without translation files (if it's the only supported language).
There's also internationalization/rendering/force_right_to_left_layout_direction
property for testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops I overlooked this when merging. That can be improved in a follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request opened:
Thanks! |
This also incorporates the documentation change from #91824.