Skip to content

Commit

Permalink
Merge pull request #34 from rafaelpezzuto/improve-translating
Browse files Browse the repository at this point in the history
Adiciona melhorias de tradução de interface
  • Loading branch information
rafaelpezzuto authored Nov 10, 2021
2 parents 2f4d337 + 7fe8c7d commit 0b4d6ed
Show file tree
Hide file tree
Showing 4 changed files with 668 additions and 588 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
3 changes: 2 additions & 1 deletion app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ RUN apk update \
musl-dev \
libxml2-dev \
libxslt-dev \
libffi-dev
libffi-dev \
gettext

RUN pip install --upgrade pip

Expand Down
Loading

0 comments on commit 0b4d6ed

Please sign in to comment.