X-Git-Url: http://git.cyclocoop.org/?p=cavote.git;a=blobdiff_plain;f=README.md;h=178afa2ce84c241daeae51a37cd21a765a1bf303;hp=e201be48f7ce151cb88ed23a0102b8eb0e8af79c;hb=HEAD;hpb=0f93afde08f333a6615145615f424db26240b512 diff --git a/README.md b/README.md index e201be4..178afa2 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,27 @@ L'utilisateur par défaut peut être activé à l'adresse identifiants de connection lors du premier accès. +Traduction +---------- + +Génération du template de chaînes à traduire : + + pybabel extract -F babel.cfg -o messages.pot . + +Génération du catalogue d'une langue en particulier : + + pybabel init -i messages.pot -d translations -l fr + +Une fois la traduction effectuée : + + pybabel compile -d translations + +Si les chaînes changent : + + pybabel extract -F babel.cfg -o messages.pot . + pybabel update -i messages.pot -d translations + + Installation (production) ------------------------- @@ -57,7 +78,8 @@ Dans le répertoire de cavote, tappez : - -D signifie que gunicorn sera lancé en daemon. - Enlever vous permettrait de tester et pouvoir fermer le serveur en tappant Ctrl+C - En mode daemon, un `pkill gunicorn` killera vos workers gunicorn - + +Pour activer les notifications par mail, mettez en place une tache cron appelant le script `reminder.py`. Configurez nginx (`/etc/nginx/sites-enabled` ou `/etc/nginx/nginx.conf` ou autre selon votre système)