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

i18n: missing pt-BR translation for non-member user mentions #33413

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

abhinavkrin
Copy link
Member

@abhinavkrin abhinavkrin commented Oct 1, 2024

Proposed changes (including videos or screenshots)

Fix missing translations for mention notifications in pt-BR locale when a user is mentioned but not part of the current channel.
Screenshot 2024-10-01 at 11 03 44 PM

Issue(s)

Steps to test or reproduce

Further comments

CORE-710

Copy link

changeset-bot bot commented Oct 1, 2024

⚠️ No Changeset found

Latest commit: f086e08

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

dionisio-bot bot commented Oct 1, 2024

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the required milestone or project

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

Copy link
Contributor

github-actions bot commented Oct 1, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-33413/
on branch gh-pages at 2024-10-17 23:20 UTC

Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.52%. Comparing base (b338807) to head (f086e08).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##           develop   #33413       +/-   ##
============================================
- Coverage    74.85%   58.52%   -16.34%     
============================================
  Files          470     2777     +2307     
  Lines        20743    66566    +45823     
  Branches      5294    15037     +9743     
============================================
+ Hits         15528    38957    +23429     
- Misses        4595    24785    +20190     
- Partials       620     2824     +2204     
Flag Coverage Δ
unit 74.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@abhinavkrin abhinavkrin changed the base branch from develop to release-6.13.0 October 1, 2024 19:27
@abhinavkrin abhinavkrin requested review from a team as code owners October 1, 2024 19:27
@abhinavkrin abhinavkrin force-pushed the fix/missing-pt-BR-translation-nonmember-user-mentioned branch from 4d14664 to 36488e6 Compare October 1, 2024 19:32
@abhinavkrin abhinavkrin changed the title fix: missing pt-BR transation for non-member user mentions regression: missing pt-BR transation for non-member user mentions Oct 1, 2024
@tiagoevanp tiagoevanp changed the title regression: missing pt-BR transation for non-member user mentions regression: missing pt-BR translation for non-member user mentions Oct 1, 2024
packages/i18n/src/locales/pt-BR.i18n.json Outdated Show resolved Hide resolved
@@ -1486,6 +1487,7 @@
"Do_not_display_unread_counter": "Não exibir nenhum contador desse canal",
"Do_not_provide_this_code_to_anyone": "Não forneça este código para ninguém.",
"Do_Nothing": "Não fazer nada",
"Do_nothing": "Não fazer nada",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Do_nothing": "Não fazer nada",
"Do_nothing": "Fazer nada",

@abhinavkrin abhinavkrin requested a review from tiagoevanp October 1, 2024 20:06
@abhinavkrin abhinavkrin added this to the 6.13 milestone Oct 1, 2024
Copy link
Member

@gabriellsh gabriellsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is a regression. Did anyone test this in older versions to make sure?

Also, the issue reported is not a missing translation. When there is a translation missing, it should always default to the english version (english translation is the base for all other translations, so it is the only one 100% guaranteed to have all keys present, always)

In the attached Jira task the title does indeed just mentions a missing translation, but in the Expected behaviour section there is a mention to how missing translations should be defaulted to english. I understand the confusion.

@jessicaschelly
Copy link
Member

jessicaschelly commented Oct 3, 2024

Did anyone test this in older versions to make sure?

Yes, on version 6.12.1, it shows the text in English (fallback for missing translation).
image
The title of the Jira ticket I created may have caused some confusion, I apologize for that. The issue is that the fallback translation is not working properly - if you try the same behavior using languages such as "Belarusian" the problem will still happen. It should use the default language (english) when there's no translation available.

@aleksandernsilva aleksandernsilva changed the base branch from release-6.13.0 to develop October 3, 2024 23:28
@aleksandernsilva aleksandernsilva changed the title regression: missing pt-BR translation for non-member user mentions i18n: missing pt-BR translation for non-member user mentions Oct 3, 2024
@aleksandernsilva aleksandernsilva modified the milestones: 6.13, 6.14 Oct 3, 2024
@aleksandernsilva aleksandernsilva force-pushed the fix/missing-pt-BR-translation-nonmember-user-mentioned branch from b040e1b to e3c15bd Compare October 3, 2024 23:32
@aleksandernsilva
Copy link
Contributor

@gabriellsh Your points were addressed here #33440

Since the translations itself don't categorize as regression, I am changing this PR's prefix to i18n and milestone to 6.14.

@aleksandernsilva aleksandernsilva dismissed gabriellsh’s stale review October 4, 2024 13:28

Points were addressed here #33440

@ggazzo ggazzo modified the milestones: 6.14, 7.0 Oct 17, 2024
@scuciatto scuciatto added the stat: QA assured Means it has been tested and approved by a company insider label Oct 17, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Oct 17, 2024
@tiagoevanp tiagoevanp dismissed their stale review October 17, 2024 21:52

yet reviewed

@dionisio-bot dionisio-bot bot removed the stat: ready to merge PR tested and approved waiting for merge label Oct 17, 2024
Comment on lines 1497 to +1498
"Do_Nothing": "Não fazer nada",
"Do_nothing": "Não fazer nada",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 2 keys with same value and almost same key?

@scuciatto scuciatto removed this from the 7.0 milestone Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA assured Means it has been tested and approved by a company insider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants