diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /doc/development/i18n | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'doc/development/i18n')
-rw-r--r-- | doc/development/i18n/externalization.md | 4 | ||||
-rw-r--r-- | doc/development/i18n/merging_translations.md | 2 | ||||
-rw-r--r-- | doc/development/i18n/proofreader.md | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/doc/development/i18n/externalization.md b/doc/development/i18n/externalization.md index 7ea8378b6db..796a1f44ccd 100644 --- a/doc/development/i18n/externalization.md +++ b/doc/development/i18n/externalization.md @@ -363,7 +363,7 @@ use `%{created_at}` in Ruby but `%{createdAt}` in JavaScript. Make sure to // => When x == 2: 'Last 2 days' ``` -The `n_` method should only be used to fetch pluralized translations of the same +The `n_` and `n__` methods should only be used to fetch pluralized translations of the same string, not to control the logic of showing different strings for different quantities. Some languages have different quantities of target plural forms. For example, Chinese (simplified) has only one target plural form in our @@ -376,7 +376,7 @@ For example, use this: if selected_projects.one? selected_projects.first.name else - n__("Project selected", "%d projects selected", selected_projects.count) + n_("Project selected", "%d projects selected", selected_projects.count) end ``` diff --git a/doc/development/i18n/merging_translations.md b/doc/development/i18n/merging_translations.md index e3211f5a8fc..f89190fc316 100644 --- a/doc/development/i18n/merging_translations.md +++ b/doc/development/i18n/merging_translations.md @@ -21,7 +21,7 @@ message. This avoids an excessive number of pipelines from running. Before merging translations, make sure to trigger a pipeline to validate 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) -(need developer permissions) 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 offending string in CrowdIn, leaving a comment with what is diff --git a/doc/development/i18n/proofreader.md b/doc/development/i18n/proofreader.md index fc19ab93ecd..6e3b32e18df 100644 --- a/doc/development/i18n/proofreader.md +++ b/doc/development/i18n/proofreader.md @@ -93,6 +93,7 @@ are very appreciative of the work done by translators and proofreaders! - Portuguese, Brazilian - Paulo George Gomes Bezerra - [GitLab](https://gitlab.com/paulobezerra), [CrowdIn](https://crowdin.com/profile/paulogomes.rep) - André Gama - [GitLab](https://gitlab.com/andregamma), [CrowdIn](https://crowdin.com/profile/ToeOficial) + - Eduardo Addad de Oliveira - [GitLab](https://gitlab.com/eduardoaddad), [CrowdIn](https://crowdin.com/profile/eduardoaddad) - Romanian - Proofreaders needed. - Russian |