From 309ff7f5f2d2de73d74d7333b4fcd6873971fed4 Mon Sep 17 00:00:00 2001 From: Bryan BRANCOTTE <bryan.brancotte@pasteur.fr> Date: Tue, 12 Feb 2019 16:32:32 +0100 Subject: [PATCH] Following https://docs.djangoproject.com/en/2.0/ref/settings/#languages --- ippisite/ippisite/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ippisite/ippisite/settings.py b/ippisite/ippisite/settings.py index 015b5fc1..987abb76 100644 --- a/ippisite/ippisite/settings.py +++ b/ippisite/ippisite/settings.py @@ -13,7 +13,7 @@ https://docs.djangoproject.com/en/1.10/ref/settings/ import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) -from django.utils.translation import ugettext_lazy +from django.utils.translation import gettext_lazy BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -134,7 +134,7 @@ TIME_ZONE = 'UTC' USE_I18N = True LANGUAGES = [ - ('en', ugettext_lazy('English')), + ('en', gettext_lazy('English')), # ('fr', ugettext_lazy('French')), ] -- GitLab