-
Notifications
You must be signed in to change notification settings - Fork 527
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
Fix #3841: Combine time and quantity plurals #5153
Fix #3841: Combine time and quantity plurals #5153
Conversation
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.
Thanks @aayushimathur6!
Some feedback:
- There are some failing tests in
TextViewBindingAdaptersTest
as a result of the change. Please run the test class locally to find the failing tests or Interpret the CI results. - Please update the PR title as instructed in the essential checklist.
Unassigning @adhiamboperes since the review is done. |
Hi @aayushimathur6, it looks like some changes were requested on this pull request by @adhiamboperes. PTAL. Thanks! |
updated |
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.
Thanks @aayushimathur6.
This solution is still incomplete since the fun getPluralString
is still accepting 2 seperate stings. Since the time_ago
string is nolonger needed or used, you need to refactor getPluralString
so that where we are currently passing time_ago
we replace it with pluralsResId
.
At the same time, you need to remove the TODO comment in that method so that the TODO check will not fail.
done |
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.
Thanks @aayushimathur6, this looks good to me.
You are missing the screenshots that prove that the solution works. Can you add before(from develop) and after(from this branch) screenshots? They should show that the text displays correctly still, for both LTR and RTL.
done |
done |
Unassigning @aayushimathur6 since a re-review was requested. @aayushimathur6, please make sure you have addressed all review comments. Thanks! |
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.
LGTM, thanks @aayushimathur6!
Unassigning @adhiamboperes since they have already approved the PR. |
Hi @aayushimathur6, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to ask someone to merge your PR once the CI checks pass and you're happy with it. Thanks! |
Explanation
Fixes #3841This PR involves Combining plurals and quantity strings from:
<string name="time_ago">%s ago</string>
and
to
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then: