-
Notifications
You must be signed in to change notification settings - Fork 26
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: enable translations in plurals for failed to add and failed to send messages (WPB-3788) #2170
Conversation
if (memberNames.size > 1) { | ||
R.string.label_system_message_conversation_failed_add_many_members_details | ||
} else { | ||
R.string.label_system_message_conversation_failed_add_one_member_details | ||
} |
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.
How about using plural xml tag in strings file ?
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.
Does not fit this case sadly :( since we need to only show when expanded in the UI, but this would require a refactor in SystemMessage
component to do it.
I'm doing here the same approach we needed to use for stopping to federate, https://github.com/wireapp/wire-android-reloaded/blob/47891fbe47af5fde2d74f30baaa63aed58de1a6e/app/src/main/res/values/strings.xml#L558-L559
…end messages (WPB-3788) (#2170)
Build 508 succeeded. The build produced the following APK's: |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
We need to be able to properly translate in plurals for other supported languages, ie: German, Spanish, etc.
Solutions
Add plurals versions to strings for failed to add and partial failed to send.
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.