diff --git a/.gitignore b/.gitignore index 49df31ac..c978acac 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ __pycache__/ *.swp # Translations -#*.mo TODO +*.mo *.pot # Django stuff diff --git a/apt_requirements.txt b/apt_requirements.txt index 5a3fc103..0cf83a7c 100644 --- a/apt_requirements.txt +++ b/apt_requirements.txt @@ -17,3 +17,4 @@ libjs-bootstrap fonts-font-awesome graphviz git +gettext diff --git a/cotisations/locale/fr/LC_MESSAGES/django.mo b/cotisations/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index 3a1671bb..00000000 Binary files a/cotisations/locale/fr/LC_MESSAGES/django.mo and /dev/null differ diff --git a/install_re2o.sh b/install_re2o.sh index 6168ec08..b6d8b2aa 100755 --- a/install_re2o.sh +++ b/install_re2o.sh @@ -316,6 +316,10 @@ update_django() { echo "Collecting web frontend statics ..." python3 manage.py collectstatic --noinput echo "Collecting web frontend statics: Done" + + echo "Generating locales ..." + python3 manage.py compilemessages + echo "Generating locales: Done" } diff --git a/logs/locale/fr/LC_MESSAGES/django.mo b/logs/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index 030b0cac..00000000 Binary files a/logs/locale/fr/LC_MESSAGES/django.mo and /dev/null differ diff --git a/machines/locale/fr/LC_MESSAGES/django.mo b/machines/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index c9696d92..00000000 Binary files a/machines/locale/fr/LC_MESSAGES/django.mo and /dev/null differ diff --git a/preferences/locale/fr/LC_MESSAGES/django.mo b/preferences/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index 1d64de15..00000000 Binary files a/preferences/locale/fr/LC_MESSAGES/django.mo and /dev/null differ diff --git a/re2o/locale/fr/LC_MESSAGES/django.mo b/re2o/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index 83348f41..00000000 Binary files a/re2o/locale/fr/LC_MESSAGES/django.mo and /dev/null differ diff --git a/search/locale/fr/LC_MESSAGES/django.mo b/search/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index 94a44104..00000000 Binary files a/search/locale/fr/LC_MESSAGES/django.mo and /dev/null differ diff --git a/templates/locale/fr/LC_MESSAGES/django.mo b/templates/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index 6f33dd5a..00000000 Binary files a/templates/locale/fr/LC_MESSAGES/django.mo and /dev/null differ diff --git a/topologie/locale/fr/LC_MESSAGES/django.mo b/topologie/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index 61d2bf80..00000000 Binary files a/topologie/locale/fr/LC_MESSAGES/django.mo and /dev/null differ diff --git a/users/locale/fr/LC_MESSAGES/django.mo b/users/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index 4547ff8e..00000000 Binary files a/users/locale/fr/LC_MESSAGES/django.mo and /dev/null differ