Docs: Clarify contributions for translations (#55574)

* Docs: Clarify contributions for translations

* add comment to messages.po files
pull/55809/head^2
Josh Hunt 3 years ago committed by GitHub
parent afdb094983
commit 615d86d902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .github/CODEOWNERS
  2. 2
      CONTRIBUTING.md
  3. 4
      contribute/internationalization.md
  4. 2
      public/locales/es-ES/messages.po
  5. 2
      public/locales/fr-FR/messages.po
  6. 2
      public/locales/pseudo-LOCALE/messages.po

@ -110,6 +110,7 @@ go.sum @grafana/backend-platform
/contribute/architecture/backend @grafana/backend-platform
/contribute/engineering/backend @grafana/backend-platform
/public/locales @grafana/user-essentials
/e2e @grafana/user-essentials
/packages @grafana/user-essentials @grafana/plugins-platform-frontend @grafana/grafana-bi-squad
/packages/grafana-e2e-selectors @grafana/user-essentials

@ -15,6 +15,8 @@ You can contribute to Grafana in several ways. Here are some examples:
- Organize meetups and user groups in your local area.
- Help others by answering questions about Grafana.
**Please note:** We do not currently accept contributions for translations. Please do not submit pull requests for messages.po files - they will be rejected.
For more ways to contribute, check out the [Open Source Guides](https://opensource.guide/how-to-contribute/).
### Report bugs

@ -7,6 +7,10 @@ Grafana uses the [LinguiJS](https://github.com/lingui/js-lingui) framework for m
- Use `<Trans id="search-results.panel-link">Go to {panel.title}</Trans>` in code to add a translatable phrase
- Translations are stored in .po files in `public/locales/{locale}/messages.po`
- If a particular phrase is not available in the a language then it will fall back to English
- To update phrases in English, edit the `en/messages.po` file, not the source JSX
- To update phrases in any translated language, edit the phrase in Crowdin
**Please note:** We do not currently accept contributions for translations. Please do not submit pull requests for messages.po files - they will be rejected.
## How to add a new translation phrase

@ -19,6 +19,8 @@ msgstr ""
"X-Crowdin-File: /main/public/locales/en-US/messages.po\n"
"X-Crowdin-File-ID: 59\n"
# Don't edit this file manually - translations must be managed within Crowdin
#: public/app/core/components/SharedPreferences/SharedPreferences.tsx
msgid "common.locale.default"
msgstr ""

@ -19,6 +19,8 @@ msgstr ""
"X-Crowdin-File: /main/public/locales/en-US/messages.po\n"
"X-Crowdin-File-ID: 59\n"
# Don't edit this file manually - translations must be managed within Crowdin
#: public/app/core/components/SharedPreferences/SharedPreferences.tsx
msgid "common.locale.default"
msgstr ""

@ -13,6 +13,8 @@ msgstr ""
"Language-Team: \n"
"Plural-Forms: \n"
# Don't edit this file manually - translations must be managed within Crowdin
#: public/app/core/components/SharedPreferences/SharedPreferences.tsx
msgid "common.locale.default"
msgstr ""

Loading…
Cancel
Save