From 0d4c44365454f67649f54c07d257b337ca345552 Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Thu, 16 Nov 2023 11:01:11 +0100 Subject: [PATCH] Correct translation process --- docs/translation.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/translation.md b/docs/translation.md index 49545bc7..b3f6335f 100644 --- a/docs/translation.md +++ b/docs/translation.md @@ -52,8 +52,8 @@ After saving the file, the translation is completed. Return the translation by Z Entering each of the applications (/VIPSWeb, /forecasts, /messages), do: ```bash -django-admin.py makemessages -l [LANGUAGE] -django-admin.py makemessages -d djangojs -l [LANGUAGE] +$ ./manage.py makemessages -l [LANGUAGE] +$ ./manage.py makemessages -d djangojs -l [LANGUAGE] ``` After that, you can edit the language files (see above) @@ -61,17 +61,17 @@ After that, you can edit the language files (see above) PLEASE NOTE: django-admin.py has been creating buggy information for plurals. Please check the header field of your newly created .po file. If the plural-forms header does not start with «nplurals=X;», then something has gone wrong. You can find the correct header here: http://localization-guide.readthedocs.org/en/latest/l10n/pluralforms.html ### Updating translation files -If you have added new translation keywords, do this in each of the applications: +If you have added new translation keywords, do this from the source root: ```bash -$ ./manage.py makemessages -a [LANGUAGE] +$ ./manage.py makemessages -a $ ./manage.py makemessages -d djangojs -a [LANGUAGE] ``` Then recompile the translation files (see below) ### Compiling translation files -Entering each of the applications (/VIPSWeb, /forecasts, /messages), do: +From the source root: ``` $ ./manage.py compilemessages -- GitLab