Enable translations based on Edition
Objective
GitLab JiHu has needs to have specific translations for language in GitLab and needs to override this in their own repository.
Proposal
Enable different translations based on JH edition. See gitlab-jh/gitlab#145 (comment 623873496) for more details.
- Generate .po files from
jh/localefor JiHu edition - Allow for locale selection in JH distribution to read from
jh/localeinstead oflocale
| User | Edition | Language |
|---|---|---|
| User A | EE | English (EE translation) |
| User B | JH | English (JH translation) |
| User C | JH | Simplified Chinese (JH translation) |
Implementation
Details described at #337133 (comment 640563485)
-
Look up translations from jh/localethen fallback tolocale-
Backend Ruby !68573 (merged) -
Frontend JavaScript
-
-
Generate keys in jh/localethat aren't present in EE and FOSS GitLab -
Translate JiHu specific versions of the English string
Edited by Lin Jen-Shin