Skip to content
代码片段 群组 项目
未验证 提交 3421a65c 编辑于 作者: Ashraf Khamis's avatar Ashraf Khamis 提交者: GitLab
浏览文件

Merge branch 'mchrastek-translation-validation-doc' into 'master'

Add info about posting validation issues to Crowdin to translation docs

Closes gitlab-com/localization/localization-team#245

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/168361



Merged-by: default avatarAshraf Khamis <akhamis@gitlab.com>
Co-authored-by: default avatarMartin Chrástek <mchrastek-ext@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -23,13 +23,20 @@ translations. Static analysis validates things Crowdin doesn't do. Create ...@@ -23,13 +23,20 @@ translations. Static analysis validates things Crowdin doesn't do. Create
a new pipeline at [`https://gitlab.com/gitlab-org/gitlab/pipelines/new`](https://gitlab.com/gitlab-org/gitlab/pipelines/new) a new pipeline at [`https://gitlab.com/gitlab-org/gitlab/pipelines/new`](https://gitlab.com/gitlab-org/gitlab/pipelines/new)
(requires the Developer role) for the `master-i18n` branch. (requires the Developer role) for the `master-i18n` branch.
If there are validation errors, the easiest solution is to disapprove The pipeline job validates translations with the [`PoLinter` class](https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/i18n/po_linter.rb).
the offending string in Crowdin, leaving a comment with what is If the linter finds any errors, they appear in the job log.
required to fix the errors. There's an For an example of a failed pipeline, see [these error messages](https://gitlab.com/gitlab-org/gitlab/-/jobs/6771832489#L873).
[issue](https://gitlab.com/gitlab-org/gitlab/-/issues/23256)
that suggests automating this process. Disapproving excludes the If validation errors occur, you must manually disapprove the offending string
invalid translation. The merge request is then updated within a few in Crowdin and leave a comment about how to fix the errors:
minutes.
1. Sign in to Crowdin with the `gitlab-crowdin-bot` account.
1. Find the offending string.
1. Select **Current translation is wrong** to disapprove the translation for the specific target language.
1. Include the error message from the job log as a comment.
The invalid translation is then excluded, and the merge request is updated.
Automating this process is proposed in [issue 23256](https://gitlab.com/gitlab-org/gitlab/-/issues/23256).
If the translation fails validation due to angle brackets (`<` or `>`), If the translation fails validation due to angle brackets (`<` or `>`),
it should be disapproved in Crowdin. Our strings must use [variables](externalization.md#html) it should be disapproved in Crowdin. Our strings must use [variables](externalization.md#html)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册