From baf575b6ee5bcd5cd14d5797e3b67b2e585d98a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20G=C3=BCtzkow?= Date: Tue, 29 Aug 2023 20:18:24 +0200 Subject: [PATCH] add translation help in README --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 79cc91c92..a8bea7f28 100644 --- a/README.md +++ b/README.md @@ -110,3 +110,20 @@ python manage.py migrate ``` Follow the above step about fixtures if you want your test data back + + +## Translations + +We have locality for Norwegian and English +To generate new translations in `.po` files run +``` +python manage.py makemessages -l nb -l en +``` + +Add the correct translations in the `msgstr` quotes. +If a translation is not given and the `msgstr` quote is empty, the msgid will be used + +To compile the translations and make the translations available run +``` +python manage.py compilemessages +``` \ No newline at end of file