Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Update more in-app Stats texts to always use western arabic numerals #17217
Update more in-app Stats texts to always use western arabic numerals #17217
Changes from all commits
0c5dfc9
b65822f
af6b25c
6f6a27e
3a004f8
8bf25e3
fc743ff
b5589f1
32cf991
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This is not a request for a change. Just curious why we set the layout direction here 🤔
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.
Thank you for raising the question @antonis 🙇
I noticed this view was placing the number sign inverted when using a RTL language, see screenshot:
This isn't the case in other places because we always have a prefix / suffix or the number is part of a longer string.
Upon further investigation it appears this happens only when the text of the view contains a number and any other characters except letters.
This seems to be the behavior of text views in RTL languages, though not consistent after we've introduced the changes to use western arabic numerals.
A few other explorations without setting
android:layoutDirection="ltr"
:Conclusion: In order to maintain a consistent position of the number sign with the other places, this change was indeed needed 🙂.
At the time I was also using Wikipedia to check the topic and my understanding was that the negative sign is positioned to the right only for eastern arabic numerals.