-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Feature: Added proper support for RTL languages #16514
base: main
Are you sure you want to change the base?
Feature: Added proper support for RTL languages #16514
Conversation
fyi @0x5bfa |
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.
Looks great. Does this also work for generated content dialogs such as the add new dialog that is shown when Ctrl+Shift+I entered?
This comment was marked as resolved.
This comment was marked as resolved.
RealTime Layout Service
for cultures using RTL/LTR…ix-WrongArrowInRTL
…alTimeLayoutUpdate
Thank you for all the effort you put into this PR @XTorLukas. I think it is a good step forward and good you made these investigations, I think there are a few things I would approach differently for this. The approach with the code generator is quite interesting, however it seems quite complicated to what we would like to achieve here. From what I can see, there are three things we need to do to properly support RTL:
While your approach does achieve this, it also creates a lot of complexity through the interfaces and the code generators associated with them. I would probably prefer a lightweight FlowDirectionService that essentially provides the following API:
An open question for me (and something that is also not addressed in this PR right now I think) is how to deal with m ultiple windows. Does every window have its own FDS? How do all of these get notified of the change? Edit: Attached is a test version I used for testing RTL stuff FlowDirectionManager.txt |
Resolved / Related Issues
To prevent extra work, all changes to the Files codebase must link to an approved issue marked as
Ready to build
. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.Microsoft issues
Steps used to test these changes
Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.
Important
This service function is only used to display the layout correctly.
Tests for RTL