Skip to content
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

Merged
merged 7 commits into from
Sep 4, 2023

Conversation

yamilmedina
Copy link
Contributor

@yamilmedina yamilmedina commented Sep 4, 2023

TaskWPB-3788 [Android] Review/update strings and translations for federation release


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

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)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@yamilmedina yamilmedina requested review from a team, alexandreferris, borichellow, MohamadJaara, mchenani, ohassine and Garzas and removed request for a team September 4, 2023 13:39
@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2023

Test Results

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit f91c835.

Comment on lines +437 to +441
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
}
Copy link
Member

@ohassine ohassine Sep 4, 2023

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 ?

Copy link
Contributor Author

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

@yamilmedina yamilmedina merged commit a72e67c into release/candidate Sep 4, 2023
11 of 13 checks passed
@yamilmedina yamilmedina deleted the fix/adjust-messages-strings branch September 4, 2023 14:18
github-actions bot pushed a commit that referenced this pull request Sep 4, 2023
@AndroidBob
Copy link
Collaborator

Build 508 succeeded.

The build produced the following APK's:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants