Skip to content

Commit

Permalink
fix: transifex configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
VDigitall committed Apr 13, 2021
1 parent c633df6 commit f57e96b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
host = https://www.transifex.com

[spoonbill.web-api]
file_filter = spoonbill_web/locale/<lang>/LC_MESSAGES/django.po
minimum_perc = 0
source_file = spoonbill_web/locale/django.pot
source_lang = en
type = PO

[spoonbill.core-web-api]
file_filter = core/locale/<lang>/LC_MESSAGES/django.po
minimum_perc = 0
source_file = core/locale/es/LC_MESSAGES/django.po
source_file = core/locale/django.pot
source_lang = en
type = PO
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,24 @@ pre-commit install
Configuration placed in file `.pre-commit-config.yaml`

[More about pre-commit](https://pre-commit.com/)


## Internationalization and Transifex

### Generate pot files

```shell
python manage.py makemessages --all --keep-pot
```

### Push pot files to transifex

```shell
tx push -st
```

### Pull translations

```shell
tx pull -a
```
Empty file added spoonbill_web/locale/.gitkeep
Empty file.
2 changes: 0 additions & 2 deletions spoonbill_web/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@

USE_TZ = True

LOCALE_PATHS = [f"{BASE_DIR}/core/locale"]

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/

Expand Down

0 comments on commit f57e96b

Please sign in to comment.