diff --git a/README.md b/README.md index 03279d8..40a2300 100644 --- a/README.md +++ b/README.md @@ -59,8 +59,8 @@ Releases will follow the following rules: numbers, you can use this. * Any changes in the minor version of Mailman components of the images will - cause a bump in the minor version, e.g., A.(B+1) will have one (and only one) - updated Mailman component from A.B. Also, significant change in functionality, + cause a bump in the minor version, e.g., A.(B+1) can have one or more + updated Mailman components from A.B. Also, significant change in functionality, that might change how Images work or how people interact with the containers can also cause a bump in the minor version. diff --git a/web/docker-entrypoint.sh b/web/docker-entrypoint.sh index ba5f9e1..2657004 100755 --- a/web/docker-entrypoint.sh +++ b/web/docker-entrypoint.sh @@ -115,6 +115,16 @@ fi # Collect static for the django installation. python3 manage.py collectstatic --noinput --clear --verbosity 0 + +# Compile all the installed po files to mo. +SITE_DIR=$(python3 -c 'import site; print(site.getsitepackages()[0])') +echo "Compiling locale files in $SITE_DIR" +cd $SITE_DIR && /opt/mailman-web/manage.py compilemessages && cd - + +# Compress static files. +python3 manage.py compress --force + + # Migrate all the data to the database if this is a new installation, otherwise # this command will upgrade the database. python3 manage.py migrate