From 58e71f31a69cc5dddbc676d6fc8b1b9f93820f57 Mon Sep 17 00:00:00 2001 From: Dominik George <nik@naturalnet.de> Date: Wed, 21 Aug 2019 23:58:34 +0200 Subject: [PATCH] Use ugettext and ugettext_lazy appropriately.\n\nAdvances BiscuIT-ng#38. --- biscuit/apps/chronos/menus.py | 2 +- biscuit/apps/chronos/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/biscuit/apps/chronos/menus.py b/biscuit/apps/chronos/menus.py index 715a6186..2d81f31e 100644 --- a/biscuit/apps/chronos/menus.py +++ b/biscuit/apps/chronos/menus.py @@ -1,4 +1,4 @@ -from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _ MENUS = { 'NAV_MENU_CORE': [ diff --git a/biscuit/apps/chronos/views.py b/biscuit/apps/chronos/views.py index 4d28e83f..9659dd63 100644 --- a/biscuit/apps/chronos/views.py +++ b/biscuit/apps/chronos/views.py @@ -4,7 +4,7 @@ from django.contrib.auth.decorators import login_required from django.http import HttpRequest, HttpResponse from django.shortcuts import redirect, render from django.urls import reverse -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import ugettext as _ from biscuit.core.decorators import admin_required from biscuit.core.models import Group, Person -- GitLab