From 7fe8c7de4294f96bcf9fe1c013dfd5979514aa11 Mon Sep 17 00:00:00 2001 From: Rafael JPD Date: Wed, 10 Nov 2021 17:01:55 -0300 Subject: [PATCH] =?UTF-8?q?adiciona=20instru=C3=A7=C3=B5es=20para=20tradu?= =?UTF-8?q?=C3=A7=C3=A3o=20em=20ambiente=20docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c666fef..4159ead 100644 --- a/README.md +++ b/README.md @@ -101,12 +101,14 @@ __How to translate the interface content to other languages__ # Access the core project directory cd core -# Create the strings translated to Portuguese +# Create the strings to be translated to Portuguese python ../manage.py make_messages_no_fuzzy -l pt -# Create the strings translated to Spanish +# Create the strings to be translated to Spanish python ../manage.py make_messages_no_fuzzy -l es +# Translate the strings + # Compile the translated strings python ../manage.py compilemessages ``` @@ -153,7 +155,7 @@ docker-compose -f docker-compose.yml exec web python manage.py migrate --noinput python manage.py migrate ``` -__Collect static files__ +__Collect staticfiles__ ```shell # Under host shell, run @@ -163,6 +165,15 @@ docker-compose -f docker-compose.yml exec web python manage.py collectstatic --n python manage.py collectstatic ``` +__Generate translations__ +```bash +# Under host shell, run +python ../manage.py compilemessages + +# Under docker shell, run +docker-compose -f docker-compose.yml exec web python manage.py compilemessages group +``` + __Load default groups__ ```shell