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

Adding Vietnamese as a new language (beta) #24074

Merged
merged 20 commits into from Oct 17, 2023

Conversation

ctlaltdieliet
Copy link
Collaborator

@ctlaltdieliet ctlaltdieliet commented Jul 20, 2023

Summary

Adding Vietnamese as a new shipped language (beta)
@cwarnermm
This PR is related to mattermost/mattermost-mobile#7462 and to mattermost/desktop#2872

Release Note

NONE

@mm-cloud-bot
Copy link

@ctlaltdieliet: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

I understand the commands that are listed here

@mattermost-build
Copy link
Contributor

Hello @ctlaltdieliet,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Copy link
Member

@devinbinnie devinbinnie left a comment

Choose a reason for hiding this comment

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

Approving to unblock, but looks like the lint isn't passing.

@ctlaltdieliet
Copy link
Collaborator Author

Lint fails because the translations aren't merged yet from Weblate

@mattermost-build
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@Willyfrog
Copy link
Contributor

Lint fails because the translations aren't merged yet from Weblate

@ctlaltdieliet is that something we need to do here or in weblate?

@ctlaltdieliet
Copy link
Collaborator Author

ctlaltdieliet commented Aug 21, 2023

Vietnamese was added in Weblate that wants to be the one and only true source of translations but was removed after a rebase.
I can add it again and if we merge the translations into master it would be ok.
But we also have this PR that brings the WIP-languages under the shipped repository. So maybe there needs to be some coordination between this and that PR but I'm not sure.

@ctlaltdieliet
Copy link
Collaborator Author

/update-branch

@ctlaltdieliet
Copy link
Collaborator Author

/update-branch

@ctlaltdieliet
Copy link
Collaborator Author

/update-branch

@ctlaltdieliet
Copy link
Collaborator Author

I see that the vi.json file isn't pushed from Weblate to Master. Will be done probably Monday Oct 13th

@ctlaltdieliet
Copy link
Collaborator Author

/update-branch

@lieut-data lieut-data added the 3: QA Review Requires review by a QA tester. May occur at the same time as Dev Review label Oct 12, 2023
@mattermost-build
Copy link
Contributor

E2E tests not automatically triggered, because the PR is not in a mergeable state. Please update the branch with the base branch and resolve outstanding conflicts.

@lieut-data
Copy link
Member

@lindalumitchell, can you help me find the right owner for QA'ing the addition of this supported language?

@lieut-data
Copy link
Member

@ctlaltdieliet, I added Vietnamese as a server supported language (this is required because of the change to merge WIP languages but "hide" them from the server). Unfortunately, it looks like there might be a parsing error with the current translation?

Error: unable to load Mattermost translation files: unable to parse translation #934 because template: Không thể thêm tùy chọn kênh trực tiếp cho người dùng user_id = {{. UserId}}, team_id = {{. TeamId}}, err = {{. Error}}:1: function "UserId" not defined
map[id:api.user.add_direct_channels_and_forget.failed.error translation:Không thể thêm tùy chọn kênh trực tiếp cho người dùng user_id = {{. UserId}}, team_id = {{. TeamId}}, err = {{. Error}}]

@ctlaltdieliet
Copy link
Collaborator Author

Hi @lieut-data,
I checked the translation string but didn't see an error. I took the current vi.json from Weblate, removed the string from vi.json and added to this PR. But still no test-server spinning up

@lieut-data
Copy link
Member

@ctlaltdieliet, actually removing that looks good! No more CI issues starting up the server, so I think we're good for a QA pass before merging.

@lieut-data
Copy link
Member

/e2e-test

@mattermost-build
Copy link
Contributor

Successfully triggered E2E testing!
GitLab pipeline | Test dashboard

Copy link
Contributor

@lindalumitchell lindalumitchell left a comment

Choose a reason for hiding this comment

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

Checked through e2es and no relevant failures found. Also ran through various pages in Vietnamese and a couple other languages with no issues found. LGTM!

@lieut-data
Copy link
Member

Thank you, @lindalumitchell!

@lieut-data lieut-data removed the 3: QA Review Requires review by a QA tester. May occur at the same time as Dev Review label Oct 17, 2023
@lieut-data lieut-data merged commit 1de790a into mattermost:master Oct 17, 2023
31 checks passed
@mattermost-build mattermost-build removed the Setup Cloud Test Server Setup an on-prem test server label Oct 17, 2023
@mm-cloud-bot
Copy link

Test server destroyed

@amyblais amyblais added Docs/Needed Requires documentation Changelog/Done Required changelog entry has been written labels Oct 17, 2023
@amyblais amyblais added this to the v9.3.0 milestone Oct 17, 2023
SaketKaswa20 pushed a commit to SaketKaswa20/mattermost that referenced this pull request Oct 19, 2023
* adding vietnamese

* ran npm run test:updatesnapshot

* ran npm run test:updatesnapshot

* Update i18n.jsx

* updatesed snapshot

* fix whitespace in snapshots

* add vi as supported server locale

* update docs to point at server-side list of supported locales

* removed incorrect translation

---------

Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
sbishel pushed a commit to sbishel/mattermost that referenced this pull request Oct 24, 2023
* adding vietnamese

* ran npm run test:updatesnapshot

* ran npm run test:updatesnapshot

* Update i18n.jsx

* updatesed snapshot

* fix whitespace in snapshots

* add vi as supported server locale

* update docs to point at server-side list of supported locales

* removed incorrect translation

---------

Co-authored-by: Tom De Moor <tom@controlaltdieliet.be>
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
@cwarnermm cwarnermm added Docs/Done Required documentation has been written and removed Docs/Needed Requires documentation labels Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog/Done Required changelog entry has been written Contributor Docs/Done Required documentation has been written release-note-none Denotes a PR that doesn't merit a release note.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants