From 69d1edcde66e1719e9cbffbcdde34a45fa700ee5 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Fri, 10 Mar 2023 01:10:58 +0100 Subject: [PATCH] framadate : ajoute locale FR --- podman-framadate/docker-compose.yml | 1 + podman-framadate/docker/Dockerfile | 3 ++- podman-framadate/docker/entrypoint.sh | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/podman-framadate/docker-compose.yml b/podman-framadate/docker-compose.yml index e7f16da..ff416e5 100644 --- a/podman-framadate/docker-compose.yml +++ b/podman-framadate/docker-compose.yml @@ -26,6 +26,7 @@ services: - ADMIN_USER=admin - APACHE_RUN_USER=www-data - FRAMADATE_DEVMODE=1 + - LOCALE=fr_FR.UTF-8 restart: always volumes: diff --git a/podman-framadate/docker/Dockerfile b/podman-framadate/docker/Dockerfile index 5e13a50..d05b86f 100644 --- a/podman-framadate/docker/Dockerfile +++ b/podman-framadate/docker/Dockerfile @@ -2,7 +2,8 @@ FROM docker.io/library/php:7-apache ARG version -RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq zip unzip git zlib1g-dev libicu-dev g++ default-mysql-client git +RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq zip unzip git zlib1g-dev libicu-dev g++ default-mysql-client git locales +RUN sed -i '/fr_FR.UTF-8/s/^# //g' /etc/locale.gen && locale-gen RUN docker-php-ext-install intl && docker-php-ext-install pdo_mysql RUN a2enmod rewrite diff --git a/podman-framadate/docker/entrypoint.sh b/podman-framadate/docker/entrypoint.sh index 27e0c67..ff291a8 100755 --- a/podman-framadate/docker/entrypoint.sh +++ b/podman-framadate/docker/entrypoint.sh @@ -1,6 +1,7 @@ #!/bin/bash # Read environment variables or set default values +LANG=${LOCALE:-C.UTF-8} FRAMADATE_CONFIG=${FRAMADATE_CONFIG:-/var/www/framadate/app/inc/config.php} DOMAIN=${DOMAIN-localhost} FORCE_HTTPS=${FORCE_HTTPS-false}