From 5192460c5110169a28e46dcfcff4614126191d97 Mon Sep 17 00:00:00 2001 From: Julien Rabier Date: Sat, 22 Dec 2012 15:51:33 +0100 Subject: [PATCH] add some lines of how-to about translation --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 6472468..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) ------------------------- -- 2.20.1