From fa7b68238830f21ce2f74b75eab78185d24825ab Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sun, 10 Oct 2021 09:44:30 +0200 Subject: [PATCH] Docs: Update translation README.md files --- assets/locales/README.md | 2 +- frontend/src/locales/README.md | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/assets/locales/README.md b/assets/locales/README.md index 54aa74386..6dcef461c 100644 --- a/assets/locales/README.md +++ b/assets/locales/README.md @@ -19,7 +19,7 @@ Technical log messages should be in English to avoid ambiguities and (even sligh `default.po` files in subdirectories contain localized messages for each [language](https://www.gnu.org/software/gettext/manual/html_node/Usual-Language-Codes.html#Usual-Language-Codes), -identified by their [two-letter locale](https://www.gnu.org/software/gettext/manual/html_node/Locale-Names.html), +identified by their [locale](https://www.gnu.org/software/gettext/manual/html_node/Usual-Language-Codes.html), like `de/default.po` for German. You can open, edit and save them with Poedit. Please also add and commit binary `*.mo` files, which will be automatically created by Poedit. diff --git a/frontend/src/locales/README.md b/frontend/src/locales/README.md index 016044760..4430db5e3 100644 --- a/frontend/src/locales/README.md +++ b/frontend/src/locales/README.md @@ -15,16 +15,13 @@ It's source code can be obtained on [GitHub](https://github.com/vslavik/poedit). `*.po` files contain localized messages for each [language](https://www.gnu.org/software/gettext/manual/html_node/Usual-Language-Codes.html#Usual-Language-Codes), -identified by their [two-letter locale](https://www.gnu.org/software/gettext/manual/html_node/Locale-Names.html), +identified by their [locale](https://www.gnu.org/software/gettext/manual/html_node/Usual-Language-Codes.html), like `de.po` for German. You can open, edit and save them with Poedit to update existing translations. -As it doesn't seem necessary for now, and to reduce the amount of work, -we don't maintain translations for dialects like `de_AT` or `pt_BR`. - To add a new translation, open `translations.pot`, click on "Create New Translation" at the bottom, select the language, and start translating. -When done, save your translation as `*.po` file using the two-letter language locale as name. +When done, save your translation as `*.po` file using the [locale](https://www.gnu.org/software/gettext/manual/html_node/Usual-Language-Codes.html) as name. In addition, the new language needs to be added to the `Languages` function in `/frontend/src/options/options.js`.