Skip to content

Commit

Permalink
adiciona instruções para tradução em ambiente docker
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelpezzuto committed Nov 10, 2021
1 parent 851f580 commit 7fe8c7d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7fe8c7d

Please sign in to comment.