Commit 6b815947 authored by Alain St-Denis's avatar Alain St-Denis
Browse files

Initial translation setup

parent e96c378c
Requirements
------------
pybabel (already installed)
pip install django-babel (TODO: document my fix to extract.py)
pip install babel-vue-extractor
Create the initial pot file
---------------------------
From project directory,
Create babel.cfg with the following content:
```
[django: templates/**.*]
[django: socialhome/*/templates/**.*]
[python: socialhome/**.py]
[babelvueextractor.extract.extract_vue: socialhome/**.vue]
[javascript: socialhome/frontend/*.js]
[javascript: socialhome/frontend/src/**.js]
```
Extract initial pot file using:
```
pybabel extract -F babel.cfg -o socialhome/locale/django.pot .
```
TODO
----
Weblate setup
[django: templates/**.*]
[django: socialhome/*/templates/**.*]
[python: socialhome/**.py]
[babelvueextractor.extract.extract_vue: socialhome/**.vue]
[javascript: socialhome/frontend/*.js]
[javascript: socialhome/frontend/src/**.js]
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment