From 984b605d05d0b4df624b52412e066f4e37a99376 Mon Sep 17 00:00:00 2001 From: Pierre Jaury Date: Sun, 2 Oct 2016 17:38:10 +0200 Subject: [PATCH] Compile translations when building the admin container --- admin/Dockerfile | 1 + admin/babel.cfg | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/Dockerfile b/admin/Dockerfile index 4299285b..8c3f98cd 100644 --- a/admin/Dockerfile +++ b/admin/Dockerfile @@ -10,5 +10,6 @@ COPY requirements.txt . COPY start.sh /start.sh RUN pip install -r requirements.txt +RUN pybabel compile -d freeposte/translations CMD ["/start.sh"] diff --git a/admin/babel.cfg b/admin/babel.cfg index da3bbea4..f0234b32 100644 --- a/admin/babel.cfg +++ b/admin/babel.cfg @@ -1,3 +1,3 @@ -[python: freeposte/**.py] -[jinja2: freeposte/**/templates/**.html] +[python: **.py] +[jinja2: **/templates/**.html] extensions=jinja2.ext.autoescape,jinja2.ext.with_